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
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:14px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script> |
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
module.exports = (robot) -> | |
robot.brain.data.tell_messages ?= {} | |
localstorage = robot.brain.data.tell_messages | |
robot.respond /tell ([\w.-]*) (.*)/i, (msg) -> | |
datetime = new Date() | |
tellmessage = msg.match[1] + ": " + msg.message.user.name + " @ " + datetime.toTimeString() + " said: " + msg.match[2] + "\r\n" | |
if localstorage[msg.match[1]] == undefined | |
localstorage[msg.match[1]] = tellmessage | |
else | |
localstorage[msg.match[1]] += tellmessage |
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
sudo yum update | |
# RDEVEL, IRB, RDOC, RUBYGEMS | |
sudo yum install ruby-devel ruby-irb ruby-rdoc rubygems | |
# FACTER | |
cd ~/ | |
mkdir src | |
cd src | |
wget http://puppetlabs.com/downloads/facter/facter-latest.tgz |
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
# RDEVEL, IRB, RDOC, RUBYGEMS | |
sudo yum install ruby-devel ruby-irb ruby-rdoc rubygems | |
# FACTER | |
wget http://puppetlabs.com/downloads/facter/facter-latest.tgz | |
tar -xf facter-latest.tgz | |
cd facter-* | |
sudo ruby install.rb | |
# PUPPET |