Georges Auberger georges

View gist:2233163
1 2 3 4 5 6 7 8 9 10
worker_processes 1;
 
events {
worker_connections 1024;
accept_mutex off;
use epoll;
}
 
http {
passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.11;
View gist:2217554
1
openssl req -new -nodes -keyout server.key -out server.csr
View gist:1219922
1 2
/etc/apache2/ssl$ sudo openssl genrsa -out domain.key 2048
sudo openssl req -new -key domain.key -out domain.csr
View gist:1218523
1 2 3 4 5 6 7 8 9
cap deprec:users:passwd HOSTS=root@
cap deprec:users:add HOSTS=root@
cap deprec:ssh:config HOSTS=
 
ssh-keygen -t rsa
 
cap deprec:rack:install_stack
cap deprec:mysql:install
cap deprec:app:install
View node-and-npm-in-30-seconds.sh
1 2 3 4 5 6 7 8 9
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-install
cd ~/node-install
curl http://nodejs.org/dist/node-v0.4.11.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
View gist:1202665
1 2 3 4 5 6 7 8 9 10
namespace :db do
task :backup_name, :roles => :db, :only => { :primary => true } do
now = Time.now
run "mkdir -p db_backups"
backup_time = [now.year,now.month,now.day,now.hour,now.min,now.sec].join('-')
set :backup_file, "db_backups/#{application}-snapshot-#{backup_time}.sql"
end
desc 'Load remote production database into local development environment'
task :clone_to_local, :roles => :db, :only => { :primary => true } do
Something went wrong with that request. Please try again.