Skip to content

Instantly share code, notes, and snippets.

vmalloc / Dragons.svg
Last active Oct 20, 2019
Here be dragons logo
View Dragons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
vmalloc /
Created Mar 11, 2019 — forked from henrebotha/
Karabiner Elements: Caps Lock + I/J/K/L to Arrow Keys (a la Pok3r)


  1. Install Karabiner Elements
  2. Open your karabiner.json file (it will be in ~/.config/karabiner/karabiner.json).
  3. Find complex_modifications. It will have a key rules that takes a list ("rules": [...]).
  4. Inside the square brackets, paste this:
    "description": "Change Caps Lock + I/J/K/L to Arrow Keys",

Keybase proof

I hereby claim:

  • I am vmalloc on github.
  • I am vmalloc ( on keybase.
  • I have a public key whose fingerprint is C73F 6BEC 873D 2C13 6C9F E0B2 0464 700A 8589 A747

To claim this, I am signing this object:

vmalloc / experiment_with
Last active Dec 19, 2015
Quick wrapper for experimenting with python packages in a temporary virtualenv using devpi
View experiment_with
#! /bin/bash -x -e
## Example usage:
# $ ./experiment_with numpy matplotlib
UUID=`echo $* | sha1sum | awk '{print $1}'`
devpi use
vmalloc /
Created Dec 23, 2012
Small utility to commit a currently assigned Jira issue via git, using *dialog* and the Jira REST API.
#! /usr/bin/python
# -*- mode: python -*-
from cStringIO import StringIO
from collections import OrderedDict
import argparse
import requests
import subprocess
import sys
import tempfile
vmalloc /
Created Nov 28, 2012
Simple retries in Python
def retries(num_retries):
Generates a sequence of retry attempt objects, helping you write nicer retry code:
Example usage:
for retry in retries(num_retries):
if not retry.first:
vmalloc / gist:3978770
Created Oct 30, 2012
Emacs configuration to lookup current symbol in Dash
View gist:3978770
(defun dash-current-symbol ()
(browse-url (format "dash://%s" (current-word)))
(global-set-key (kbd "C-c d") 'dash-current-symbol)
vmalloc /
Created Apr 2, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
vmalloc / gist:1165155
Created Aug 23, 2011
Script to poll a jenkins job and run growlnotify with the status at its end
View gist:1165155
import time
import argparse
import urllib2
import lxml.etree
import subprocess
parser = argparse.ArgumentParser()
parser.add_argument("--sleep", default=1, type=int)