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 | |
echo " | |
############################################################################### | |
Download tests. Warning: downloads approx 100MB per site. Total approx 1.8GB | |
############################################################################### | |
" | |
function download_benchmark() { | |
#echo "Benchmarking download from $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
package com.silvenga.singleton; | |
import java.util.Random; | |
public class RandomSingleton | |
// Basic interface for a Singleton | |
public static Random getInstance() { | |
// Return the instance of Random created in RandomContainer |
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
start on filesystem and started networking | |
stop on shutdown | |
author "Mark Lopez" | |
description "Ghost Upstart Job" | |
version "0.2" | |
respawn | |
respawn limit 5 30 |
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 | |
# Place in /usr/share/backup/ | |
# and make executable | |
# chmod 0744 dup-backup.sh | |
# install: | |
# apt-get install duplicity python-gdata python-gobject-2 python-paramiko | |
## Remeber to change Google drive user name and Google drive folder | |
## And change Email | |
# Must run as root for system wide backups |
NewerOlder