Skip to content

Instantly share code, notes, and snippets.

Tad Merchant ezmac

Block or report user

Report or block ezmac

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

Keybase proof

I hereby claim:

  • I am ezmac on github.
  • I am ezmac ( on keybase.
  • I have a public key ASDEgbF7l8rz7rg3AebZGEKA0mvN5Ww42J2-Z1OhHF7Ajwo

To claim this, I am signing this object:

ezmac / prompt_aws.zsh
Last active Dec 3, 2018
AWS profile zsh prompt indicator
View prompt_aws.zsh
prompt_aws() {
repo_path=$(git rev-parse --git-dir 2>/dev/null)
if [[ -z $AWS_PROFILE ]]; then
if [[ ! -z $AWS_PROFILE ]]; then
if [[ $AWS_PROFILE == *"prod"* || $AWS_PROFILE == ${PROD_AWS_PROFILE} ]]; then
prompt_segment red white
ezmac / hammond xk1c updates.txt
Created Jul 6, 2018
hammond xk1c updates with large flash drive or usb stick
View hammond xk1c updates.txt
A friend of mine has a hammond xk1c keyboard and needed to install some updates. The keyboard is known to have some weirdness when it comes to using large flash drives (anything bigger than 512 MB can be hit or miss). I don't know much about the keyboard, but this is something that worked for him. This has been posted on facebook but I'm reposting here so it is public info and findable by google.
I was able to limit the size of the Fat32 partition on a 16GB USB drive to 500MB and then manually create the correct file structure and this made a previously unusable USB work correctly in the XK1C. The is the procedure using Terminal in OSX:
(with no flash drive plugged in)
ls /dev | grep rdisk
(plug in flash drive, wait 10 seconds)
ls /dev | grep rdisk
(you’ll see a new one. Something like rdisk2)
diskutil unmount /dev/rdiskX
ezmac / gist:bf976ebff45388473713
Created Jul 11, 2015
docker run script for slightly less annoying container dev.
View gist:bf976ebff45388473713
pwd=$(printf '%q\n' "${PWD##*/}")
if [ -z $env ]; then
echo "PROD"
#prod use absolute paths here
docker run --name $pwd -i -t -p 80:80 -p 443:443 -v /data/logs:/data/logs:rw -v /data/containers/docker-nginx-front/config/:/data/config/:rw $pwd
elif [[ $env="dev" ]]; then
ezmac / keto.markdown
Created Jul 28, 2014
Paleo/keto as I understand it.
View keto.markdown

Paleo primer for the masses

This is just a quick primer I threw together. Please point out any mistakes in it. I'm system.root on gmail.


  • Paleo - Short for paleolithic diet, paleo is a lifestyle based on the idea that humans evolved eating meat, fat, fruits, and vegetables without grains or legumes
  • Ketosis - Ketosis is a state of metabolism characterized by higher than "normal" ketones in the blood.
  • Crossfit - A workout plan based on the idea that humans didn't evolve sitting at an office desk all day. It can be summed up as "Move heavy stuff"
  • Carbohydrate - abbreviated carb, it is a macronutrient containing 4 calories per gram
ezmac /
Last active Aug 29, 2015
Developing asp classic apps in linux/vim (using a mounted IIS folder)

This is dumb, but I run linux and have to debug asp classic apps on occasion. The obvious way would be to work in windows with vim for windows, but my shortcuts don't work there and the flow is off. Rather, I use a particular setup to allow me to work seamlessly in linux using a low power windows 8 laptop physically beside my linux machine. With this setup, I don't have to leave linux often, but I have a synergy connection between the two machines, so they share a mouse.

The windows machine has one display, cygwin, and Watch 4 Folder (a free/shareware windows program similar to incrontab). Watch 4 Folder watches the inetpub/logs/FailedReqLogFiles/ folder and subfolders for file create. This happens for FREB (Failed request event buffering). When it happens, it opens the log in IE (because no other browser has the xlst to render it correctly). Additionally, if I have a file that receives debugging statements, I'll keep cygwin at 50% transparent, full screen, and 'tail -f' on the file. A folder for t

ezmac / gist:9809076
Last active Aug 29, 2015
Installing docker on Debian Wheezy
View gist:9809076
This will be quick and kind of dirty since I lost the original version when restarting X. My fault. Hopefully, I'll clean this up when I follow it on my laptop. I haven't yet, so it may not work correctly.
I used this page for some of the configuration:
According to that page, you need kernel 3.8 or above. I'm running 3.11.10 from backports.
To install from binaries, use the instructions at: I installed mine in ~/apps/docker. A summary follows.
mkdir ~/apps/docker
cd !$ # !$ is the argument from previous command. Great trick.
wget -O docker
chmod +x docker
You can’t perform that action at this time.