Skip to content

Instantly share code, notes, and snippets.

JeffPaine /
Last active June 10, 2024 10:58
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)


  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
JeffPaine /
Created February 25, 2015 17:53
General notes on the irssi IRC client

irssi Notes

General Commands

  • /disconnect disconnect from a server
  • /connect connect to a server e.g. /connect
  • /join #test join the #test channel
  • /statusbar window remove time remove time from statusbar
  • /statusbar window reset reset statusbar to default
  • /ignore -channels #chan1,#chan2 * JOINS PARTS QUITS NICKS ignore joins, parts, etc on the listed channels
  • /c clear the window
JeffPaine /
Last active February 21, 2022 09:55
Notes on tmux.

tmux Notes


  • PREFIX :source-file <filename> Reload the tmux config from
  • unbind Remove a keybinding
  • set -g escape-time 0 tmux adds a delay to sending the escape key in case it is followed by escape sequences. This makes that delay zero. This is nice for using vim under tmux.

Copy / Paste

JeffPaine /
Last active January 3, 2019 23:20
General vim notes.

Vim Notes

  • set list Shows invisible characters.
  • set listchars What invisibile characters should be set to, see :h listchars for complete list.

Key Remapping

  • map creates a key map that works in normal, visual, select and operator pending modes
  • map! creates a key map that works in insert and command-line mode.


Now located at

Why it was moved

Github gists don't support Pull Requests or any notifications, which made it impossible for me to maintain this (surprisingly popular) gist with fixes, respond to comments and so on. In the interest of maintaining the quality of this resource for others, I've moved it to a proper repo. Cheers!

JeffPaine /
Created July 19, 2012 17:24
Make an issue on github using API V3 and Python
import json
import requests
# Authentication for user filing issue (must have read/write access to
# repository to add issue to)
# The repository to add this issue to
JeffPaine /
Last active March 12, 2024 04:39
A python list of all US state abbreviations.
# United States Postal Service (USPS) abbreviations.
abbreviations = [
"AK", "AL", "AR", "AZ", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "IA",
"ID", "IL", "IN", "KS", "KY", "LA", "MA", "MD", "ME", "MI", "MN", "MO",
"MS", "MT", "NC", "ND", "NE", "NH", "NJ", "NM", "NV", "NY", "OH", "OK",
"OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VA", "VT", "WA", "WI",
"WV", "WY",