Skip to content

Instantly share code, notes, and snippets.

JeffPaine /
Last active Jan 18, 2023
A python list of all US state abbreviations.
states = [ 'AK', 'AL', 'AR', 'AZ', 'CA', 'CO', 'CT', 'DC', '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']
states = {
'AK': 'Alaska',
'AL': 'Alabama',
'AR': 'Arkansas',
JeffPaine /
Created Jul 19, 2012
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


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 /
Last active Jan 3, 2019
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.
JeffPaine /
Last active Feb 21, 2022
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 /
Created Feb 25, 2015
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 Jan 28, 2023
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