Skip to content

Instantly share code, notes, and snippets.

View bacongobbler's full-sized avatar

Matthew Fisher bacongobbler

View GitHub Profile
><> docker run -it alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
Digest: sha256:7df6db5aa61ae9480f52f0b3a06a140ab98d427f86d8d5de0bedab9b8df6b1c0
Status: Downloaded newer image for alpine:latest
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-170-g9a8ee8c004 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-173-g53f4e4e2a7 [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
@bacongobbler
bacongobbler / release.sh
Last active April 8, 2018 15:16
Uploading static site assets to Azure Blob Storage
#!/usr/bin/env bash
set -eo pipefail
# Print a usage message and exit.
usage() {
cat >&2 <<-'EOF'
Usage: ./release.sh
To run, I need:
- to be provided with the name of the resource group these assets live in, in environment variable AZURE_RG_NAME
CC=gcc
CFLAGS=-lm
ODIR=obj
BINDIR=bin
HOST_OS := $(shell uname -s 2>/dev/null | tr "[:upper:]" "[:lower:]")
TARGET_OS ?= $(HOST_OS)
HOST_ARCH := $(shell uname -m)
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQINBFp8op4BEADDk9QQYbTaq+nXTvxxTyjBqmTS3CsN94y8TfxslVLbQym3wuT5
9zWUv+JRlIZoqZiXJvrXFuJnUgTuzniYkrLtxvUWRKY8cISqcuA26d40YuBeQXWl
TvHAeDiJ3vyLRbS38/tzcEYThojuc0CMIklqDwrwI2J3DAegkfc4jAB60Q9oYo/M
IlsRxS1jaLMoe3xUFJV8Lq9BQOehqNSpL+L0lCHsXmLJjczuAE+pYReIuAlyeke5
o5/t4fdEqc5hziTN7XJGF5qAHK4+iEuzYx1M1UHuHqCOzZX8P/KOXT90Iru8HZ11
r/NueLUHIK/PALFBd8tC1zu03pyEKBgSd/qdsyFvIlJHQIEUOe66RaBOLhhBm9o7
97dWceYrktl0xIJxLRlcwQAb8/+xivDsQAdERU3xwVbWk9UQJx8Jy9fjI8bvJF/n

Keybase proof

I hereby claim:

  • I am bacongobbler on github.
  • I am bacongobbler (https://keybase.io/bacongobbler) on keybase.
  • I have a public key ASCMtpYk3A2himgDeRHrllxXReAB6LGgI-ltqa1qHPAIDwo

To claim this, I am signing this object:

{
"apiVersion": "2017-01-31",
"location": "westus",
"name": "cliacstest000002",
"properties": {
"agentPoolProfiles": [
{
"count": 3,
"dnsPrefix": "cliasdns000003agent",
"name": "agentpool0",
@bacongobbler
bacongobbler / .gitconfig
Last active August 28, 2017 23:47
My local git config
[user]
name = Matthew Fisher
email = matt.fisher@microsoft.com
[core]
editor = vim
whitespace = fix,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
[color]
ui = auto
editor = vim
><> pwd
/Users/bacongobbler/go/src/github.com/deis/example-python-flask
><> draft create
--> Python app detected
--> Ready to sail
><> git status
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
><> docker run -it golang bash
root@d8b9123c7249:/go# cd src/
root@d8b9123c7249:/go/src# mkdir k8s.io
root@d8b9123c7249:/go/src# cd k8s.io/
root@d8b9123c7249:/go/src/k8s.io# git clone https://github.com/kubernetes/helm
Cloning into 'helm'...
remote: Counting objects: 20430, done.
remote: Total 20430 (delta 0), reused 0 (delta 0), pack-reused 20429
Receiving objects: 100% (20430/20430), 7.40 MiB | 14.12 MiB/s, done.
Resolving deltas: 100% (12841/12841), done.
starting registry-proxy...
10.48.6.1 - - [29/Jul/2016:16:48:31 +0000] "\x16\x03\x01\x00}\x01\x00\x00y\x03\x03\xD2\xBA\x02\xF9O\x98\xEE\xC9\xBC>93K\x14$\xEF\xF2\xE0W5\xD9\xB4\xCBap\xE4Ug\xD0\xC8\x06\x03\x00\x00\x10\xC0+\xC0/\xC0" 400 173 "-" "-" "-"
10.48.6.1 - - [29/Jul/2016:16:48:31 +0000] "GET /v2/ HTTP/1.1" 200 2 "-" "docker/1.9.1 go/go1.4.3 git-commit/a34a1d5 kernel/3.16.0-4-amd64 os/linux arch/amd64" "-"
10.48.6.1 - - [29/Jul/2016:16:48:31 +0000] "GET /v2/test-419360465/manifests/v2 HTTP/1.1" 200 9686 "-" "docker/1.9.1 go/go1.4.3 git-commit/a34a1d5 kernel/3.16.0-4-amd64 os/linux arch/amd64" "-"
10.48.6.1 - - [29/Jul/2016:16:48:31 +0000] "HEAD /v2/test-419360465/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 HTTP/1.1" 307 0 "-" "docker/1.9.1 go/go1.4.3 git-commit/a34a1d5 kernel/3.16.0-4-amd64 os/linux arch/amd64" "-"
10.48.6.1 - - [29/Jul/2016:16:48:31 +0000] "HEAD /v2/test-419360465/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4 HTTP/1.1" 307