Skip to content

Instantly share code, notes, and snippets.

empireshades /
Last active August 29, 2015 13:56
This script will build python-2.7.x on a centos 6.x box. Tested on vagrant.
# This works on vagrant rather well particularly with the passwordless sudo
# Tested on a Centos 6.5 box file
# Thanks to for
# specfile and install logic
# Set this to the version of python you want to build.
# As of this writing 2.7.6 is the latest

This document contains some notes I have gathered while I was trying to setup a redis service using boot2docker running on OS X. This won't cover what Docker is, see Docker website for details.

Installing boot2docker

First, install Virtualbox and follow the steps at

Since Docker only runs on Linux, boot2docker runs a virtual machine in Virtualbox (or VMWare etc), however you can run the docker command on OS X

empireshades / goog_img_display
Created May 22, 2015 19:35
Iterate through list of terms, google image search each, and display results in ipython notebook inline
# Yes i know i could have used Requests
import urllib2
import json
from IPython.display import display
from IPython.display import Image
for car in yearlist:
url = ('' +
'v=1.0&rsz=8&q=%s') % car.replace(" ", "%20")
function onGLC(glc) {
// glc.playOnce();
// glc.size(400, 400);
// glc.setMode("single");
// glc.setEasing(false);
glc.styles.backgroundColor = "rgba(0,0,90,.3)";
function onGLC(glc) {
// glc.playOnce();
// glc.size(400, 400);
// glc.setMode("single");
// glc.setEasing(false);
glc.styles.backgroundColor = "#101010";
function onGLC(glc) {
// glc.playOnce();
// glc.size(400, 400);
// glc.setMode("single");
// glc.setEasing(false);
var list = glc.renderList,
empireshades /
Last active August 31, 2016 02:39 — forked from nl5887/
Bash and zsh alias for Transfers files and directories to
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/\ncat /tmp/ | transfer"
return 1
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file

Unit 1: God's Will and Your Life

"I am the vine; You are the branches. If a man remains in me and I in him, he will bear much fruit; apart from me you can do nothing." -John 15:5

Day 1: Jesus Is Your Way

  • As I follow Jesus one day at a time, He will keep me in the center of God's will.
  • Jesus is my Way. I don't need any other road map.

Day 2: Jesus is Your Model

  • The Bible is my guide for faith and practice
  • The right question is, What is God's will?
empireshades /
Created May 10, 2012 21:01
Script that runs an MTR (MattsTraceRoute) report against a given host, saves the output to log and also emails. This is meant to be called by smokeping (via pipe '|') after an alert is triggered. Tested on python2.6
#!/bin/env python
'''This is a script which runs an MTR (matt's traceroute)
against a target hosts - meant to be triggered by a
smokeping alert. Output is emailed and saved to log.'''
import argparse, datetime, subprocess, smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# Steps to enable CUDA (NVIDIA GPU) on a Centos7 box
# (This is not a script, just some notes)
# setup chroot sftp user for workers to be able to drop files: