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/env ruby | |
#http://blog.rubygems.org/2016/04/06/gem-replacement-vulnerability-and-mitigation.html | |
require 'rubygems' # for older rubies | |
require 'rest-client' | |
require 'bundler' | |
require 'time' | |
require 'json' | |
CHECK_GEMS_BEFORE = Time.parse("Feb 9, 2015") |
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/perl | |
# Buchan Milne <[email protected]> 20051213 | |
# Script to monitor OpenLDAP performance and sync-replication status via | |
# Hobbit (may also still work with BigBrother). | |
# | |
# 1)Install Net::LDAP (perl-ldap) and Date::Manip (perl-DateManip) | |
# 2)Run as task from hobbitserver.cfg (or BBEXT in bbdef.sh for BigBrother) | |
# 3)Use ncv in hobbit to collect data: | |
# -add "ol=ncv" to TEST2RRD, and "ncv" to GRAPHS in hobbitserver.cfg |
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
import org.junit.Test | |
import static org.junit.Assert.assertEquals | |
// 31 - 62 exponents should fail due to type mismatch | |
class FooTest { | |
@Test void test30() { | |
assertEquals 1073741824, (2 ** 30) | |
} | |
@Test void test31() { |
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
This is simple to test. | |
Step 1 | |
Create a test file | |
$ echo "OMG Please dont delete me" > /tmp/myfile.text | |
Step 2 |