Skip to content

Instantly share code, notes, and snippets.

View whiteley's full-sized avatar

Matt Whiteley whiteley

View GitHub Profile
#!/bin/bash
set -o errexit
set -o nounset
if [[ ${#} -ne 1 ]]
then
echo "Usage: ${0} upstart-conf-file" >&2
exit 1
fi
#!/bin/bash
LOGFILE=$(mktemp "/tmp/$(basename "${BASH_SOURCE}")_XXXXXXXXXX.log")
exec {BASH_XTRACEFD}>>"${LOGFILE}"
date >> "$LOGFILE"
set -o xtrace
set -o errexit
set -o nounset
$ perl -V
Summary of my perl5 (revision 5 version 22 subversion 1) configuration:
Platform:
osname=linux, osvers=3.16.0, archname=x86_64-linux-gnu-thread-multi
uname='linux localhost 3.16.0 #1 smp debian 3.16.0 x86_64 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dcc=x86_64-linux-gnu-gcc -Dcpp=x86_64-linux-gnu-cpp -Dld=x86_64-linux-gnu-gcc -Dccflags=-DDEBIAN -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Dldflags= -Wl,-Bsymbolic-functions -Wl,-z,relro -Dlddlflags=-shared -Wl,-Bsymbolic-functions -Wl,-z,relro -Dcccdlflags=-fPIC -Darchname=x86_64-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.22 -Darchlib=/usr/lib/x86_64-linux-gnu/perl/5.22 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/x86_64-linux-gnu/perl5/5.22 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.22.1 -Dsitearch=/usr/local/lib/x86_64-linux-gnu/perl/5.22.1 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr
@whiteley
whiteley / md.go
Last active September 1, 2016 04:43
Crawl EC2 meta-data and output JSON
package main
import "bytes"
import "bufio"
import "encoding/json"
import "flag"
import "fmt"
import "net/http"
import "os"
import "strings"
diff --git a/server.go b/server.go
index 646cb44..33cd4ea 100644
--- a/server.go
+++ b/server.go
@@ -1247,8 +1247,8 @@ func (srv *Server) ContainerCopy(name string, resource string, out io.Writer) er
}
func NewServer(flGraphPath string, autoRestart, enableCors bool, dns ListOpts) (*Server, error) {
- if runtime.GOARCH != "amd64" {
- log.Fatalf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
umask 077
readonly checksum="sha1sum"
remote_file "/Applications/VMware Fusion.app/Contents/Library/vmnet-natd" do
source "http://www.vmware.com/go/dl_vmnet-natd"
checksum "98228060fcb10b42f42d44d2d81678ddf8fc4e14b1071e20a3ae2add01ef09ae"
notifies :run, "execute[stop-vmware-natd]", :immediately
notifies :run, "execute[start-vmware-natd]", :immediately
end
execute "stop-vmware-natd" do
action :nothing
command ["/Applications/VMware Fusion.app/Contents/Library/vmnet-cli", "--stop"]
ANTICLOCKWISE OPEN CIRCLE ARROW
ANTICLOCKWISE TOP SEMICIRCLE ARROW
CLOCKWISE OPEN CIRCLE ARROW
CLOCKWISE TOP SEMICIRCLE ARROW
DOWNWARDS ARROW
DOWNWARDS ARROW FROM BAR
DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW
DOWNWARDS ARROW WITH CORNER LEFTWARDS
DOWNWARDS ARROW WITH DOUBLE STROKE
DOWNWARDS ARROW WITH TIP LEFTWARDS
config.vm.provision :chef_solo do |chef|
chef.json = {
"apt" => {
"cacher_ipaddress" => "192.168.184.1"
}
}
chef.run_list = [
"recipe[apt::cacher-client]",
"recipe[apt]"
]
@whiteley
whiteley / gist:7093104
Created October 22, 2013 00:08
Work music
The Album Leaf
The Ascent of Everest
Codes in the Clouds
edIT
Explosions in the Sky
God is an Astronaut
Godspeed You! Black Emperor
If These Trees Could Talk
M83
Red Sparowes