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 | |
require "httparty" | |
def usage! | |
puts "Usage: hipchat-transcript <token> <room id> [date]" | |
exit! | |
end | |
TOKEN = (ARGV[0] || usage!) |
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 | |
target = ARGV[0] | |
dest = ARGV[1] | |
unless target && dest | |
puts "Github Archive Usage: gharch <user/repo> <destdir>" | |
exit(1) | |
end | |
remote, repo = target.split("/") |