Skip to content

Instantly share code, notes, and snippets.

Avatar

Ben Evans bencevans

View GitHub Profile
View docker-postgresql.md

Ubuntu Docker PostgreSQL How-To

How to use [zaiste/postgresql][1] Docker container.

Docker >= 0.5.0 required.

sudo docker pull zaiste/postgresql
@bencevans
bencevans / 0_reuse_code.js
Created Sep 27, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View leaflet-google.js
/**
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 18,
@bencevans
bencevans / gist:3513313
Created Aug 29, 2012 — forked from mebcomputers/gist:2550712
php: create visitor log file
View gist:3513313
<?php
class log {
public $filename;
public $timestamp;
public $ip;
public $u_agent;
public $u_refer;
public $ub;
@bencevans
bencevans / license
Created Jul 19, 2012 — forked from zzot/license
MIT License Generator
View license
#!/bin/sh -e
# Usage: license
# Prints an MIT license appropriate for totin' around.
#
# $ license > COPYING
#!/bin/sh
echo "Copyright (c) `date +%Y` Ben Evans
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the