Commit 34aab249 authored by Luc Didry's avatar Luc Didry
Browse files

First import. Working

parents
local/*
lstu.db
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
This diff is collapsed.
#LSTU
##What LSTU means ?
It means Let's Shorten That Url.
##License
Lstu is licensed under the terms of the WTFPL. See the LICENSE file
##Dependancies
* Carton : Perl dependancies manager, it will get what you need, so don't bother for dependancies (but you can read the cpanfile if you want)
```
cpan Carton
```
##Installation
After installing Carton :
```
git clone https://github.com/ldidry/lstu.git
cd lstu
carton install
```
##Usage
```
carton exec ./Lstu daemon -m production
```
Yup, that's all, it will listen at "http://\*:3000".
For more options (interfaces, user, etc.), run :
```
carton exec ./Lstu help daemon
```
##How many urls can it handle ?
Well, there is 8 361 453 672 available combinations. I think the sqlite db will explod before you reach this limit. If you want more shortened URLs than that, open the Lstu file and change
```
$shortener->(8)
```
with a higher number.
##Reverse proxy
You can use a reverse proxy like Nginx or Varnish (or Apache with the mod\_proxy module). The web is full of tutos.
##Others projects dependancies
Lstu is written in Perl with the Mojolicious framework and uses the Twitter bootstrap framework to look not too ugly.
requires 'Mojolicious';
requires 'ORLite';
requires 'Data::Validate::URI';
# carton snapshot format: version 1.0
DISTRIBUTIONS
DBD-SQLite-1.40
pathname: I/IS/ISHIGAKI/DBD-SQLite-1.40.tar.gz
provides:
DBD::SQLite 1.40
DBD::SQLite::_WriteOnceHash 1.40
DBD::SQLite::db 1.40
DBD::SQLite::dr 1.40
requirements:
DBI 1.57
ExtUtils::MakeMaker 6.48
File::Spec 0.82
Test::Builder 0.86
Test::More 0.47
Tie::Hash 0
perl 5.006
DBI-1.628
pathname: T/TI/TIMB/DBI-1.628.tar.gz
provides:
Bundle::DBI 12.008696
DBD::DBM 0.08
DBD::DBM::Statement 0.08
DBD::DBM::Table 0.08
DBD::DBM::db 0.08
DBD::DBM::dr 0.08
DBD::DBM::st 0.08
DBD::ExampleP 12.014311
DBD::ExampleP::db 12.014311
DBD::ExampleP::dr 12.014311
DBD::ExampleP::st 12.014311
DBD::File 0.42
DBD::File::DataSource::File 0.42
DBD::File::DataSource::Stream 0.42
DBD::File::Statement 0.42
DBD::File::Table 0.42
DBD::File::TableSource::FileSystem 0.42
DBD::File::db 0.42
DBD::File::dr 0.42
DBD::File::st 0.42
DBD::Gofer 0.015327
DBD::Gofer::Policy::Base 0.010088
DBD::Gofer::Policy::classic 0.010088
DBD::Gofer::Policy::pedantic 0.010088
DBD::Gofer::Policy::rush 0.010088
DBD::Gofer::Transport::Base 0.014121
DBD::Gofer::Transport::corostream undef
DBD::Gofer::Transport::null 0.010088
DBD::Gofer::Transport::pipeone 0.010088
DBD::Gofer::Transport::stream 0.014599
DBD::Gofer::db 0.015327
DBD::Gofer::dr 0.015327
DBD::Gofer::st 0.015327
DBD::NullP 12.014715
DBD::NullP::db 12.014715
DBD::NullP::dr 12.014715
DBD::NullP::st 12.014715
DBD::Proxy 0.2004
DBD::Proxy::RPC::PlClient 0.2004
DBD::Proxy::db 0.2004
DBD::Proxy::dr 0.2004
DBD::Proxy::st 0.2004
DBD::Sponge 12.010003
DBD::Sponge::db 12.010003
DBD::Sponge::dr 12.010003
DBD::Sponge::st 12.010003
DBDI 12.015129
DBI 1.628
DBI::Const::GetInfo::ANSI 2.008697
DBI::Const::GetInfo::ODBC 2.011374
DBI::Const::GetInfoReturn 2.008697
DBI::Const::GetInfoType 2.008697
DBI::DBD 12.015129
DBI::DBD::Metadata 2.014214
DBI::DBD::SqlEngine 0.06
DBI::DBD::SqlEngine::DataSource 0.06
DBI::DBD::SqlEngine::Statement 0.06
DBI::DBD::SqlEngine::Table 0.06
DBI::DBD::SqlEngine::TableSource 0.06
DBI::DBD::SqlEngine::TieMeta 0.06
DBI::DBD::SqlEngine::TieTables 0.06
DBI::DBD::SqlEngine::db 0.06
DBI::DBD::SqlEngine::dr 0.06
DBI::DBD::SqlEngine::st 0.06
DBI::FAQ 1.014935
DBI::Gofer::Execute 0.014283
DBI::Gofer::Request 0.012537
DBI::Gofer::Response 0.011566
DBI::Gofer::Serializer::Base 0.009950
DBI::Gofer::Serializer::DataDumper 0.009950
DBI::Gofer::Serializer::Storable 0.015586
DBI::Gofer::Transport::Base 0.012537
DBI::Gofer::Transport::pipeone 0.012537
DBI::Gofer::Transport::stream 0.012537
DBI::Profile 2.015065
DBI::ProfileData 2.010008
DBI::ProfileDumper 2.015325
DBI::ProfileDumper::Apache 2.014121
DBI::ProfileSubs 0.009396
DBI::ProxyServer 0.3005
DBI::ProxyServer::db 0.3005
DBI::ProxyServer::dr 0.3005
DBI::ProxyServer::st 0.3005
DBI::SQL::Nano 1.015544
DBI::SQL::Nano::Statement_ 1.015544
DBI::SQL::Nano::Table_ 1.015544
DBI::Util::CacheMemory 0.010315
DBI::Util::_accessor 0.009479
DBI::common 1.628
requirements:
ExtUtils::MakeMaker 6.48
Test::Simple 0.90
perl 5.008
Data-Validate-Domain-0.10
pathname: N/NE/NEELY/Data-Validate-Domain-0.10.tar.gz
provides:
Data::Validate::Domain 0.10
requirements:
ExtUtils::MakeMaker 0
Net::Domain::TLD 1.62
Test::More 0
Data-Validate-IP-0.20
pathname: D/DR/DROLSKY/Data-Validate-IP-0.20.tar.gz
provides:
Data::Validate::IP 0.20
requirements:
Exporter 0
ExtUtils::MakeMaker 6.30
NetAddr::IP 4
Scalar::Util 0
strict 0
warnings 0
Data-Validate-URI-0.06
pathname: S/SO/SONNEN/Data-Validate-URI-0.06.tar.gz
provides:
Data::Validate::URI 0.06
requirements:
Data::Validate::Domain 0
Data::Validate::IP 0
ExtUtils::MakeMaker 0
File-Remove-1.52
pathname: A/AD/ADAMK/File-Remove-1.52.tar.gz
provides:
File::Remove 1.52
requirements:
Cwd 3.29
ExtUtils::MakeMaker 6.36
File::Spec 3.29
Test::More 0.42
perl 5.00503
IPC-Run3-0.046
pathname: R/RJ/RJBS/IPC-Run3-0.046.tar.gz
provides:
IPC::Run3 0.046
requirements:
ExtUtils::MakeMaker 0
Test::More 0.31
Time::HiRes 0
Mojolicious-4.39
pathname: S/SR/SRI/Mojolicious-4.39.tar.gz
provides:
Mojo undef
Mojo::Asset undef
Mojo::Asset::File undef
Mojo::Asset::Memory undef
Mojo::Base undef
Mojo::ByteStream undef
Mojo::Cache undef
Mojo::Collection undef
Mojo::Content undef
Mojo::Content::MultiPart undef
Mojo::Content::Single undef
Mojo::Cookie undef
Mojo::Cookie::Request undef
Mojo::Cookie::Response undef
Mojo::DOM undef
Mojo::DOM::CSS undef
Mojo::DOM::HTML undef
Mojo::Date undef
Mojo::EventEmitter undef
Mojo::Exception undef
Mojo::Headers undef
Mojo::HelloWorld undef
Mojo::Home undef
Mojo::IOLoop undef
Mojo::IOLoop::Client undef
Mojo::IOLoop::Delay undef
Mojo::IOLoop::Server undef
Mojo::IOLoop::Stream undef
Mojo::JSON undef
Mojo::JSON::Pointer undef
Mojo::JSON::_Bool undef
Mojo::Loader undef
Mojo::Log undef
Mojo::Message undef
Mojo::Message::Request undef
Mojo::Message::Response undef
Mojo::Parameters undef
Mojo::Path undef
Mojo::Reactor undef
Mojo::Reactor::EV undef
Mojo::Reactor::Poll undef
Mojo::Server undef
Mojo::Server::CGI undef
Mojo::Server::Daemon undef
Mojo::Server::Hypnotoad undef
Mojo::Server::Morbo undef
Mojo::Server::PSGI undef
Mojo::Server::PSGI::_IO undef
Mojo::Server::Prefork undef
Mojo::Template undef
Mojo::Transaction undef
Mojo::Transaction::HTTP undef
Mojo::Transaction::WebSocket undef
Mojo::URL undef
Mojo::Upload undef
Mojo::UserAgent undef
Mojo::UserAgent::CookieJar undef
Mojo::UserAgent::Transactor undef
Mojo::Util undef
Mojolicious 4.39
Mojolicious::Command undef
Mojolicious::Command::cgi undef
Mojolicious::Command::cpanify undef
Mojolicious::Command::daemon undef
Mojolicious::Command::eval undef
Mojolicious::Command::generate undef
Mojolicious::Command::generate::app undef
Mojolicious::Command::generate::lite_app undef
Mojolicious::Command::generate::makefile undef
Mojolicious::Command::generate::plugin 0.01
Mojolicious::Command::get undef
Mojolicious::Command::inflate undef
Mojolicious::Command::prefork undef
Mojolicious::Command::psgi undef
Mojolicious::Command::routes undef
Mojolicious::Command::test undef
Mojolicious::Command::version undef
Mojolicious::Commands undef
Mojolicious::Controller undef
Mojolicious::Lite undef
Mojolicious::Plugin undef
Mojolicious::Plugin::Charset undef
Mojolicious::Plugin::Config undef
Mojolicious::Plugin::Config::Sandbox undef
Mojolicious::Plugin::DefaultHelpers undef
Mojolicious::Plugin::EPLRenderer undef
Mojolicious::Plugin::EPRenderer undef
Mojolicious::Plugin::HeaderCondition undef
Mojolicious::Plugin::JSONConfig undef
Mojolicious::Plugin::Mount undef
Mojolicious::Plugin::PODRenderer undef
Mojolicious::Plugin::TagHelpers undef
Mojolicious::Plugins undef
Mojolicious::Renderer undef
Mojolicious::Routes undef
Mojolicious::Routes::Match undef
Mojolicious::Routes::Pattern undef
Mojolicious::Routes::Route undef
Mojolicious::Sessions undef
Mojolicious::Static undef
Mojolicious::Types undef
Test::Mojo undef
ojo undef
requirements:
ExtUtils::MakeMaker 0
Net-Domain-TLD-1.70
pathname: A/AL/ALEXP/Net-Domain-TLD-1.70.tar.gz
provides:
Net::Domain::TLD 1.70
requirements:
Carp 0
ExtUtils::MakeMaker 0
Storable 0
NetAddr-IP-4.070
pathname: M/MI/MIKER/NetAddr-IP-4.070.tar.gz
provides:
NetAddr::IP 4.070
NetAddr::IP::InetBase 0.08
NetAddr::IP::Lite 1.51
NetAddr::IP::Util 1.50
NetAddr::IP::UtilPP 1.09
NetAddr::IP::UtilPolluted 1.50
NetAddr::IP::Util_IS 1
requirements:
ExtUtils::MakeMaker 0
Test::More 0
ORLite-1.98
pathname: A/AD/ADAMK/ORLite-1.98.tar.gz
provides:
ORLite 1.98
requirements:
DBD::SQLite 1.27
DBI 1.607
ExtUtils::MakeMaker 6.59
File::Path 2.08
File::Remove 1.40
File::Spec 0.80
File::Temp 0.20
Params::Util 1.00
Test::More 0.47
Test::Script 1.06
perl 5.006
Params-Util-1.07
pathname: A/AD/ADAMK/Params-Util-1.07.tar.gz
provides:
Params::Util 1.07
requirements:
ExtUtils::CBuilder 0.27
ExtUtils::MakeMaker 6.52
File::Spec 0.80
Scalar::Util 1.18
Test::More 0.42
perl 5.00503
Probe-Perl-0.03
pathname: K/KW/KWILLIAMS/Probe-Perl-0.03.tar.gz
provides:
Probe::Perl 0.03
requirements:
Config 0
ExtUtils::MakeMaker 6.30
File::Spec 0
strict 0
Test-Script-1.07
pathname: A/AD/ADAMK/Test-Script-1.07.tar.gz
provides:
Test::Script 1.07
requirements:
ExtUtils::MakeMaker 6.42
File::Spec 0.80
IPC::Run3 0.034
Probe::Perl 0.01
Test::Builder 0.32
Test::Builder::Tester 1.02
Test::More 0.62
blib 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment