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
/* Dropbox Screenshot Tool Thingy | |
* ============================== | |
* David Robertson - http://davidr.me/ | |
* | |
* Dependencies: | |
* - ImageMagick | |
* - Magick++ | |
* - xclip (on linux - on a mac, be sure to change the COPY part of the settings below) | |
* - xdotool (required for taking screenshots of the active window only) | |
* - notify-send (for on-screen notification that a screenshot has just been taken) |
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
puts "XOR tool" | |
hexvals = Array.new | |
puts "Enter first value in hex: " | |
hexvals << gets.chomp | |
puts "Enter second value in hex: " | |
hexvals << gets.chomp | |
vals = Array.new |
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
class String | |
def last(n) | |
self[-n,n] | |
end | |
end | |
require "digest" | |
def hash_message(message) | |
sha256 = Digest::SHA2.new(256) |
NewerOlder