Skip to content

Instantly share code, notes, and snippets.

@Zolmeister
Zolmeister / config
Last active August 29, 2015 13:55
i3 config file
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

Keybase proof

I hereby claim:

  • I am Zolmeister on github.
  • I am zolmeister (https://keybase.io/zolmeister) on keybase.
  • I have a public key whose fingerprint is 29B1 BB4C 362A 2C14 C19E 4C33 43AA D778 81AE 0EB0

To claim this, I am signing this object:

@Zolmeister
Zolmeister / github_sync.sh
Created November 16, 2014 10:33
Clone all github repos
curl -s https://api.github.com/users/<USERNAME>/repos\?per_page\=200 | grep ssh_url | cut -d \" -f 4 | xargs -n 1 git clone
@Zolmeister
Zolmeister / app.yml
Created March 19, 2015 22:32
Ansible Skeleton
---
# file: roles/app/tasks/main.yml
- name: ensure logging directory exists
file: path=/var/log/acme state=directory
tags:
- install
- name: ensure config directory exists
file: path=/etc/acme/app state=directory
@Zolmeister
Zolmeister / calc.coffee
Last active August 29, 2015 14:22
A/B test calculations
################################################################################
# A/B test calculations #
# #
# Based on Stats Engine #
# //pages.optimizely.com/rs/optimizely/images/stats_engine_technical_paper.pdf #
################################################################################
##################
# Helper Methods #
##################
// send network request timings to Google Analytics
(function() {
var nativeOpen = XMLHttpRequest.prototype.open
var nativeSend = XMLHttpRequest.prototype.send
var startTime = null
var pendingCount = 0
XMLHttpRequest.prototype.open = function(_, url) {
this._url = url
return nativeOpen.apply(this, arguments)
}
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]