Skip to content

Instantly share code, notes, and snippets.

View ryanjones's full-sized avatar

Ryan Jones ryanjones

View GitHub Profile
@ryanjones
ryanjones / restntlm
Created August 19, 2011 23:35
Adding ntlm to request.rb (rest-client)
require 'tempfile'
require 'mime/types'
require 'cgi'
require 'ntlm/http'
module RestClient
# This class is used internally by RestClient to send the request, but you can also
# call it directly if you'd like to use a method not supported by the
# main API. For example:
#
@ryanjones
ryanjones / Monitore.rb
Created April 7, 2011 14:54
Convore + IRC + cinchrb
## Setting up the actual bot
require 'cinch'
require_relative 'monitore'
#create bot for IRC monitoring
bot = Cinch::Bot.new do
configure do |c|
c.server = "localhost"
c.channels = ["#cinch-bots"]