Skip to content

Instantly share code, notes, and snippets.

Avatar

Franklin Kingma kingel

View GitHub Profile
View pre-commit
#!/bin/sh
ud=`git status -u --porcelain | grep '??' | grep 'migrations'`
if [ -n "$ud" ];
then
cat <<\EOF
Warning: Unadded migrations
EOF
exit 1
fi
View gist:8100148
function(){
var layer=new OpenLayers.Layer.Vector('Recreatie',{
protocol: new OpenLayers.Protocol.HTTP({
url: 'http://localhost:8080/lunetzorg/bestaande-bouw-migrated/'+'@@kml-categorie?categorie=Recreatie',
format: new OpenLayers.Format.KML({
extractStyles: true,
extractAttributes: true})
}),
strategies: [new OpenLayers.Strategy.Fixed()],
projection:widget.map.displayProjection
View gist:6366545
0.016) SELECT "products_bundle"."id", "products_bundle"."rf_id", "products_bundle"."name", "products_bundle"."isp_id", "products_bundle"."description", "products_bundle"."start_date", "products_bundle"."end_date", "products_bundle"."price_monthly", "products_bundle"."campaigne_price", "products_bundle"."campaigne_duration", "products_bundle"."campaigne_description", "products_bundle"."offer_internet_explanation", "products_bundle"."offer_television_explanation", "products_bundle"."offer_phone_explanation", "products_bundle"."offer_remaining_explanation", "products_bundle"."initial_fixed_costs", "products_bundle"."modem_costs", "products_bundle"."shipping_costs", "products_bundle"."borgModem", "products_bundle"."installation_costs", "products_bundle"."voorwaarden", "products_bundle"."assembly_costs_standard", "products_bundle"."assembly_costs_standard_description", "products_bundle"."assembly_costs_extra", "products_bundle"."assembly_costs_extra_description", "products_bundle"."agreement_minimal_duration", "pr
View gist:3979253
cd /tmp
wget http://www.apache.org/dist//httpd/httpd-2.2.22.tar.gz
tar zxvf httpd-2.2.22.tar.gz
cd httpd-2.2.22
./configure --prefix=/tmp/apache2 --sysconfdir=/tmp/apache2 --enable-so --disable-cgi --enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic --with-included-apr
make
@kingel
kingel / php.cfg
Created Oct 29, 2012
phpbuildout
View php.cfg
# ===================================================================
# Builds PHP as an Apache module (Apache profile needed)
[buildout]
extends =
apache.cfg
mysql.cfg
# Buildout parts
parts +=
png-build
View buildout.cfg
[protobufsucks]
recipe = collective.recipe.cmd
on_install=true
cmds=
mkdir protobuf
cd protobuf
wget http://pypi.python.org/packages/source/p/protobuf/protobuf-2.4.1.tar.gz
tar zxvf protobuf-2.4.1.tar.gz
cd protobuf-2.4.1
python setup.py install
View python2.4.rb
require 'formula'
class Python24 <Formula
url 'http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz'
homepage 'http://www.python.org/download/releases/2.4.6/'
md5 '7564b2b142b1b8345cd5358b7aaaa482'
depends_on 'gdbm' => :optional
depends_on 'readline'
@kingel
kingel / python2.4.rb
Last active Sep 26, 2015
homebrew python2.4 formula
View python2.4.rb
require 'formula'
class Python24 <Formula
url 'http://www.python.org/ftp/python/2.4.6/Python-2.4.6.tgz'
homepage 'http://www.python.org/download/releases/2.4.6/'
md5 '7564b2b142b1b8345cd5358b7aaaa482'
depends_on 'gdbm' => :optional
depends_on 'readline'