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
supported_ciphers = [] | |
known_ciphers = { | |
0x000000 => "TLS_NULL_WITH_NULL_NULL", | |
0x000001 => "TLS_RSA_WITH_NULL_MD5", | |
0x000002 => "TLS_RSA_WITH_NULL_SHA", | |
0x000003 => "TLS_RSA_EXPORT_WITH_RC4_40_MD5", | |
0x000004 => "TLS_RSA_WITH_RC4_128_MD5", | |
0x000005 => "TLS_RSA_WITH_RC4_128_SHA", | |
0x000006 => "TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5", |
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
"TP-Processor1: userId=_41473_1, sessionId=BC36FD8E8DDBE2F6CA6940DA6E68F035" daemon prio=3 tid=0x000000010be74000 nid=0x142 runnable [0xffffffff2bdb5000] | |
java.lang.Thread.State: RUNNABLE | |
at blackboard.platform.intl.resource.BbProperties.loadConvert(BbProperties.java:213) | |
at blackboard.platform.intl.resource.BbProperties.load0(BbProperties.java:189) | |
at blackboard.platform.intl.resource.BbProperties.load(BbProperties.java:133) | |
- locked <0x00000006b0597018> (a blackboard.platform.intl.resource.BbProperties) | |
at blackboard.platform.intl.resource.BbPropertyResourceBundle.addBundle(BbPropertyResourceBundle.java:66) | |
at blackboard.platform.intl.BundleManagerImpl$1.run(BundleManagerImpl.java:522) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at blackboard.platform.intl.BundleManagerImpl.loadBundleFromFile(BundleManagerImpl.java:500) |
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
setQueryStringParameter = (element, elementAttr, paramName, paramValue) -> | |
src=element.attr elementAttr | |
splitSrc=src.split '?' | |
uri=splitSrc[0] | |
qs=splitSrc[1] | |
qsObject={} | |
qs.split('&').forEach (attribute) -> | |
split_attr=attribute.split('=') | |
qsObject[split_attr[0]]=split_attr[1] | |
console.log qsObject |
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 'rubygems' | |
require 'net/ping' | |
require 'net/smtp' | |
server=ARGV.first | |
smtp_server='mailhost.shef.ac.uk' | |
from_name="Pingy Test Thingy" | |
from_address="pingy@yourdomain.com" |
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 "rubygems" | |
require "active_support/inflector" | |
require "snmp" | |
require 'graphite-api' | |
require 'graphite-api/core_ext/numeric' | |
require 'logger' | |
require "pp" | |
NODE_STATE = [ :undefined, :alive, :dead, :unknown, :draining ] |
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
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) | |
$LOAD_PATH.unshift(File.dirname(__FILE__)) | |
require 'sinatra' | |
require 'drmaa' | |
require 'cod' | |
require 'logger' | |
require 'rpam' | |
require 'json' | |
require 'pp' |
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
function processParkingMessages() { | |
// get all unread messages labelled as Parking | |
var parkingThreads = GmailApp.getUserLabelByName('Parking').getThreads(); | |
var parkingThreadMessages = parkingThreads.map(function(thread) { return thread.getMessages(); }); | |
var parkingMessages = []; | |
var parkingMessages = parkingMessages.concat.apply(parkingMessages, parkingThreadMessages); | |
var unreadParkingMessages = parkingMessages.filter(function(message) { return message.isUnread(); }); | |
// Map through all the unread parking messages and search for a date/time in the appropriate format. | |
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/ruby | |
require 'rubygems' | |
require 'nagios-probe' | |
require 'snmp' | |
require 'optparse' | |
class NagiosDiskCheck < Nagios::Probe | |
attr_reader :perfdata | |
def initialize(opts = {}) |
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
class Player | |
@@health = 0 | |
@@direction = :forward | |
@@mode = :attack | |
def taking_damage(warrior) | |
@@health > warrior.health | |
end | |
def next_thingy(spaces) |
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
require 'rubygems' | |
require 'gdata' | |
MAX_RETRIES = 5 | |
LOGIN_USER = "administrator@yourdomain.com" | |
LOGIN_PASSWORD = "administratorpassword" | |
# Login and use version 3 of the api (only v3 allows admin access to files) | |
client = GData::Client::DocList.new |
OlderNewer