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/sh | |
# Ping the Coralville router so the VPN tunnel stays up | |
ping -c 1 10.0.48.11 |
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
window.open(window.location.protocol+'//'+window.location.host+'/admin/'); |
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
size=`rsync --delete --delete-excluded -pthrv --exclude-from \ | |
/Users/paul/.backup/exclude /Users/paul/Documents/ \ | |
/Users/paul/Dropbox | egrep -o "total size is (.*)G" | egrep -o "[0-9\.]+"` | |
if [ "$size" = "" ]; then | |
size=0 | |
fi | |
if [ `echo "$size < 1.8" | bc` = 0 ]; then | |
echo "`date`: WARNING: Size is running out for Dropbox backups.\ | |
(Currently using ${size} GB.)" 1>&2 |
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/sh | |
# Author: Sean Garner <seanlgarner@gmail.com> | |
# | |
### BEGIN INIT INFO | |
# Provides: persevere | |
# Required-Start: $network $remote_fs | |
# Required-Stop: $network $remote_fs | |
# Default-Start: 3 5 | |
# Default-Stop: 0 1 2 6 | |
# Description: Start the live instance of Persevere |
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
/** | |
* @fileOverview Script to upload files to Mosso Cloud Files for AKAR | |
* @author Nathan L Smith | |
* @date March 18, 2009 | |
*/ | |
/*global ActiveXObject, WScript, MF, AKAR */ | |
(function () { |
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
// 1: how could you rewrite the following to make it shorter? | |
foo ? bar.doSomething(el) : bar.doSomethingElse(el); | |
// 2: what is the faulty logic in the following code? | |
var foo = 'hello'; | |
(function() { |
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
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
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/python | |
import os, re | |
from os.path import join, abspath, isfile, isdir, exists, basename | |
from shutil import copyfile, copytree, rmtree | |
from time import strftime, strptime, localtime | |
from time import localtime, strftime | |
import cloudfiles | |
""" | |
Author: Brandon Woodward, RHCE |
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/python | |
import os, re | |
from os.path import join, abspath, isfile, isdir, exists, basename | |
from shutil import copyfile, copytree, rmtree | |
from time import strftime, strptime, localtime | |
from time import localtime, strftime | |
import cloudfiles | |
""" | |
Author: Brandon Woodward, RHCE |