Skip to content

Instantly share code, notes, and snippets.

require 'rubygems'
require 'blather/client'
require 'awesome_print'
require 'nokogiri'
require 'pretty-xml'
require 'nokogiri-pretty'
include PrettyXML
# This is a Blather bot that receives file transfers that are sent using
# XEP 0096, using either p2p SOCKS5 (XEP 0065), or through the server
#!/usr/bin/env ruby
# encoding: utf-8
require "rubygems"
require "amqp"
require "cinch"
class RailsMonitor
def initialize(bot)
@bot = bot
@AgoristRadio
AgoristRadio / gist_helper.rb
Last active December 15, 2015 05:39 — forked from ninetwentyfour/gist_helper.rb
Create GitHub Gist With Ruby #github #ruby
# http://www.travisberry.com/2011/05/create-github-gist-with-ruby/
require 'net/http'
require 'uri'
require 'json'
def get_gist(fileName,content)
res = Net::HTTP.post_form(URI.parse('http://gist.github.com/api/v1/json/new'),
{ 'files[#{fileName}]' => content,
'login' => 'USER NAME HERE',
'token' => 'API TOKEN HERE',
@AgoristRadio
AgoristRadio / bitdump.sh
Created February 19, 2012 02:31 — forked from altamic/bitdump.sh
dumps Bitcoin network traffic
#!/usr/bin/env sh
# bitdump.sh
#
# captures Bitcoin network traffic
SELF=`basename $0`
if [[ $1 = "" ]]; then
DEFAULT="en1"
@AgoristRadio
AgoristRadio / update.rb
Created February 19, 2012 02:22 — forked from comboy/update.rb
update all your namecoin domains
require 'json'
# put this file in the same dir as namecoind executable
JSON.load(`./namecoind name_list`).each do |domain|
if domain['expires_in'] < 5000
command = "./namecoind name_update '#{domain['name']}' '#{domain['value']}'"
puts command
puts `#{command}`
end
@AgoristRadio
AgoristRadio / gist:1861665
Created February 19, 2012 02:22
namecoin feeds config
<?php
// Namecoin Feeds
// setup array...
// https://gist.github.com/1086120
$i = 0;
$feeds = array();
$i++
$feed[$i]['name'] = 'Bitparking Exchange: Ticker';
.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');