Skip to content

Instantly share code, notes, and snippets.

dmjio / nixos-mac
Created Jan 10, 2016
Install NixOS on an iMac / Macbook
View nixos-mac
# NixOS manual
# Prepare USB stick - dependent on machines - this worked for an iMac
# Prepare hard disk via Disk Utility on OSX beforehand (for multiple oses)
dmjio /
Created Nov 10, 2015 — forked from fizruk/
Push to Docker from Circle CI
set -x
CIRCLE_TAG=`git name-rev --tags --name-only $(git rev-parse HEAD)`
if [ "$CIRCLE_TAG" -ne "undefined" ]; then
docker tag user/repo user/repo:$CIRCLE_TAG
View SwaggerExample.hs
{-# LANGUAGE DeriveGeneric, FlexibleInstances, ScopedTypeVariables, FlexibleContexts, DataKinds, TypeFamilies #-}
module SwaggerExample where
import Data.Proxy
import qualified GHC.Generics as G
import Generics.SOP
data Todo = Todo {
created :: Int
, description :: String
dmjio / gist:330f02e2279446f4b4bf
Last active Aug 28, 2015 — forked from mikeyk/gist:1329319
Testing storage of millions of keys in Redis
View gist:330f02e2279446f4b4bf
#! /usr/bin/env python
import redis
import random
import pylibmc
import sys
r = redis.Redis(host = 'localhost', port = 6389)
mc = pylibmc.Client(['localhost:11222'])
# Shell script to automatically configure a new Flask, nginx and uWSGI based blog
# on an Amazon EC2 instance.
# See for more information!
# If you are forking this for your own custom configuration script, see the following other gists:
dmjio / gist:4050405
Created Nov 10, 2012
Sublime Text 2 - Useful Shortcuts
View gist:4050405

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt