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
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.parsers.ParserConfigurationException; // catching unsupported features | |
... | |
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | |
try { | |
// Xerces 1 - http://xerces.apache.org/xerces-j/features.html#external-general-entities | |
// Xerces 2 - http://xerces.apache.org/xerces2-j/features.html#external-general-entities | |
dbf.setFeature("http://xml.org/sax/features/external-general-entities", false); | |
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 bash | |
# codex_update.sh | |
# load rvm ruby | |
source /Users/thegodfather/.rvm/environments/ruby-2.1.2 | |
cd /Users/thegodfather/code/codex | |
bundle install | |
ruby ./bin/codex_update.rb |
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 | |
o = [('a'..'z'), ('A'..'Z'), (0..9), ('!'..'$'), ('\''.."+")].map { |i| i.to_a }.flatten | |
if !ARGV[0].nil? | |
puts (0...ARGV[0].to_i).map{ o[rand(o.length)] }.join | |
else | |
puts (0...20).map{ o[rand(o.length)] }.join | |
end |
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
gisttest = "gisttest" |
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
michael@michael-VirtualBox:~/Documents/Dev/balancir/spec/lib/balancir$ bundle install | |
Fetching gem metadata from https://rubygems.org/......... | |
Fetching gem metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Installing awesome_print (1.1.0) | |
Installing facter (1.6.17) | |
Installing timers (1.1.0) | |
Installing celluloid (0.12.4) | |
Installing excon (0.19.5) | |
Using balancir (0.0.1) from source at /home/michael/Documents/Dev/balancir |