This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Check all existing Docker containers for their mapped paths, and then purge any | |
zombie directories in docker's volumes directory which don't correspond to an | |
existing container. | |
Taken from: https://github.com/docker/docker/issues/6354 | |
""" | |
import logging | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Adds a timestamp beside every line of data received on STDIN. | |
# Turns this -> Into that: | |
# -> Time Data | |
# [INFO] event 1 -> 04-03-2014 12:00:01 [INFO] event 1 | |
# [INFO] event 2 -> 04-03-2014 12:00:02 [INFO] event 2 | |
# example usage: tail -f some.log | timestamp_it > some-timed.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Feb, 27th, 2012 | |
# Kevin and Jared at Mad Railers | |
# run with rspec | |
require 'rubygems' | |
require 'rspec' | |
def roman(number) | |
output = "" | |
conversion_table = { |