Skip to content

Instantly share code, notes, and snippets.

Eddie Hillenbrand eddieh

  • Bellevue, WA
Block or report user

Report or block eddieh

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

Build Your Own Windows Vagrant Box


I have found myself needing to test on Windows frequently. I need to be able to spin up fresh virtual machines—Vagrant seems to be the perfect solution.

I primarily use Macs for development and am currently using a cross compiler to develop native Win32 apps (and eventually Win64 apps). On the Mac side, basics like Homebrew are assumed to be

eddieh / .profile
Last active Dec 11, 2019
Colorize ls output and display a special symbol indicating the file type
View .profile
## Colors
## The color designators are as follows:
# a black
# b red
# c green
# d brown
# e blue
# f magenta
# g cyan
# h light grey
eddieh / iPadUpdater 91.log
Last active Dec 11, 2019
iPad Pro fails to recover
View iPadUpdater 91.log
2019-09-20 12:12:46.000 iTunes[4560:507]: restore library built Aug 29 2019 at 10:37:51
2019-09-20 12:12:46.000 iTunes[4560:507]: iTunes: iTunes
2019-09-20 12:12:46.000 iTunes[4560:507]: iTunes: Apple Mobile Device version: 1190.9.1
2019-09-20 12:12:46.000 iTunes[4560:507]: iTunes: Software payload version: 16G102
2019-09-20 12:12:46.000 iTunes[4560:507]: iTunes: Using MobileRestore state machine
[12:12:54.2907] Can't get board config with NULL device map
[12:12:54.2915] You can't copy the serial number from a DFU mode device
[12:12:54.2930] Can't search 0 registry node for serial device
[12:12:54.2932] =====================================================
[12:12:54.2932] Device info:
eddieh / .profile
Last active Dec 11, 2019
Name tabs based on the current directory in
View .profile
# set the current tab's name
function tab_name {
printf "\e]1;$1\a"
# set the tab's name to the current working directory name
function update_tab_name {
tab_name "$(basename $PWD)"
eddieh / howto-shebang
Last active Dec 11, 2019
Insert shebang #! with Emacs
View howto-shebang
#!/usr/bin/tail -n+2
Don't chmod that file! Don't type a shebang! Edit an executable script
in Emacs and invoke
M-x executable-set-magic
This is a self-displaying file made with `executable-self-display'. If
you have had a stroke and forgotten how to make a script executable by
hand, just insert the following form as the first line of the script
eddieh / gist.el.error.txt
Last active Dec 10, 2019
gist.el choked on non-ascii multibyte character
View gist.el.error.txt
error in process sentinel: Multibyte text in HTTP request: PATCH /gists/1c784cd92b2de48a214d16734dd59807 HTTP/1.1
MIME-Version: 1.0
Connection: keep-alive
Extension: Security/Digest Security/SSL
Accept-encoding: gzip
Accept: */*
User-Agent: URL/Emacs Emacs/26.3 (OpenStep; x86_64-apple-darwin14.5.0)
Authorization: token super-secrect-token-of-many-ascii-characters
Content-Type: application/json
eddieh /
Last active Dec 12, 2019
Develop an Emacs Major Mode

Develop an Emacs Major Mode


Developing an Emacs major mode is perhaps unnecessarily complex, but it offers unmatched flexibility and control.

eddieh /
Last active Dec 10, 2019
Org-mode example doc that tests GitHub support

Org-mode Test Document

Heading Level

This is either the heading or the title when interpreted by GitHub Gist. I don’t recall which. Donec sed odio operae, eu vulputate felis rhoncus. Nihilne te nocturnum praesidium Palati, nihil urbis vigiliae. Quae vero auctorem tractata ab fiducia dicuntur. Quisque placerat facilisis egestas cillum dolore. Paullum deliquit, ponderibus modulisque suis ratio utitur. Plura mihi bona sunt,

eddieh / style.adoc
Created Mar 31, 2016
Universal Code Style
View style.adoc

Universal Code Style

There are three important principles related to coding style. All three principals should be followed.

First, follow the base guidlines for whatever language you happen to be working in. Usually this means you try to make your code look like

eddieh /
Last active Jan 8, 2020
libevent vs libuv

libevent vs libuv

Comparing libevent and libuv. My upfront biased: I want to like libevent. However, I want to objectively compare the two and make an informed decision.

What versions are we comparing?

  • libevent 2.0.22 (Stable) [2014-01-05]
  • libuv 1.8.0 (Stable) [2015-12-15]
You can’t perform that action at this time.