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
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 |
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 | |
# encoding: utf-8 | |
require "rubygems" | |
require "amqp" | |
require "cinch" | |
class RailsMonitor | |
def initialize(bot) | |
@bot = bot |
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
# 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', |
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 sh | |
# bitdump.sh | |
# | |
# captures Bitcoin network traffic | |
SELF=`basename $0` | |
if [[ $1 = "" ]]; then | |
DEFAULT="en1" |
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
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 |
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
<?php | |
// Namecoin Feeds | |
// setup array... | |
// https://gist.github.com/1086120 | |
$i = 0; | |
$feeds = array(); | |
$i++ | |
$feed[$i]['name'] = 'Bitparking Exchange: Ticker'; |
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
.mouse, #preview{ | |
position: absolute; | |
background-repeat: no-repeat; | |
height: 22px; | |
min-width: 15px; | |
z-index: 100; | |
} | |
.mouse{ | |
background-image: url('../images/cursor.png'); |