Skip to content

Instantly share code, notes, and snippets.

View kingel's full-sized avatar

Franklin Kingma kingel

View GitHub Profile
#!/bin/sh
ud=`git status -u --porcelain | grep '??' | grep 'migrations'`
if [ -n "$ud" ];
then
cat <<\EOF
Warning: Unadded migrations
EOF
exit 1
fi
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
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
@kingel
kingel / gist:3979253
Created October 30, 2012 09:33
apache
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 October 29, 2012 10:22
phpbuildout
# ===================================================================
# Builds PHP as an Apache module (Apache profile needed)
[buildout]
extends =
apache.cfg
mysql.cfg
# Buildout parts
parts +=
png-build
[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
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 September 26, 2015 15:58
homebrew python2.4 formula
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'