Skip to content

Instantly share code, notes, and snippets.

View mjuarez's full-sized avatar
🇺🇦
#StandWithUkraine

Mike Juarez mjuarez

🇺🇦
#StandWithUkraine
  • 14:20 (UTC -08:00)
View GitHub Profile
@mjuarez
mjuarez / prepare-commit-msg.py
Last active March 23, 2022 22:15
A git hook for prefixing commit messages with local branch names that are prefixed with Jira issue IDs. To be used as `prepare-commit-msg`
#!/usr/bin/env python3
import sys
import subprocess
import re
jira_pattern = re.compile(r'^\w+-\d+')
result = subprocess.run(['git', 'symbolic-ref', '--short', 'HEAD'], stdout=subprocess.PIPE)
if result.returncode == 0:
git_output = result.stdout.decode('utf-8')
@mjuarez
mjuarez / golang_gdb.sh
Created November 30, 2015 19:04
Quick and Dirty Golang GDB
#!/bin/bash
eval $(go test -c -work 2>&1 >/dev/null | head -n 1)
echo $WORK
gdb `basename $PWD`.test -d $WORK
echo "Deleting $WORK"
rm -rf $WORK
@mjuarez
mjuarez / gist:66b8fa60664d06449a6b
Created June 1, 2015 18:48
Velocity Conf 2015 Notes

Velocity Conf 2015

Day 1

Bootstrapping an Ops Team - Charity Majors (Parse)

Operations - anything pertaining to maintaining and implementing systems at scale

Do you really need an ops team?

@mjuarez
mjuarez / containercamp15.md
Last active September 27, 2017 05:55
Container Camp '15 Notes

Container Camp 2015

Presentations

Building and scaling container driven cloud infrastructure - Bryan Cantrill

Bryan Cantrill, CTO of Joyent. My god did he talk stupidly fast. People mentioned that he apparently beat some record.

Bryan did an excellent recap of how LXC containers, and eventually Docker came to be. Also brought us up to speed with what Joyent has been doing to basically allow inherently Linux based LXC containers to run under "Solaris."

@mjuarez
mjuarez / chefconf15.md
Created April 3, 2015 01:17
Chef Conf '15 Notes

Chef Conf 2015

Disney DevOps

  • DevOps is not a team or title, but a philosophy
  • DevOps culture, change behavior
  • Teams and Tools
    • Kaizen habits
  • Tools
    • IAC, CI, CD, Automation, Metrics
  • Matterhorn - cms
@mjuarez
mjuarez / gist:7f49bc791861be625919
Created October 28, 2014 21:16
Chef pre-commit hooks
#!/bin/bash
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
fi

Keybase proof

I hereby claim:

  • I am mjuarez on github.
  • I am megabytemike (https://keybase.io/megabytemike) on keybase.
  • I have a public key whose fingerprint is A329 F2B0 170C AC4D 5E7B 943B BF8F E996 6EE3 9AF7

To claim this, I am signing this object: