Skip to content

Instantly share code, notes, and snippets.

View clojens's full-sized avatar

Rob Jentzema clojens

View GitHub Profile
#!/usr/bin/env zsh
#
# Install script for ArchLinux on Transip VPS Blade XX
#
# For Capital Locations Application (CLApp) Booking
# made by Solobit
#
: ${(AA)=diskcfg::=
1 +2M:BIOS:EF02:X
@clojens
clojens / 01.asciidoc
Last active August 29, 2015 14:16
Plague Inc strategies

Ordered per major category.

Abstract

You are a disease destined to destroy humanity. You start somewhere in the world, mostly a place of your choosing. Each country has different circumstances (e.g. poor/rich, hot/cold, urban/city or rural and so forth). This determines your start-up strengths in part (e.g. disease starting in Egypt is better equipped against heat, those in Russia against cold and so on). You should check each country while selected, click the name of the country in the world map and then left top corner the [i] box.

You can and you should evolve your disease but do so in a coordinated, sophisticated and sometimes complex or seemingly impossible ways. Your disease can evolve genes which tweak the parameters of the game either in bonus or penalty form.

Sometimes you can exploit weaknesses and/or benefits to slow or speed-up the spread of the plague. This guide is aimed to describing some of these tactics I found useful and intuitively made up. It is by no means comprehensive

@clojens
clojens / lt.js
Created January 9, 2015 22:53
Bookmarklets
javascript:(function() {
function se(d) {
return d.selection ? d.selection.createRange().text : d.getSelection()
}
s = se(document);
for (i=0; i<frames.length && !s; i++) s = se(frames[i].document);
if (!s || s=='') s = prompt('Enter%20search%20terms%20for%20Light%20Table','');
open('https://github.com/LightTable/LightTable' + (s ? '/search?utf8=%E2%9C%93&q=' + encodeURIComponent(s) : '')).focus();
})();
@clojens
clojens / vat.clj
Created December 24, 2014 11:49
VAT
(def declarable-expenses {1 [81.61] 12 [24.20 29.58 127 62.65]})
(defn return-vat
[m]
(* 0.7
(* 0.21
(reduce + (map #(* (key %) (reduce + (val %)))
m)))))
#!/bin/bash
size_in_mib=32
bytes=$((2 ** 20 * $size_in_mib))
sectors=$(($bytes / 512))
heads=16
cylinders=$(($sectors / $heads / 63))
dd if=/dev/zero of=baremetal.img bs=512 count=$sectors
dd if=fat16mbr.bin of=baremetal.img conv=notrunc
@clojens
clojens / 01.asciidoc
Last active August 29, 2015 14:10
Windows 8 voice commands
Note
Secret weapon = autohotkey
Start

Open the Start screen

Cancel

Cancel the current action or dialog

Start/stop listening
@clojens
clojens / nginx.conf
Last active August 29, 2015 14:10
Magento nginx
user http http;
worker_processes auto;
events {
worker_connections 1024;
}
#!/usr/bin/perl -w
use English; # things like MATCH
# --------------------------------------------------------------
# txt2phoNL - usage: perl txt2phoNL <dutch-text.txt >phonemes.pho
# the generated phoneme file is suitable for use with MBROLA,
# but you have to use the -e option in MBROLA to skip over
# spurious unpronounceable phoneme pairs (e.g. caused by English
# words in your Dutch text file!).
@mixin animation($animate...) {
$max: length($animate);
$animations: '';
@for $i from 1 through $max {
$animations: #{$animations + nth($animate, $i)};
@if $i < $max {
$animations: #{$animations + ", "};