Keybase proof
I hereby claim:
- I am rothwerx on github.
- I am rothwerx (https://keybase.io/rothwerx) on keybase.
- I have a public key ASBy7WRKEIU2UJRhUTIcRrHbXliZjB8p5pDriDHcUa6mywo
To claim this, I am signing this object:
IMAGE_NAME := whatever/whatever | |
.PHONY: docker-build version-increment bc-check | |
docker-build: version-increment | |
DOCKER_BUILDKIT=1 docker buildx build -t $(IMAGE_NAME):v$(shell cat version.txt) . | |
version-increment: bc-check | |
bc <<< "1 + $(shell cat version.txt)" > version.txt | |
bc-check: |
[alias] | |
co = checkout | |
st = status | |
ls = log --stat | |
cp = cherry-pick | |
lsshort = log --stat --abbrev-commit | |
lsnm = log --stat --no-merges | |
lslast = "!f() { \ | |
git ls-tree --name-only HEAD $1 | while read filename; do echo \"$(git log -1 --date=iso --pretty=format:'%ad' -- $filename) $filename\"; done \ | |
}; f" |
#!/bin/bash | |
# A lighter graphite for raspberry pi/raspbian wheezy. | |
# For when you don't need memcache/rabbitmq/full uWSGI server/etc | |
# Not fully tested on a clean install. This is just what it *should* take. | |
# Installing supervisor because upstart conflicts with sysvinit | |
aptitude update && aptitude install gcc python-dev python-pip python-cairo python-pysqlite2 supervisor libffi-dev | |
pip install django==1.4.3 |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
from optparse import OptionParser | |
from subprocess import Popen, PIPE | |
# Requires wmic from Samba project, or here: | |
# http://dev.zenoss.org/trac/browser/tags/zenoss-3.2.1/inst/externallibs | |
wmic = '/vagrant/wmic' | |
parser = OptionParser() |
set nocompatible | |
if has("syntax") | |
syntax on | |
endif | |
if has("autocmd") | |
" Automatically reload vimrc after saving | |
autocmd bufwritepost .vimrc source $MYVIMRC | |
" Remember last position in file |
# set -g default-terminal "screen-256color" | |
# fix pbpaste and pbcopy commands on OSX https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard | |
# set-option -g default-command "reattach-to-user-namespace -l $SHELL" | |
# Report support for 256 colors | |
set -g default-terminal "screen-256color" | |
# remap prefix to C-a | |
set -g prefix C-a |
# iPython 6 dropped support for Python 2.7 | |
sudo pip install "pathlib2==2.1.0" | |
sudo pip install "ipython<6.0" |
#!/usr/bin/env python | |
import sys | |
from datetime import datetime | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument('logfile', help='Log file') | |
parser.add_argument('-s', '--seconds', default=1, type=int, | |
help='Only log entries that took over n seconds') |
#!/bin/bash | |
# This file can be wget'ed at http://is.gd/vimme | |
realpath() { | |
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
} | |
if ! command -v git; then | |
echo "You really need git." | |
exit 1 |