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
# Make Hubot talk shit. | |
module.exports = (robot) -> | |
robot.hear /(fuck you|fuck off|shut up)/i, (msg) -> | |
incoming_msg = msg.message | |
if incoming_msg.text.match ///#{robot.name}///i | |
diss = msg.match[1] | |
if diss != "fuck you" |
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
current_dir = Dir.pwd | |
until current_dir == ENV['HOME'] | |
if File.exist?("#{current_dir}/.irbrc") | |
load "#{current_dir}/.irbrc" | |
break | |
else | |
current_dir = File.dirname(current_dir) | |
end | |
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
bash -c ' | |
<% if ENV['ROLES'].split(",").size > 1 %> | |
HOSTNAME_PREFIX=box | |
<% else %> | |
HOSTNAME_PREFIX=<%= ENV['ROLES'].gsub('_', '-') %> | |
<% end %> | |
yum upgrade -y | |
yum install -y gcc gcc-c++ make zlib-devel openssl-devel patch readline-devel |
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
blah |
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
test |
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
# Hubot likes popcorn | |
# | |
# brb, making popcorn | |
module.exports = (robot) -> | |
robot.hear /popcorn/i, (msg) -> | |
msg.send "http://gnarld.com/wp-content/uploads/2011/07/Micheal-Jackson-Thriller-Popcorn-Animated.gif" |
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
~ % dig twentyfourhourpartypeople.com | |
; <<>> DiG 9.8.3-P1 <<>> twentyfourhourpartypeople.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32736 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 | |
;; QUESTION SECTION: | |
;twentyfourhourpartypeople.com. IN A |
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 | |
require 'rubygems' | |
require 'active_support' | |
if ARGV.empty? | |
puts "Usage: ./bin/crypt [password]" | |
exit | |
end | |
password = ARGV[0] |
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
stuff |
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
stuff |