Ugh. I hate bookmarks. They suck. They are painful to search, messy and I happened to have them scattered across multiple backup files.

Original reference material* is a curated home for little ideas, tips and tricks that are yet to make it into my long-term memory. I guess they are a cross between ‘gists’ and bookmarks. Little snippets or ideas that are not formed enough to warrant a whole blog post.



  • The Amazing Staircase – A neat combination of bookshelf and staircase combined in a small space.
  • BecauseWeCan – Awesome Oakland based, design-build architecture studio. Won our squirrel Coffee Table from them.
  • ColourLovers – Collections of colours, palettes and patterns.
  • DesignBoom – Archictecture, Design, Art and Technology blog.
  • Design Milk – Architecture, Art and Interiors blog.
  • Dezeen – Architecture, Interiors, Design and Technology.
  • EcoGeek – A blog about new technology designed for the environment.
  • How Products are made – Seven volumes on how different products are made. Products like materials (Acrylic Plastic), right through to complicated stuff like Jukeboxes.
  • Interior Design (reddit) – The Interior design subreddit.
  • Open Source Ecology – Open hardware designs for everything you need to kickstart civilisation.
  • Panic Status Board – A custom status board built by panic software.
  • Subtle Patterns – A collection of subtle patterns that can be used to add texture to websites / designs.
  • Virtual Crash Course in Design thinking – A ‘MOOC’ from Stanfords ‘’ on design thinking.


Check DNS records in OSX:

$ dig


How to free space in docker:

# Deletes all containers.
$ docker rm $(docker ps -a -q)

# Deletes all images.
$ docker rmi $(docker images -q)

Setting your environment after spinning up Docker Quickstart Terminal: $ eval “$(docker-machine env default)”


# Generates a 1080P MP4 from a series of images.
ffmpeg -f image2 -start_number 4963 -i DSC_%4d.JPG -vcodec libx264 -pix_fmt yuv420p -vf scale=1920:1080 -preset slow -crf 20 test.mp4

# Transcode to OGV:
ffmpeg -i movie.mpg -c:v libtheora -qscale:v 7 -c:a libvorbis -qscale:a 5 movie.ogv

# Transcode to WEBM:
ffmpeg -i ../Desktop/holland-tunnel.mpg -c:v libvpx -b:v 1M -c:a libvorbis holland-tunnel.webm


  • Narrow Coffee Table – A narrow coffee table / low set hallway table, with two drawers and a shelf.
  • Walnut Bench – A modern bench with a nice butterfly in a split.


  • Ethan Zonca – Developed PicoBuck LED driver under the banner ‘protofusion’. Also made a kick arse walnut Vacuum value amplifier.

GIT Tricks:

Create a git repository with group read/write permissions

Configure your server.

$ ssh
Welcome to!
$ mkdir /var/git/myapp.git
$ chgrp grpName /var/git/myapp.git
$ chmod 775 /var/git/myapp.git
$ chmod g+s /var/git/myapp.git
$ cd /var/git/myapp.git
$ git --bare init --shared=group
Initialized empty Git repository in /var/git/myapp.git
$ exit

Add the remote repository to your existing local git repo and push

$ cd ~/Sites/myapp
$ git remote add origin ssh://
$ git push origin master

Golang Snippets:

Size of a C struct: ˜ C.size_t(unsafe.Sizeof(C.struct_type{}))


  • $0 – Selected element that is currently inspected.
  • Browserify – How to untangle your Javascript with Browserify.
  • d3 scales – Details on how scales work in d3.js.
  • debugger; – Can kick start the debugger from the console.
  • Gulp – Automate front-end workflows.
  • Gulp + Browserify: The Everything Post – FAQ for getting started with gulp and browserify on the front end.
  • “use strict” – Turns all warnings into errors.

Linux / Operations:

Move a running process to Background

$<ctrl> + z (stop program)
$bg (run program in background)
$disown -h (make sure the progress isn't killed when terminal closes)

Neural Networks:



Backing up and restoring databases:

$pg_dump -Fc --no-acl --no-owner -h localhost -U postgres <DB-name> > backup-file.dump
$pg_restore --verbose --clean --no-acl --no-owner -h localhost -p 5432 -U postgres -W -d SHB-375Hz weds_health.dump

List largest tables:

SELECT nspname || '.' || relname AS "relation",
pg_size_pretty(pg_total_relation_size(C.oid)) AS "total_size"
  FROM pg_class C
  LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
  WHERE nspname NOT IN ('pg_catalog', 'information_schema')
    AND C.relkind <> 'i'
    AND nspname !~ '^pg_toast'
  ORDER BY pg_total_relation_size(C.oid) DESC
  LIMIT 20;

Upgrade PostgreSQL Database:

$pg_upgradecluster <old-ver> main
$pg_dropcluster <old-ver> main


  • HTTPOnly – If set. A cookie cannot be accessed through a client side script.
  • HTTP Strict Transport Security – opt-in webserver enhancement, once the header has been sent it prevents any communications occuring over HTTP.
  • Little Snitch – Mac OSX tool for controlling outgoing private data.
  • Qualys SSL test – Tests a deep analysis of your configuration for any SSL web server.
  • Repsheet – A reputation engine for profiling HTTP requests inbound to a webserver.
  • SecureFlat – If set, A cookie won’t be transmitted over HTTP.
  • TripWire on Ubuntu – How to configure and use tripwire on Ubuntu.
  • Visual Cryptography – A visual cryptography system. Align two random images to reveal a secret.


Web Performance:

  • WebPageTest – Measure the load times for websites from different locations and browsers.
  • Progressive JPEGs – Gif style progressive loading for JPEG images.
  • BPG – The PNG equivalent of JPEGS. Coming soon to a browser near you.


* Thanks to The Streets for naming inspiration.

comments powered by Disqus