Skip to content

Instantly share code, notes, and snippets.

View jhaubrich's full-sized avatar

Jesse Haubrich jhaubrich

View GitHub Profile
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url("http://www.4clojure.com/") {
body {
filter:invert(100%);
background-color:black;
}
#footer {
visibility: hidden;

ert

(ert-deftest foo ()
  (assert nil))

Now: M-x ert RET foo RET

apropos

Emacs makes discovery easier.

@jhaubrich
jhaubrich / udfaix.bash
Created August 10, 2015 21:02
readable on linux, but not windows.
root(p720config.waas.lab)> cfgmgr
root(p720config.waas.lab)> udfcreate -d /dev/usbms0 -f3
root(p720config.waas.lab)> mount -Vudfs -o log=NULL /dev/usbms0 /usb_mnt
root(p720config.waas.lab)> ls /usb_mnt
lostfile.dir
root(p720config.waas.lab)> touch /usb_mnt/me

NOC Maint hosed graphite

GLaDOS

./noc_down_graphite.png

Data Missing from when the NOC went down.

Populators listen to atlas:50000

@jhaubrich
jhaubrich / emacs-email-setup.md
Last active August 29, 2015 14:25 — forked from areina/emacs-email-setup.md
Manage your email in emacs with mu4e

Manage your gmail account in emacs with mu4e

There're a lot of combinations to manage your email with emacs, but this works for me. I've a backup and I can manage my daily email.

The stack:

  • emacs
  • offlineimap
  • mu
  • mu4e

Things that programmers don't know but should

(A book that I might eventually write!)

Gary Bernhardt

I imagine each of these chapters being about 2,000 words, making the whole book about the size of a small novel. For comparison, articles in large papers like the New York Times average about 1,200 words. Each topic gets whatever level of detail I can fit into that space. For simple topics, that's a lot of space: I can probably walk through a very basic, but working, implementation of the IP protocol.

139 jhaus@flexo ~/src/mu (git)-[master] % make :(
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/jhaus/src/mu/missing aclocal-1.15 -I m4
cd . && /bin/sh /home/jhaus/src/mu/missing automake-1.15 --gnu
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake-1.15 line 3936.
CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/jhaus/src/mu/missing autoconf
/bin/sh ./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
matrix = []
arr = ['a', 'b', 'c', 'd']
rows = arr.length/size // can't have this in loop declaration because it changes size every time we pop
for (row = 0; row < 2; row++) {
matrix[row] = []
for (col = 0; col < size; col++) {
console.log(row, col, matrix)
matrix[row][col] = arr.shift() // pop gives us the last element and makes a transposed array, we need shift
@jhaubrich
jhaubrich / Arch Linux on a macbook.org
Last active December 2, 2022 19:50
Arch Linux on my MacBook 11,3

Arch Linux on a MacBookPro 11,3

Read The Arch Way, fall in.

Still Todo

I can’t believe how smoothly this went…

  • suspend - seems to work after installing gnome, pm-suspend works too… I have my eye on you. <.<
    • systemctl suspend works, but doesn’t wake properly.
  • power management
  • trackpad
@jhaubrich
jhaubrich / qtile-develop.py
Last active August 29, 2015 14:24
Installing Qtile in a virtuaenv.
1 jhaus@flexo ~/src % virtualenv ~/venv/qtile-test-dev :(
Using base prefix '/usr'
New python executable in /home/jhaus/venv/qtile-test-dev/bin/python
Installing setuptools, pip...done.
jhaus@flexo ~/src % . ~/venv/qtile-test-dev/bin/activate
jhaus@flexo ~/src % cd qtile
jhaus@flexo ~/src/qtile (git)-[develop] % pip install --upgrade pip
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting pip