Usage:
To create a new branch that is up-to-date with the remote master:
$ ws 123
Creates the branch issue123
| fresh: clean chart | |
| chart: instance_ages | |
| @echo "AWS EC2 Instance Age Report" | |
| @echo "---------------------------" | |
| @echo "Days\\tCount" | |
| @cat instance_ages | ./chart.py -n | |
| clean: | |
| rm -f instance* |
Usage:
To create a new branch that is up-to-date with the remote master:
$ ws 123
Creates the branch issue123
| Preparation | |
| Purchase YubiKey NEO | |
| Install X Code and Command Line Tools, if installing anything from source. | |
| X Code can be installed from the App Store. | |
| Command Line Tools are installed from X Code: X Code -> Preferences -> Downloads -> Components -> Command Line Tools. | |
| Install YubiKey reader library libyubikey (aka yubico-c) | |
| Using homebrew: | |
| brew install libyubikey | |
| brew install ykpers |
| wait4eth1() { | |
| CNT=0 | |
| until ip a show eth1 | grep -q UP | |
| do | |
| [ $((CNT++)) -gt 60 ] && break || sleep 1 | |
| done | |
| sleep 1 | |
| } | |
| wait4eth1 |
Allow routing allocations:
curl -XPUT localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'| packer build packer.json 2>&1 | sudo tee output.txt | |
| tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt |
| #!/bin/bash | |
| # Set the ROOM_ID & AUTH_TOKEN variables below. | |
| # Further instructions at https://www.hipchat.com/docs/apiv2/auth | |
| ROOM_ID=XXX | |
| AUTH_TOKEN=XXX | |
| MESSAGE="Hello world!" | |
| curl -H "Content-Type: application/json" \ |
| # Postfix stuff | |
| QUEUEID (?:[A-F0-9]{11}|NOQUEUE) | |
| EMAILADDRESSPART [a-zA-Z0-9_.+-=:]+ | |
| EMAILADDRESS %{EMAILADDRESSPART:local}@%{EMAILADDRESSPART:remote} | |
| RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?::[0-9]+(.[0-9]+)?)?)?) | |
| #RELAY (?:%{HOSTNAME:relayhost}(?:\[%{IP:relayip}\](?:%{POSREAL:relayport}))) | |
| POSREAL [0-9]+(.[0-9]+)? | |
| #DELAYS %{POSREAL:a}/%{POSREAL:b}/%{POSREAL:c}/%{POSREAL:d} | |
| DELAYS (%{POSREAL}[/]*)+ | |
| DSN %{NONNEGINT}.%{NONNEGINT}.%{NONNEGINT} |
| [Unit] | |
| Description=MongoDB Database Service | |
| Wants=network.target | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| PIDFile=/var/run/mongodb/mongod.pid | |
| ExecStart=/usr/local/bin/mongod --config /etc/mongod.conf | |
| ExecReload=/bin/kill -HUP $MAINPID |