Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Markus Ast rkusa

I may be slow to respond.
View GitHub Profile
rkusa /
Last active Apr 30, 2020
Gitmoji Fish Function (requires fzf; save to `~/.config/fish/functions/`
function gitmoji
set -l selection (cat ~/Development/gitmojis.json | jq '.gitmojis | .[] | [.emoji, .name, .description] | join(" - ")' | sed 's/^"//' | sed 's/"$//' | fzf --query "$argv[1]" +m)
set -l gitmoji (echo $selection | awk '{print $1}')
echo "$gitmoji" | pbcopy
echo "Copied $gitmoji to clipboard ..."
rkusa / nginx.conf
Last active Sep 20, 2016
unicorn rc.d script
View nginx.conf
upstream gunicorn {
server unix:/tmp/gunicorn.sock fail_timeout=0;
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://gunicorn;
rkusa / README
Created Jan 11, 2016
Install alpine linux on xhyve VM
# curl -LO
curl -LO
# create hdd image (8GB)
dd if=/dev/zero of=hdd.img bs=1g count=8
# extract kernel and initramfs
brew install cdrtools
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/initramfs-grsec > initramfs-grsec
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/vmlinuz-grsec > vmlinuz-grsec
rkusa / docker_mount_sizes.bash
Last active Dec 5, 2017
list Docker volumes/mounts sizes
View docker_mount_sizes.bash
for id in `docker ps -q`; do \
name=`docker inspect -f {{.Name}} $id | tail -c +2`; \
echo "$name ($id)"; \
mounts=(`docker inspect -f '{{range .Mounts}}{{.Source}} {{end}}' $id`); \
for mount in ${mounts[@]}; do \
du -hLs $mount | tail -n 1; \
rkusa / couchdb-import.rb
Last active Aug 29, 2015
populate test database with github archive data
View couchdb-import.rb
require 'open-uri'
require 'zlib'
require 'yajl'
require 'net/http'
require 'json'
Net::HTTP.start('localhost', 5984, read_timeout: 3600) do |http|
24.times do |d|
24.times do |h|
rkusa /
Last active Aug 29, 2015
Custom Zwoptex 2 coordinates JSON template.


A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

rkusa /
Created May 11, 2014
local testling testing on Mac with Chrome without X11

Add /usr/bin/chrome (+ chmod +x /usr/bin/chrome) Run testling -x chrome


Keybase proof

I hereby claim:

  • I am rkusa on github.
  • I am rkusa ( on keybase.
  • I have a public key whose fingerprint is CBC2 3F65 3DB7 B0CB 7298 BF32 01FE FDC2 E399 E2B7

To claim this, I am signing this object:

View template-element-backbone-view-example.html
<!doctype html>
<html lang="en">
<div id="your-id">
<template id="your-template-id">
You can’t perform that action at this time.