Skip to content

Instantly share code, notes, and snippets.

View simonsdave's full-sized avatar

Dave Simons simonsdave

  • Toronto, Ontario, Canada
View GitHub Profile
@simonsdave
simonsdave / gist:6a0113e5d502824a457af8f1a34b5b77
Created August 16, 2016 12:33
where does the docker daemon log?
see [this](http://stackoverflow.com/questions/30969435/where-is-the-docker-daemon-log) stackoverflow post
@simonsdave
simonsdave / remove_all_docker_containers
Created May 13, 2016 12:15
remove all docker containers
sudo docker kill `sudo docker ps --no-trunc -q` >& /dev/null
sudo docker rm `sudo docker ps --no-trunc -a -q` >& /dev/null
@simonsdave
simonsdave / docker_remote_api
Created May 31, 2015 15:25
enabling docker remote API on Ubuntu 14.04 on GCE
* spin up a VM on GCE and
install docker (based on [these](https://docs.docker.com/installation/ubuntulinux/) instructions)
```bash
gcloud compute instances create dave --machine-type n1-standard-1 --image ubuntu-14-04
gcloud compute ssh dave
wget -qO- https://get.docker.com/ | sh
```
* to verify install is working
@simonsdave
simonsdave / pudb
Last active August 29, 2015 14:07
1-liners for invoking pudb
# https://github.com/nblock/pdb-cheatsheet
from pudb import set_trace; set_trace()
nosetests --pudb