Skip to content

Instantly share code, notes, and snippets.

View dwilkins's full-sized avatar

David H. Wilkins dwilkins

View GitHub Profile
@dwilkins
dwilkins / crawler.script
Created April 22, 2013 04:27
Script for running the crawler
print "dir forward"
send "dir fwd\n"
print "speed .50"
send "speed .50\n"
sleep 10
print "speed 1"
send "speed 1\n"
sleep 10
print "dir rev ; speed 1"
send "dir rev ; speed 1\n"
@dwilkins
dwilkins / blink_led.sh
Created April 17, 2013 20:40
Shell Script that blinks an LED on pcDuino
@dwilkins
dwilkins / nginx.service
Created April 5, 2013 21:13
nginx.service file from Fedora
# /etc/systemd/system/multi-user.target.wants/nginx.service
[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx
@dwilkins
dwilkins / gist:3859998
Created October 9, 2012 16:49
My Jenkins solution for multiple builds that want the same postgres db name
sed "s/learning_earning_test/le_test_db_${EXECUTOR_NUMBER}/" config/database.yml.example > config/database.yml
@dwilkins
dwilkins / branchinprompt.sh
Created July 25, 2012 15:33
Changes to .bashrc to get the branch into your prompt
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"