Skip to content

Instantly share code, notes, and snippets.

View beardedtim's full-sized avatar
💭
I may be slow to respond.

Tim Roberts beardedtim

💭
I may be slow to respond.
View GitHub Profile
@beardedtim
beardedtim / docker-destroy-all.sh
Created March 9, 2018 19:47 — forked from JeffBelback/docker-destroy-all.sh
Destroy all Docker Containers and Images
#!/bin/bash
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
@beardedtim
beardedtim / wordpressMediaGallery.js
Created May 16, 2016 20:41
Abstraction for wp.media
var MediaGallery = {
mediaFrame : "",
setAttributes : function (title, button, type, multiple) {
this.mediaFrame = wp.media({
title: title,
button: {
text: button
},
library: {
type: type