Skip to content

Instantly share code, notes, and snippets.

View bacongobbler's full-sized avatar

Matthew Fisher bacongobbler

View GitHub Profile
@bacongobbler
bacongobbler / server.log
Created January 23, 2014 22:42
docker-registry swift error logs
2014-01-23 14:40:01,640 INFO: Starting new HTTPS connection (1): region-a.geo-1.identity.hpcloudsvc.com
2014-01-23 14:40:02,652 ERROR: Object GET failed: https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/94165097550687/docker-registry/registry/repositories/library/busybox/_index_images 404 Not Found [first 60 chars of response] <html><h1>Not Found</h1><p>The resource could not be found.<
Traceback (most recent call last):
File "/Users/bacongobbler/git/github.com/dotcloud/docker-registry/venv/lib/python2.7/site-packages/swiftclient/client.py", line 1110, in _retry
rv = func(self.url, self.token, *args, **kwargs)
File "/Users/bacongobbler/git/github.com/dotcloud/docker-registry/venv/lib/python2.7/site-packages/swiftclient/client.py", line 758, in get_object
http_response_content=body)
ClientException: Object GET failed: https://region-a.geo-1.objects.hpcloudsvc.com:443/v1/94165097550687/docker-registry/registry/repositories/library/busybox/_index_images 404 Not Found [first 60 chars of response
#!/bin/bash -ex
CONTROLLER=deis.mydomain.com
rsync -Pav --exclude=docs/ --exclude=htmlcov/ --exclude=logs/ --exclude=venv/ --exclude=.git/ \
--exclude='contrib/vagrant/nodes' --exclude='deis/local_settings*' --exclude='*.pyc'\
$HOME/Projects/deis/* deis@$CONTROLLER:/opt/deis/controller
ssh deis@$CONTROLLER 'sudo restart deis-server ; sudo restart deis-worker'
#!/usr/bin/env bash
source ~/venv/bin/activate
deis register http://local.deisapp.com:8000 --username=bacongobbler --email=mmm@bacon.com --password=qwerty
deis login http://local.deisapp.com:8000 --username=bacongobbler --password=qwerty
deis keys:add ~/.ssh/id_rsa.pub
deis init dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
alias nse='sudo nsenter -p -u -m -i -n -t'
* * * ***** ddddd eeeeeee iiiiiii ssss
* * * * * * d d e e i s s
* * ***** ***** d d e i s
***** * * * d d e i s
* * * * * * d d eee i sss
***** * * ***** d d e i s
* ***** * * d d e i s
* * * * * * d d e e i s s
***** ***** * * ddddd eeeeeee iiiiiii ssss
#!/usr/bin/env bash
source ~/venv/bin/activate
deis register http://local.deisapp.com:8000 --username=test --password=test --email=test@test.com
deis login http://local.deisapp.com:8000 --username=test --password=test
deis keys:add ~/.ssh/id_rsa.pub
deis init dev local.deisapp.com --hosts=local.deisapp.com --auth=~/.vagrant.d/insecure_private_key
Oct 08 16:33:45 deis-3 systemd-journal[27561]: Permanent journal is using 27.5M (max allowed 1.6G, trying to leave 2.4G free of 7.8G available → current limit 1.6G).
Oct 08 16:33:45 deis-3 kernel: docker0: port 5(veth6523) entered forwarding state
Oct 08 16:33:45 deis-3 kernel: BTRFS info (device sda9): csum failed ino 6892 off 778240 csum 526251335 expected csum 2036106506
Oct 08 16:33:45 deis-3 systemd-coredump[27543]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.4a6291559c904cc5ba545486fe14c515.373.1412786025
Oct 08 16:33:45 deis-3 systemd-journal[27561]: Journal started
Oct 08 16:33:45 deis-3 systemd-networkd[1180]: veth6523 : gained carrier
Oct 08 16:33:45 deis-3 systemd-networkd[1180]: veth6523 : link configured
Oct 08 16:33:45 deis-3 systemd[1]: systemd-journald.service: main process exited, code=dumped, status=7/BUS
Oct 08 16:33:45 deis-3 systemd[1]: Unit systemd-journald.service entered failed state.
Oct 08 16:33:45 deis-3 systemd-journal[27561]: Permanent journal is using 27.5M (max allowed 1.6G, trying to leave 2.4G free of 7.8G available → current limit 1.6G).
Oct 08 16:33:45 deis-3 kernel: docker0: port 5(veth6523) entered forwarding state
Oct 08 16:33:45 deis-3 kernel: BTRFS info (device sda9): csum failed ino 6892 off 778240 csum 526251335 expected csum 2036106506
Oct 08 16:33:45 deis-3 systemd-coredump[27543]: Detected coredump of the journal daemon itself, diverted to /var/lib/systemd/coredump/core.systemd-journal.0.4a6291559c904cc5ba545486fe14c515.373.1412786025
Oct 08 16:33:45 deis-3 systemd-journal[27561]: Journal started
Oct 08 16:33:45 deis-3 systemd-networkd[1180]: veth6523 : gained carrier
Oct 08 16:33:45 deis-3 systemd-networkd[1180]: veth6523 : link configured
Oct 08 16:33:45 deis-3 systemd[1]: systemd-journald.service: main process exited, code=dumped, status=7/BUS
Oct 08 16:33:45 deis-3 systemd[1]: Unit systemd-journald.service entered failed state.
#!/bin/bash
export GOPATH=${WORKSPACE}
export DEV_REGISTRY=${HOST_IPADDR}:5000
export PATH=$PATH:${GOPATH}/bin
export DEIS_TEST_APP=example-clojure-ring
cd src/github.com/deis/deis
tests/bin/test-latest.sh
@bacongobbler
bacongobbler / bashrc.sh
Created February 3, 2015 03:58
bash PS1: flipping tables since 2014
function __gen_ps1() {
local EXIT="$?"
PS1=""
local RCol='\[\e[0m\]'
local Red='\[\e[0;31m\]'
local Gre='\[\e[0;32m\]'
local BYel='\[\e[1;33m\]'
local BBlu='\[\e[1;34m\]'