Skip to content

Instantly share code, notes, and snippets.

Avatar

Rotem Yaari vmalloc

View GitHub Profile
@vmalloc
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
vmalloc / instructions.md
Created Mar 11, 2019 — forked from henrebotha/instructions.md
Karabiner Elements: Caps Lock + I/J/K/L to Arrow Keys (a la Pok3r)
View instructions.md

Instructions

  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",
View keybase.md

Keybase proof

I hereby claim:

  • I am vmalloc on github.
  • I am vmalloc (https://keybase.io/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
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}'`
VENV_DIR=/tmp/temp_venv_$UUID
devpi use
@vmalloc
vmalloc / commit_issue.py
Created Dec 23, 2012
Small utility to commit a currently assigned Jira issue via git, using *dialog* and the Jira REST API.
View commit_issue.py
#! /usr/bin/python
# -*- mode: python -*-
from cStringIO import StringIO
from collections import OrderedDict
import argparse
import requests
import subprocess
import sys
import tempfile
@vmalloc
vmalloc / retries.py
Created Nov 28, 2012
Simple retries in Python
View retries.py
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:
logging.debug("Retrying...")
try:
some_operation()
@vmalloc
vmalloc / gist:3978770
Created Oct 30, 2012
Emacs configuration to lookup current symbol in Dash
View gist:3978770
(defun dash-current-symbol ()
(interactive)
(browse-url (format "dash://%s" (current-word)))
)
(global-set-key (kbd "C-c d") 'dash-current-symbol)
@vmalloc
vmalloc / hack.sh
Created Apr 2, 2012 — forked from erikh/hack.sh
OSX For Hackers
View hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@vmalloc
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)
parser.add_argument("server")
You can’t perform that action at this time.