Skip to content

Instantly share code, notes, and snippets.

Avatar

Flaviu Simihaian FlaviuSim

View GitHub Profile
View gist:3004011
#define yo @"fsafasfaasfas" \
"fasfafas" \
"Sfafafsa";
}
@FlaviuSim
FlaviuSim / .tmux.conf
Created Jun 24, 2012
Flaviu Simihaian's Tmux Conf
View .tmux.conf
# use vi mode
setw -g mode-keys vi
# remap prefix to Control + a
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# force a reload of the config file
unbind r
@FlaviuSim
FlaviuSim / columnate.awk
Created Apr 30, 2012
Make nice columns from random delimited files; here's how to use it: http://shelr.tv/records/4f9f20d59660807992000059
View columnate.awk
#!/usr/bin/awk -f
#BEGIN{FS="\t";}
BEGIN{
if (DELIM == 0)
DELIM=" "
if (SPACING == 0)
SPACING = " "
}
View gist:2510028
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
@FlaviuSim
FlaviuSim / gist:2499145
Created Apr 26, 2012
Final Chef Setup on EC2
View gist:2499145
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev git-core
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
sudo ./configure --prefix=/usr/local
sudo make
sudo make install
View gist:2499121
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
sudo ./configure --prefix=/usr/local
sudo make
sudo make install
View gist:2499096
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install gcc build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
sudo make
sudo make install
@FlaviuSim
FlaviuSim / gist:2499082
Created Apr 26, 2012
Chef Solo Bootstrap - edited
View gist:2499082
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install gcc build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
sudo make
sudo make install
@FlaviuSim
FlaviuSim / gist:2499078
Created Apr 26, 2012
Chef Solo Bootstrap - edited
View gist:2499078
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y gcc install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
sudo make
sudo make install
@FlaviuSim
FlaviuSim / gist:2499056
Created Apr 26, 2012
Chef Solo Bootstrap - nomnom
View gist:2499056
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y install build-essential zlib1g-dev libssl-dev libreadline5-dev libyaml-dev
cd /tmp
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
sudo tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
sudo make
sudo make install