Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Dubay vreon

View GitHub Profile
@vreon
vreon / oneoff.sh
Last active May 18, 2021
oneoff: a utility for managing exploratory project dirs
View oneoff.sh
#!/bin/bash
#
# oneoff: a utility for managing exploratory project dirs
#
# This exists because I needed something to fill the gap between `mkdir
# ~/Projects/some-project` and `mktemp -d`.
#
# I got tired of having to think of a name as the very first step every time I
# wanted to kick some code around, and as `~/tmp` began to fill up with `foo`
# and `asdf` dirs I realized something had to change or I'd lose it.
View test.yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: test
spec:
entrypoint: main
templates:
- name: main
inputs:
artifacts:
@vreon
vreon / test.yaml
Last active Feb 1, 2018
argoproj/argo-workflows#711 not-super-onerous workaround
View test.yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
name: test
spec:
entrypoint: main
templates:
- name: main
inputs:
artifacts:
@vreon
vreon / track2slack.sh
Last active Apr 24, 2017
Sync currently-playing mpd track to Slack
View track2slack.sh
#!/bin/bash
# Sync currently-playing mpd track to Slack
# Requires mpc, jq, curl
# Contains SLACK_TOKEN
source ~/.zshrc_secrets
prev_playing=''
while true; do
View keybase.md

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:

View k8s-status.sh
#!/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'
View out.txt
$ ./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
@vreon
vreon / gist:1513475
Created Dec 23, 2011
schema entity selection
View gist:1513475
> 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 / .bashrc
Last active Aug 29, 2022
TODO syntax highlighting for vim
View .bashrc
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 / distractions.sh
Created Mar 18, 2011
Cheesy script to encourage productivity by blocking time sinks at the DNS level
View distractions.sh
#!/bin/bash
function usage {
echo "Usage: distractions [on/off]"
exit
}
if [ $# -eq 0 ]; then
usage
fi