Skip to content

Instantly share code, notes, and snippets.

@chooban
chooban / heroku-builds.sh
Last active November 7, 2019 16:46
Script for graphing heroku build and slug size data
#! /bin/zsh
autoload colors
if [[ "$terminfo[colors]" -gt 8 ]]; then
colors
fi
eval RESET='$reset_color'
function spin() {
spinner="/|\\-/|\\-"
@chooban
chooban / errors.md
Last active June 18, 2019 14:37
Stupid errors that took me more than 1 hour to solve

As suggested by Julio Biason

  • Requestly was intercepting requests

    Spent two hours trying to figure out what I couldn't login to the application, before remembering that Requestly was messing with headers and causing problems.

@chooban
chooban / README.md
Last active March 10, 2017 09:20 — forked from syntagmatic/README.md
Producer Price Indexes

Uses constraint relaxation to calculate new label positions, then transitions when no more adjustments are needed.

Also see the average prices.

@chooban
chooban / README.md
Last active December 13, 2016 12:01
Dice result table generator

Create an exportable table of results from a dice roll.

#!/bin/bash
function dimg {
docker images $@ |
sed "s/ \+/;/g" |
column -s\; -t |
sed "1s/.*/\x1B[1m&\x1B[m/"
}
function docker_fit {
@chooban
chooban / keybase.io
Created March 9, 2014 09:34
Keybase identification
### Keybase proof
I hereby claim:
* I am chooban on github.
* I am chooban (https://keybase.io/chooban) on keybase.
* I have a public key whose fingerprint is E9DD 1D18 0D50 D924 E09F D250 DC9C F9BA 497F BB27
To claim this, I am signing this object: