Skip to content

Instantly share code, notes, and snippets.

@aszlig
aszlig / network.nix
Created January 3, 2013 04:48
Charon test network for btrfs kernel development.
{
network.description = "Btrfs test";
network.enableRollback = true;
btrfs = { pkgs, config, ... }: {
deployment = {
targetEnv = "virtualbox";
virtualbox.headless = true;
virtualbox.memorySize = 1024;
};
@aszlig
aszlig / deptree.py
Created December 29, 2012 00:38
Generate GraphViz dependency tree of a TaskWarrior task.
#!/usr/bin/env python
import sys
from subprocess import Popen, PIPE
from json import loads
class Task(object):
def __init__(self, data):
self.data = data
@aszlig
aszlig / gist:2234137
Created March 29, 2012 06:27
More compact base builder strings
// all buildings with weights,
// be sure to use your own datatypes.
var BUILDINGS = [
[40, 'No Building'],
[ 6, 'Harvester Tiberium'],
[ 6, 'Harvester Crystal'],
[ 6, 'Power Plant'],
[ 1, 'Tiberium'],
[ 1, 'Crystal'],
[ 3, 'Silo'],