Skip to content

Instantly share code, notes, and snippets.

View ampedandwired's full-sized avatar

Charles Blaxland ampedandwired

  • Sydney, Australia
View GitHub Profile
@ampedandwired
ampedandwired / trello-bz.js
Created October 27, 2016 07:24
A TamperMonkey script that turns bugzilla bug references in Trello into clickable links. Handles formats
// ==UserScript==
// @name Trello Bugzilla Linker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Links Trello issues to Bugzilla
// @author Charles Blaxland
// @match https://trello.com/*
// @grant none
// ==/UserScript==
@ampedandwired
ampedandwired / trello-bz.js
Created October 27, 2016 07:24
A TamperMonkey script that turns bugzilla bug references in Trello into clickable links. Handles formats like "BZ123", "BZ-123", "BZ 123" or "BZ#123"
// ==UserScript==
// @name Trello Bugzilla Linker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Links Trello issues to Bugzilla
// @author Charles Blaxland
// @match https://trello.com/*
// @grant none
// ==/UserScript==
@ampedandwired
ampedandwired / docker-cleanup.sh
Created February 12, 2017 22:33
Docker cleanup
#!/bin/bash
# Remove exited containers
docker rm $(docker ps -qa --no-trunc --filter "status=exited")
# Remove dangling containers
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
# Remove unused images (https://github.com/docker/docker/issues/9054#issuecomment-184246090)
docker rmi $(grep -xvf <(docker ps -a --format '{{.Image}}') <(docker images | tail -n +2 | grep -v '<none>' | awk '{ print $1":"$2 }'))