Skip to content

Instantly share code, notes, and snippets.

View rothmichaels's full-sized avatar

Roth Michaels rothmichaels

View GitHub Profile
@rothmichaels
rothmichaels / public.gpg
Created May 22, 2016 20:14
Roth Michaels PGP Key (0x4afa275ef3c6ff5c)
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFc2KHoBEACogEJho6tXrJdzBOzx/jkcUXfvVEEeubdk1qtCxpezJAxea1HE
Ces3rgQE5DcCeBPtaYJnf/iqAOiqKN7aLbbsnYJYaWwPqKwn5O8jge4y6nofcQ6j
TLADHXxu3znZ0NXLy3Pqm0aZ8Y3IQ8MMwQAl/68NKjAWxd1p2HK5TBSwlpVONEYh
aqTN3cwRfzJsC4OKOM+L0Op47s13Xlb3gxWoiMzDnvOdVukc0FkrqH5NruMOufsT
owUJ9r54xVBvTY3CHyfhTfIkMNOnhxqGJdGOMO9E5cWpo4jsIPGNqgLv5VRZtSTX
Ign7aT0e+DOeC5ybQDpomocGzmztfnPXuNJ1CtFt2G53zKkqej367XmZic7UMXUU
HaGmINpO7hbM8gEH0cya4antWExZ3cvjCTEbuAUaxr7VdJGbWboiVlNqu6Q//8hg
@rothmichaels
rothmichaels / .dir-locals.el
Last active July 6, 2016 21:44
Django .dir-locals.el example
((python-mode
(python-shell-interpreter-args . "/PATH/TO/PROJECT/manage.py shell")
(python-shell-virtualenv-path . "/PATH/TO/VIRTUALENV")))
(defun gnus-user-format-function-t (dummy)
(case (car gnus-tmp-method)
(nnimap
(let ((count (nnimap-request-message-count gnus-tmp-qualified-group)))
(if count
(format "%d" count)
"?")))
(t
gnus-tmp-number-total)))
@rothmichaels
rothmichaels / note
Created November 6, 2016 17:31
Quick notes on the command line
#!/bin/sh
OUTFILE="$HOME/Dropbox/org/notes-$(date '+%Y%m%d').txt"
cat >> "$OUTFILE"
@rothmichaels
rothmichaels / SpotifyAntiVacuum
Last active November 9, 2016 22:04
Removes SQLite VACUUM command references from Spotify
#!/usr/bin/python
target = "/Applications/Spotify.app/Contents/MacOS/Spotify"
with open(target) as infile:
bytes = infile.read()
with open("./Spotify", "wb") as backup:
backup.write(bytes)
fixed = bytes.replace("VACUUM;", "xxxxxx;")
with open (target, "wb") as outfile:
outfile.write(fixed)