Skip to content

Instantly share code, notes, and snippets.

View thomaspeklak's full-sized avatar

Thomas Peklak thomaspeklak

View GitHub Profile
cd ~
mkdir nginx
cd nginx
wget http://sysoev.ru/nginx/nginx-0.7.63.tar.gz
curl -L -O http://dfn.dl.sourceforge.net/project/pcre/pcre/8.00/pcre-8.00.tar.gz
tar xzfv nginx-0.7.63.tar.gz
tar xzfv pcre-8.00.tar.gz
cd nginx-0.7.63
./configure --prefix=/opt/nginx --with-http_ssl_module --with-pcre=../pcre-8.00 --add-module=/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.5/ext/nginx
sudo make install
@thomaspeklak
thomaspeklak / update_chromium_nightly_mac.sh
Created September 23, 2010 21:45
updates chromium to the latest nightly build
VAR=$(curl http://build.chromium.org/f/chromium/snapshots/Mac/LATEST | sed 's/\(.*\)/http:\/\/build.chromium.org\/f\/chromium\/snapshots\/Mac\/\1\/chrome-mac.zip/')
wget $VAR
unzip chrome-mac.zip
cp -r chrome-mac/Chromium.app /Applications/
rm -rf chrome-mac chrome-mac.zip
@thomaspeklak
thomaspeklak / mp3_downgrade
Created November 12, 2010 21:04
Batch convert mp3s to mono and lower bitrate
for file in ./*.mp3
do
lame -mm -b64 ${file} ../target_dir/${file}
done
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true