Skip to content

Instantly share code, notes, and snippets.

Avatar

Butters tbutts

  • US
View GitHub Profile
@tbutts
tbutts / tmux-migrate-options.py
Last active May 12, 2021
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
View tmux-migrate-options.py
#!/usr/bin/env python
# vim: set fileencoding=utf-8
#
# USAGE:
# Back up your tmux old config, run the script and redirect stdout to your conf
# file. Example:
#
# $ cp ~/.tmux.conf ~/.tmux.conf.orig
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf
#
@tbutts
tbutts / aoc.sh
Created Dec 15, 2017
Get the puzzle instructions & input from the Advent of Code website
View aoc.sh
#!/bin/bash
# Dec 14, 2017
#
# Get the puzzle instructions & input from the Advent of Code website
#
# Usage:
# aoc <day>
#
set -euo pipefail