Skip to content

Instantly share code, notes, and snippets.

View mgirouard's full-sized avatar
🤘

Michael Girouard mgirouard

🤘
View GitHub Profile
@mgirouard
mgirouard / Makefile
Created July 24, 2017 20:47
`make`ing with wildcard prereqs
consumers.go: $(wildcard data/consumers/*.pub)
ls -l data/consumers > consumers.go
cat consumers.go
clean:
rm -rf consumers.go data/consumers/*.pub
@mgirouard
mgirouard / docker-compose.yml
Created September 14, 2016 19:03
prometheus in a box
version: '2'
volumes:
metric_data: {}
networks:
metrics:
driver: bridge
services:
@mgirouard
mgirouard / vbox-list-ips.sh
Created September 8, 2016 05:31
Get VirtualBox IPs for a given VM
# http://superuser.com/a/634198
VBoxManage guestproperty enumerate $1 | grep IP
@mgirouard
mgirouard / guzzle-exceptions.md
Created July 17, 2016 00:36
GuzzleHttp Exception Hierarchy
  • GuzzleException
    • SeekException
    • TransferException
      • RequestException ( RequestInterface ; ResponseInterface | null )
        • TooManyRedirectsException
        • ConnectException
        • BadResponseException
          • ServerException
  • ClientException
Issue Type:

Documentation Report

Ansible Version:

1.9.2

Ansible Configuration:
Verifying I am +mgirouard on my passcard. https://onename.com/mgirouard
#!/bin/bash
t() {
if $(tmux list-sessions &> /dev/null); then
tmux attach
else
[[ $1 == "" ]] && SESSION_NAME='MISC' || SESSION_NAME=$1
tmux new-session -s $SESSION_NAME
fi
}
curl http://beyondgrep.com/ack-2.14-single-file > ~/bin/ack && chmod 0755 !#:3
sc() {
sudo systemctl "$@.service";
}

Keybase proof

I hereby claim:

  • I am mgirouard on github.
  • I am mgirouard (https://keybase.io/mgirouard) on keybase.
  • I have a public key whose fingerprint is D5E3 AA4C C622 4D7D 4547 1CA6 1554 2317 50AB D834

To claim this, I am signing this object: