This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PasswdShadow | |
# Questa classe permette di parsare, e fare il merge dei dati dei file | |
# /etc/passwd e /etc/shadow. | |
############################### Classe Entry ################################# | |
# Questa classe permette di leggere una singola riga del file passwd passato. | |
class Entry | |
# Costruttore | |
def initialize | |
@attributes = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import atexit | |
import os | |
import readline | |
import rlcompleter | |
historyPath = os.path.expanduser("~/.pyhistory") | |
historyTmp = os.path.expanduser("~/.pyhisttmp.py") | |
endMarkerStr= "# # # histDUMP # # #" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download and install RVM | |
bash < <(curl http://rvm.beginrescueend.com/releases/rvm-install-head) | |
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ && git clone --depth 1 http://github.com/wayneeseguin/rvm.git && cd rvm && ./install | |
#Install the rubies with readline patch | |
rvm package install readline | |
rvm package install openssl | |
rvm package install iconv | |
rvm install 1.9.2 --with-readline-dir=$HOME/.rvm/usr --with-iconv-dir=$HOME/.rvm/usr --with-openssl-dir=$HOME/.rvm/usr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install libmysqlclient-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Step 0: Add (temporary) the following gems to your application Gemfile | |
group :development, :test do | |
gem "hoe" | |
gem "rspec" | |
end | |
# ... and then ... | |
bundle install | |
# Step 1: Download the tarball from https://github.com/RoryO/ruby-net-ldap and untar it in vendor/gems/ruby-net-ldap folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ passenger start | |
=============== Phusion Passenger Standalone web server started =============== | |
PID file: /home/matteo/code/prova/tmp/pids/passenger.3000.pid | |
Log file: /home/matteo/code/prova/log/passenger.3000.log | |
Environment: development | |
Accessible via: http://0.0.0.0:3000/ | |
You can stop Phusion Passenger Standalone by pressing Ctrl-C. | |
=============================================================================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Italian translation for Devise 2.0 | |
# Date: 2012-02-16 | |
# Author: mcanato | |
# Note: Thanks to dn2k (https://gist.github.com/443837) for the first translation | |
it: | |
errors: | |
messages: | |
expired: "è scaduto, si prega di richiederne uno nuovo" | |
not_found: "non trovato" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Natty (Ubuntu 11.04) | |
$ dpkg -L libc6-dev | grep /types.h | |
/usr/include/bits/types.h | |
/usr/include/rpc/types.h | |
/usr/include/sys/types.h | |
# Oneiric (Ubuntu 11.10) | |
$ dpkg -L libc6-dev | grep /types.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install vim ruby subversion curl git build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison libmysqlclient16-dev libcurl3 libcurl3-gnutls libcurl4-openssl-dev analog apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common dbconfig-common libapache2-mod-php5 libaprutil1-dbd-sqlite3 libaprutil1-ldap libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl libgd-gd2-perl libgd-graph-perl libgd-graph3d-perl libgd-text-perl libhtml-template-perl libmcrypt4 libnet-daemon-perl libplrpc-perl librmagick-ruby mysql-client mysql-server php5-cli php5-common php5-gd php5-mcrypt php5-mysql phpmyadmin rmagic |