Skip to content

Instantly share code, notes, and snippets.

View tbutts's full-sized avatar
🛸

Tyler Butters tbutts

🛸
  • New York, US
View GitHub Profile
@tbutts
tbutts / tmux-migrate-options.py
Last active February 29, 2024 08:11
For tmux configs: Merge deprecated/removed -fg, -bg, and -attr options into the -style option
#!/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 December 15, 2017 03:13
Get the puzzle instructions & input from the Advent of Code website
#!/bin/bash
# Dec 14, 2017
#
# Get the puzzle instructions & input from the Advent of Code website
#
# Usage:
# aoc <day>
#
set -euo pipefail