Skip to content

Instantly share code, notes, and snippets.

@drb
drb / docker.txt
Last active January 26, 2017 21:30
Docker cheatsheet
#!/bin/bash
# deletes all containers
docker rm $(docker ps -a -q)
# deletes all images
docker rmi $(docker images -q)
# rebuild everything and restart any changed containers
docker-compose up -d --build

Keybase proof

I hereby claim:

  • I am drb on github.
  • I am dbullough (https://keybase.io/dbullough) on keybase.
  • I have a public key ASBLdQlsiPqeCBBUN4ZJLnGKRPEwqeDA5QeigsyLSSRcfAo

To claim this, I am signing this object:

@drb
drb / affirmation
Created August 12, 2015 13:08
MuleSoft Contributor Agreement Acceptance by Dave Bullough
I, Dave Bullough, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Wed Aug 12 2015 14:08:07 GMT+0100 (BST)
@drb
drb / kuku-cheat
Created May 20, 2015 10:06
Kuku Kube Cheat Helper
// run in console - inverts colours
setInterval(function(){var els=document.getElementById('box'),o;els=els.getElementsByTagName('span');o=els[0].style.backgroundColor;for (var i=0;i<els.length;i++){var s=els[i].style.backgroundColor;if (s.toString() !== o.toString()) {els[i].style.backgroundColor='white'}};}, 10);