View display-off.conf
start on startup
task
exec /usr/sbin/vbetool dpms off
View landscape.cfg
video_allow_rotate = "true"
video_rotation = "3"
aspect_ratio_index = "19"
video_aspect_ratio_auto = false
video_aspect_ratio = .75
View Dockerfile
FROM ubuntu:latest
MAINTAINER john@deckerego.net
RUN apt-get --assume-yes update
RUN apt-get --assume-yes install docker.io iputils-ping net-tools netcat bash
ENV DOCKER_HOST 172.17.0.1
ENTRYPOINT ["ping", "localhost"]
View launch_wait.sh
#!/bin/bash
HOST="$1"
PORT="$2"
RUNNING=1
while [[ $RUNNING -ne 0 ]]; do
echo "Waiting for $HOST:$PORT..."
sleep 3
nc -z "$HOST" "$PORT"
View find_port.bash
#!/bin/bash
if [[ -z $2 ]]; then
echo "$0 SUBNET PORT"
exit -1
fi
CLASSC="$1"
PORT="$2"
View setup.py
import os
def all_files(newroot, oldroot):
fdtuples = []
for root, dirs, files in os.walk(oldroot):
fds = []
for fd in files:
if not fd[0] is '.':
fds.append(os.path.join(root, fd))
View sysctl.conf
kernel.panic = 5
View test_logging.py
import logging
RED='\033[0;31m'
CYAN='\033[0;36m'
GREEN='\033[0;32m'
NC='\033[0m'
logger = logging.getLogger('myapp')
logfile = logging.FileHandler('warnings.log')
View fx_spotlight - Alarm 0
self.fadeIn += fadeStep;
if(fadeIn < fadeMax) {
alarm[0] = fadeSpeed;
}
View syndicate_data.py
#!/usr/bin/python
import MySQLdb
import csv
from boto.s3.connection import S3Connection
from boto.s3.key import Key
query = "\
select id, name, gross_amt \
from cafeteria \