Skip to content

Instantly share code, notes, and snippets.

View petitbon's full-sized avatar

Johnlouis Petitbon petitbon

View GitHub Profile
# user and group to run as
user user user;
# number of nginx workers
worker_processes 6;
# pid of nginx master process
#pid /var/run/nginx.pid;
# Number of worker connections. 1024 is a good default
cp ~/.profile ~/.profile.bak
echo 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"' > ~/.profile
. ~/.profile
echo 'Creating src directory'
mkdir ~/src
cd ~/src
echo 'Installing MySQL'
cp ~/.profile ~/.profile.bak
echo 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"' > ~/.profile
. ~/.profile
echo 'Creating src directory'
mkdir ~/src
cd ~/src
echo 'Installing MySQL'
@petitbon
petitbon / mac_os_x_settings
Created November 15, 2009 20:00
mac os x settings
defaults write com.apple.CrashReporter DialogType none
vim /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Versions/A/Resources/Standard\ file\ types.pbfilespec
defaults write com.apple.xcode AppleAntiAliasingThreshold 24
defaults write com.apple.Xcode XCShowUndoPastSaveWarning NO
@petitbon
petitbon / bootstrap_os_x.sh
Created November 16, 2009 05:09
bootstrap_os_x
cp ~/.profile ~/.profile.bak
echo 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"' > ~/.profile
. ~/.profile
echo 'Creating src directory'
mkdir ~/src
cd ~/src
echo 'Installing MySQL'
@petitbon
petitbon / bootstrap_os_x_nginx.conf
Created November 16, 2009 05:13
bootstrap_os_x_nginx.conf
user nobody;
worker_processes 2;
#error_log logs/error.log;
#error_log logs/error.log notice;
error_log logs/error.log info;
# Pid
pid logs/nginx.pid;
@petitbon
petitbon / ftps_implicit.rb
Created December 9, 2009 16:29 — forked from dcparker/ftps_implicit.rb
ftps_implicit
require 'socket'
require 'openssl'
require 'net/ftp'
class Net::FTPS < Net::FTP
end
class Net::FTPS::Implicit < Net::FTP
FTP_PORT = 990
@petitbon
petitbon / bootstrap_os_x.sh
Created April 14, 2010 15:52 — forked from jbz/bootstrap_os_x.sh
os x bootstrapper
cp ~/.profile ~/.profile.bak
echo 'export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"' > ~/.profile
. ~/.profile
echo 'Creating src directory'
mkdir ~/src
cd ~/src
echo 'Installing MySQL'
@petitbon
petitbon / set_environment.rb
Created June 4, 2011 14:25 — forked from nstielau/set_environment.rb
A Knife plugin to set node environment
## Knife plugin to set node environment
# See http://wiki.opscode.com/display/chef/Environments
#
## Install
# Place in .chef/plugins/knife/set_environment.rb
#
## Usage
# Nick-Stielaus-MacBook-Pro:chef-repo nstielau$ knife node set_environment mynode.net my_env
# Looking for mynode.net
# Setting environment to my_env