Skip to content

Instantly share code, notes, and snippets.

View vreon's full-sized avatar

Jesse Dubay vreon

View GitHub Profile
@vreon
vreon / .Xresources
Created February 27, 2011 03:26
molokai color theme for xterm
! Molokai theme
*xterm*background: #101010
*xterm*foreground: #d0d0d0
*xterm*cursorColor: #d0d0d0
*xterm*color0: #101010
*xterm*color1: #960050
*xterm*color2: #66aa11
*xterm*color3: #c47f2c
*xterm*color4: #30309b
*xterm*color5: #7e40a5
@vreon
vreon / distractions.sh
Created March 18, 2011 01:16
Cheesy script to encourage productivity by blocking time sinks at the DNS level
#!/bin/bash
function usage {
echo "Usage: distractions [on/off]"
exit
}
if [ $# -eq 0 ]; then
usage
fi
@vreon
vreon / .bashrc
Last active August 29, 2022 18:28
TODO syntax highlighting for vim
todo () {
if [ "$1" = "-g" ]; then
path=$HOME
else
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/TODO" ]]; do
path=${path%/*}
done
[ -z "$path" ] && path=$HOME
fi
@vreon
vreon / gist:1513475
Created December 23, 2011 07:22
schema entity selection
> look
Example Room
This room is for demonstration purposes only.
Things nearby:
Thingy C
Thingy A
Thingy B
Thingy D
Thingy E
> get thingy
@vreon
vreon / out.txt
Last active August 29, 2015 13:59
$ ./trimet.sh routes=100
signMessage routeNumber lastLocID nextLocID delay latitude longitude
Blue to SW 185th 100 10117 10121 -147 45.5109047 -122.7142741
Blue to Gresham 100 9758 8333 -1194 45.519884 -122.6844158
Blue to E 197th 100 8349 8350 -136 45.5224024 -122.5284551
Blue to Gresham 100 8350 8351 -117 45.5222426 -122.5068932
Blue to Gresham 100 9758 8333 -1205 45.5192354 -122.6819898
Blue to Gresham 100 9828 9822 58 45.5034006 -122.8389054
Blue to SW 185th 100 8371 8372 -123 45.535821 -122.5859749
Blue to SW 185th 100 8377 8378 -167 45.525233 -122.6714482
#!/bin/bash
# k8s-status.sh: get a birds-eye view of a Kubernetes cluster
# For best results: watch -cn1 ./k8s-status.sh
green='\e[0;32m'
yellow='\e[0;33m'
purple='\e[0;35m'
cyan='\e[0;36m'
white='\e[0;37m'
reset='\e[0m'

Keybase proof

I hereby claim:

  • I am vreon on github.
  • I am vreon (https://keybase.io/vreon) on keybase.
  • I have a public key ASDdxiEPB1HT6MmKsI1s2Rp-r3nttQnUDXCg9-2x9QuLKAo

To claim this, I am signing this object:

@vreon
vreon / track2slack.sh
Last active April 24, 2017 20:21
Sync currently-playing mpd track to Slack
#!/bin/bash
# Sync currently-playing mpd track to Slack
# Requires mpc, jq, curl
# Contains SLACK_TOKEN
source ~/.zshrc_secrets
prev_playing=''
while true; do
@vreon
vreon / test.yaml
Last active February 1, 2018 21:21
argoproj/argo-workflows#711 not-super-onerous workaround
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: test
spec:
entrypoint: main
templates:
- name: main
inputs:
artifacts:
@vreon
vreon / test.yaml
Last active February 1, 2018 21:23
argoproj/argo-workflows#711 super-brittle workaround
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: test
spec:
entrypoint: main
templates:
- name: main
inputs:
artifacts: