Skip to content

Instantly share code, notes, and snippets.

Jeff Paine JeffPaine

Block or report user

Report or block JeffPaine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active Oct 2, 2019
i3 Window Manager Cheat Sheet
View i3-cheat-sheet.md

i3 Window Manager Cheat Sheet

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

General

  • 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
JeffPaine / irssi-notes.md
Created Feb 25, 2015
General notes on the irssi IRC client
View irssi-notes.md

irssi Notes

General Commands

  • /disconnect disconnect from a server
  • /connect connect to a server e.g. /connect irc.corp.google.com
  • /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
JeffPaine / tmux-notes.md
Last active Jan 29, 2016
Notes on tmux.
View tmux-notes.md

tmux Notes

Settings

  • 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
JeffPaine / vim-notes.md
Last active Jan 3, 2019
General vim notes.
View vim-notes.md

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.
View beautiful_idiomatic_python.md

Moved

Now located at https://github.com/JeffPaine/beautiful_idiomatic_python.

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
JeffPaine / make_github_issue.py
Created Jul 19, 2012
Make an issue on github using API V3 and Python
View make_github_issue.py
import json
import requests
# Authentication for user filing issue (must have read/write access to
# repository to add issue to)
USERNAME = 'CHANGEME'
PASSWORD = 'CHANGEME'
# The repository to add this issue to
REPO_OWNER = 'CHANGEME'
@JeffPaine
JeffPaine / us_state_abbreviations.py
Created Jul 10, 2012
A python list of all US state abbreviations.
View us_state_abbreviations.py
states = ["AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DC", "DE", "FL", "GA",
"HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD",
"MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ",
"NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC",
"SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY"]
You can’t perform that action at this time.