Skip to content

Instantly share code, notes, and snippets.

@emichael
emichael / keybase.md
Created July 26, 2021 18:05
Keybase Verification

Keybase proof

I hereby claim:

  • I am emichael on github.
  • I am emichael (https://keybase.io/emichael) on keybase.
  • I have a public key whose fingerprint is B11F 2163 A88D 543D ACCE E730 62B0 C86F 1FC9 4CA8

To claim this, I am signing this object:

@emichael
emichael / Makefile
Created January 24, 2016 01:09
LaTeX Makefile
LATEX=latexmk -synctex=1 -bibtex -f- -pdf -interaction=nonstopmode -halt-on-error
PAPER=paper
.PHONY: all clean viewpdf continuous-update
all: $(PAPER).pdf
$(PAPER).pdf: clean
# Only compile with verbose if the quiet build fails
$(LATEX) $(PAPER).tex -quiet || $(LATEX) $(PAPER).tex
@emichael
emichael / .gitattributes
Last active January 24, 2016 01:07
Git repo boilerplate
* text=auto
@emichael
emichael / normalize-git-line-endings.sh
Last active January 24, 2016 00:52
Normalize line endings in a git repo
echo "* text=auto" >> .gitattributes
git add .gitattributes
git commit -m "Adding line endings settings"
git rm --cached -r .
git reset --hard
git add .
git commit -m "Normalize line endings"
@emichael
emichael / fb.js
Last active August 29, 2015 14:03
Invite all friends to Facebook event
nodes = document.getElementsByClassName('checkableListItem'); for (var i = 0; i < nodes.length; i++) { nodes[i].getElementsByTagName('input')[0].click(); }