Skip to content

Instantly share code, notes, and snippets.

View whitmo's full-sized avatar
💭
state 26

Whit Morriss whitmo

💭
state 26
View GitHub Profile
@whitmo
whitmo / cracklepop.py
Created September 24, 2019 17:29
Crakkly Pop
"""
Write a program that prints out the numbers 1 to 100 (inclusive).
If the number is divisible by 3, print Crackle instead of the number.
If it's divisible by 5, print Pop. If it's divisible by both 3 and 5, print CracklePop.
"""
import sys
import io
import base64
@whitmo
whitmo / terraform-review.md
Created December 4, 2018 14:43
Reviewing terraform
@whitmo
whitmo / final-session.md
Last active December 11, 2017 00:06
Poem for my mindfulness facilitator training group

Final Session (on ephemerality)

for PDMF Fall 2017

every day
in fact every single moment is
the end of the world as we know it

On this cold day
#!/bin/bash
apt-get update -qq
apt-get install -qy apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
mkdir -p /etc/apt/sources.list.d/
echo 'deb https://apt.dockerproject.org/repo ubuntu-wily main' > /etc/apt/sources.list.d/docker.list
apt-get update -qq
sudo apt-get -qy install "linux-image-extra-$(uname -r)"
PATH=$PATH:$HOME/.juju-plugins
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
2015-07-10T13:54:12.47-0500 [STG] OUT Staging failed: Buildpack compilation step failed
2015-07-10T14:07:34.95-0500 [DEA] OUT Got staging request for app with id fa3d174b-073e-4faa-9b94-1c53f6a36fe3
2015-07-10T14:07:36.27-0500 [STG] OUT -----> Downloaded app package (3.2M)
2015-07-10T14:07:36.36-0500 [STG] ERR Cloning into '/tmp/buildpacks/heroku-buildpack-ruby'...
2015-07-10T14:07:37.48-0500 [STG] OUT Submodule 'compile-extensions' (https://github.com/cloudfoundry-incubator/compile-extensions) registered for path 'compile-extensions'
2015-07-10T14:07:37.53-0500 [STG] ERR Cloning into 'compile-extensions'...
2015-07-10T14:07:37.81-0500 [STG] OUT Submodule path 'compile-extensions': checked out 'ce9345a9a6e7b00266194cadd18dbef37e791a7b'
2015-07-10T14:07:37.89-0500 [STG] ERR It looks like you're deploying on a stack (currently set to *lucid64*) that's not supported by this buildpack.
2015-07-10T14:07:37.89-0500 [STG] ERR That could be because you're using a recent buildpack r
# Lightening talks
- Tom Kapanka - Distributed Data & Persistence with Docker
- Christopher Liljenstolpe - How networking can actually help instead of hurt
- Yocalhost: Yelp's one weird trick for avoiding links, sidekicks, and overlay networks - Kyle Anderson, SRE @ Yelp
- Charles Butler - Pinwheels before production
2015/06/20 23:02:46
:Timestamp: 2015-06-20 23:02:46.400997056 +0000 UTC
:Type: DockerLog
:Hostname: ip-172-31-43-33
:Pid: 0
:Uuid: 6e02ef93-5d93-4f18-8b51-ecff73993f41
:Logger: stdout
:Payload: 172.17.42.1 - - [20/Jun/2015:23:02:46 +0000] "GET / HTTP/1.1" 200 612 "-" "curl/7.35.0" "-"
:EnvVersion:
:Severity: 7
[
{
"ServicePort": 49158,
"ServiceAddress": "",
"ServiceTags": null,
"ServiceName": "nginx-80",
"ServiceID": "7829423e36cb:ng-0:80",
"Address": "172.31.38.159",
"Node": "consul-0"
},
python-django
charm-proof PASS
make lint FAIL
00-setup PASS
01-dj13 PASS
01-dj14 PASS
01-djdistro PASS
10-mysql ERROR
10-postgresql ERROR