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
pngcrush -rem allb -brute -reduce file.png /dev/stdout | openssl base64 | tr -d '\n' | pbcopy |
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
// Assorted validation regexes from Nicor's rebate system | |
{ | |
USERNAME_REGEX : /^[a-zA-Z0-9_\-]{0,1000}$/, | |
PASSWORD_REGEX : /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^a-zA-Z0-9])[A-Za-z0-9~`!@#$%^&*()_+={}\-]{8,50}$/, | |
MTN_REGEX : /^\d{10}$/, | |
TRACKING_NO_REGEX : /^\d{5,13}$/, | |
ZIPCODE5_REGEX : /^\d{5}$/, | |
ACCOUNT_REGEX : /^\d{10}$/, | |
ACCOUNT_REGEX_20: /^\d{0,20}$/, | |
NUMBER_REGEX : /^\d*$/, |
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 | |
BASE_URL = "https://virusshare.com/hashfiles/VirusShare_00!.md5" | |
0..389.each do |num| | |
puts "Downloading #{num}..." | |
`wget #{BASE_URL.gsub('!', num)}` | |
end |
OlderNewer