Skip to content

Instantly share code, notes, and snippets.

View spikegrobstein's full-sized avatar

spike grobstein spikegrobstein

View GitHub Profile
@spikegrobstein
spikegrobstein / zork.zsh-theme
Created March 19, 2022 04:35
zork clone from bash-it for oh-my-zsh
# terminal coloring
export CLICOLOR=1
export LSCOLORS=dxFxCxDxBxegedabagacad
local git_branch='$(git_prompt_info)%{$reset_color%}'
PROMPT="┌─[%B%{$fg[green]%}%n%{$reset_color%}%b][%{$fg[green]%}%m%{$reset_color%}]${git_branch}[%{$fg[cyan]%}%~%{$reset_color%}]
└─▪ "
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[green]%}%B±%b%{$reset_color%}]["
@spikegrobstein
spikegrobstein / docker-compose.yml
Last active September 17, 2025 19:47
docker-compose file for sabnzbd/sonarr/radarr
# start up with 'docker-compose up -d' to start in background
# update images with 'docker-compose pull'
# this assumes that you have a sibling directory to this file called 'config' that contains all of the config for these services
# you can reference 'sabnzbd' 'radarr' or 'sonarr' from inside the containers (in the apps) to reference the other containers. no need to deal with IPs or hostnames
# remember that docker is isolated from the rest of your filesystem. you need to add volumes to the entries
# in order to give the processes access to them. so if you have multiple target directories for TV or Movies,
# then make sure you add each one that you want radarr/sonarr/sabnzbd to see.
version: '3'
services:
@spikegrobstein
spikegrobstein / nginx.conf
Last active July 26, 2025 20:11
nginx config for proxying requests for plex over a hostname-based virtualhost.
upstream plex-upstream {
# change plex-server.example.com:32400 to the hostname:port of your plex server.
# this can be "localhost:32400", for instance, if Plex is running on the same server as nginx.
server plex-server.example.com:32400;
}
server {
listen 80;
# server names for this server.
@spikegrobstein
spikegrobstein / computernames.md
Last active July 11, 2025 21:00
A [nearly] exhaustive list of every physical computer I've had that had a persistent name. The theme started out as Aphex Twin track names but later expanded to any song title (or derivation of).
Name Type Source Year
CornishAcid Powermac 7600/132 1997
WetTipHenAx PCfx! 133mhz - win98 (in 7600) 1998
Ventolin Blue/White G3 Tower @ 450mhz 1999
Riddles Powerbook 140 1999
Fingerbib Grey/White G4 Tower @ 450mhz 2002
Waxenpith Powerbook G4 @ 1ghz 2002
Mookid G4 @ 800mhz in ATX case 2003
Cowcud Pentium3 Server @ 800mhz 2004

Important

this is a cool important note

Tip

I had no idea this stuff worked.

Hmmmm

Tip

For the best experience, try saying "meow" or "woof" out loud while your encryption runs. It doesn't affect the algorithm at all, but it does make you feel more connected to the process! 🐱

@spikegrobstein
spikegrobstein / tmux.conf
Last active July 22, 2022 15:23
my tmux config (updated for 2.4)
# This requires tmux 2.1. a lot of these settings will error on anything earlier.
# Act like Vim; use h,j,k,l to select panes and move the cursor
set-window-option -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Look good
@spikegrobstein
spikegrobstein / resque-failed-iterator.rb
Created December 11, 2012 23:35
iterate through resque failed jobs
1.upto(Resque::Failure.count) do |i|
job = Resque::Failure.all(i)
# inspect failed job
args = job['payload']['args']
klass = job['payload']['class']
end
@spikegrobstein
spikegrobstein / readme.md
Created March 5, 2021 23:39
proof that bash can differentiate between undefined and an empty string

Example output

$ ./undefined_vs_empty.bash
x was not set.
$ ./undefined_vs_empty.bash -x ''
x was set to: ''
$ ./undefined_vs_empty.bash -x hello
x was set to: 'hello'
@spikegrobstein
spikegrobstein / fullsetup.sh
Last active December 19, 2020 22:01
set up all my shit real quick on a fresh box
if [[ ! -e ~/.ssh/id_rsa.pub ]]; then
ssh-keygen -t rsa -b 4096
fi
cat ~/.ssh/id_rsa.pub
sudo apt-get install -y vim-nox tmux silversearcher-ag
git clone git://github.com/spikegrobstein/vim-config.git ~/.vim
cd ~/.vim
@spikegrobstein
spikegrobstein / inputrc
Created August 25, 2013 15:00
put this in `~/.inputrc` for a good time.
"\e[A": history-search-backward
"\e[B": history-search-forward
$if Bash
Space: magic-space
$endif
"\M-o": "\C-p\C-a\M-f "
set visible-stats on
set show-all-if-ambiguous on
"\M-s": menu-complete