Skip to content

Instantly share code, notes, and snippets.

View petitbon's full-sized avatar

Johnlouis Petitbon petitbon

View GitHub Profile
did:3:kjzl6cwe1jw147eia1hqw1bapsqea29kl29qrbai1uzgytubx5gl13s1eh2grmt
@petitbon
petitbon / nginx.rb
Last active December 17, 2015 02:29
latest niginx formula with add_from_github option
require 'formula'
class Nginx < Formula
homepage 'http://nginx.org/'
url 'http://nginx.org/download/nginx-1.4.0.tar.gz'
sha1 'a4343ed201b99d93ff06843600f3175270cb0a94'
head 'svn://svn.nginx.org/nginx/trunk/'
env :userpaths

This will be a copy/paste doc for installing redis, elasticsearch and logstash on ubuntu 12.04

Pre-Requisites

apt-get update
apt-get upgrade
apt-get install tcl8.5 tcl8.5-dev build-essential rubygems git \
htop python-dev openjdk-7-jre-headless libcurl4-openssl-dev \
bison ctags flex gperf libevent-dev libpcre3-dev libssl-dev libreadline6-dev \
libtokyocabinet-dev libncursesw5-dev libxml2-dev libxslt1-dev libsqlite3-dev \
@petitbon
petitbon / hack.sh
Created March 31, 2012 12:13 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@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
@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 / 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_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 / 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 / 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