This file contains hidden or 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
options.addOption("h", "help", false, "Print this help message"); | |
options.addOption("v", "version", false, "Print version and exit"); | |
options.addOption("c", "config", false, | |
"Path to topology config file"); |
This file contains hidden or 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/env ruby | |
num_times = (ARGV[0] || "1_000_000").gsub(/_/,'').to_i | |
seed = (ARGV[0] || Time.now).to_i | |
# $stderr.puts "seed is #{seed}" | |
srand(seed) | |
time = Time.now.to_f | |
users = %w[Ace Beer Charlie Don Edward Freddie George Harry Ink Johnnie King London Monkey Nuts Orange Pip Queen Robert Sugar Toc Uncle Vic William Xray Yorker Zebra] | |
num_times.times do |user| |
This file contains hidden or 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
5. Double-Edged Sword (S05E14) | |
4. Believe in the Stars (S03E02) | |
3. The Bubble (S03E15) |
This file contains hidden or 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
$ curl --verbose 'https://www.tbray.org/ongoing/When/201x/2011/10/20/-big/RUNE3297.jpg' >/dev/null | |
* About to connect() to www.tbray.org port 443 (#0) | |
* Trying 64.34.173.225... % Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0connected | |
* Connected to www.tbray.org (64.34.173.225) port 443 (#0) | |
* SSLv3, TLS handshake, Client hello (1): | |
} [data not shown] | |
* SSLv3, TLS handshake, Server hello (2): | |
{ [data not shown] |
This file contains hidden or 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/env ruby | |
require 'optparse' | |
require 'rubygems' | |
require 'json' | |
require 'open-uri' | |
require 'pp' | |
require 'nagios' | |
JENKINS_HOST = 'localhost' |
This file contains hidden or 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
for (anItem in hudson.model.Hudson.instance.getQueue().getItems()) { | |
anItem.doCancelQueue() | |
} |
This file contains hidden or 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 | |
# | |
# Removes *.MP3 dupes of existing *.M4A files | |
# | |
########################################################## | |
# When you really want to delete files, set REAL=1 | |
REAL=0 |
This file contains hidden or 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
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; |
This file contains hidden or 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
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
# | |
# Blacklist | |
# | |
-A INPUT -s 1.1.1.1 -j DROP | |
# | |
# Base rules |
This file contains hidden or 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/env python | |
import locale | |
from libcloud.compute.types import Provider | |
from libcloud.compute.providers import get_driver | |
RACKSPACE_USER = 'YOUR_USERNAME_HERE' | |
RACKSPACE_KEY = 'YOUR_API_KEY_HERE' | |
HOURS_PER_MONTH = 730.484 # according to magical google calculator | |
DELIMITER = '\t' |