Skip to content

Instantly share code, notes, and snippets.

View gildo's full-sized avatar
😖

Ermenegildo Fiorito gildo

😖
View GitHub Profile
Section "DRI"
Group 0
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
require'rubygems';require'mechanize';a=Mechanize.new;p=a.get('http://tiny.cc/mv2mu');
f=p.form_with(:action=>'http://daiphyer.com/index.php?/mvdlg/megavideo.com-to-megaupload.com-download-link-generator')
f.url=ARGV[0];p=a.submit(f);puts p.links_with(:href => /www.megaupload.com/)
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.35-zen3 "Roger Roger"
# Tue Oct 5 09:01:45 2010
#
CONFIG_64BIT=y
# CONFIG_X86_32 is not set
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
require'mechanize';require'rss/2.0';a=Mechanize.new;p=a.get('http://italiansubs.net/')
f=p.form_with(:name=>'login');f.username=ARGV[0];f.passwd=ARGV[1]
p=a.submit(f);p=a.click p.link_with(:text=>"MY ITASA")
p=p.link_with(:href=>/favsub/).click;r=RSS::Parser.parse(p.body,false)
r.items.each_with_index{|l|puts"#{l.title} #{l.link}"}
@gildo
gildo / cus.rb
Created November 24, 2010 13:12
lol
require'open-uri';puts "gimme url";u=gets.chomp;if u[0..6] != "http://" ;
u="http://"+u;end;c=open(u);s=c.size;puts"Size: #{s}";while c.size == s;
puts "Size Now: #{c.size}";sleep(30);c=open(u);end;puts "YEAHHHH #{c.size}"
system('vlc /home/gildo/lol.mp4')
@gildo
gildo / rubo.rb
Created December 7, 2010 11:54
Stupid megaupload downloader
require'mechanize';require'open-uri'
a=Mechanize.new.get(ARGV[0]).link_with(:href=>/files/).href
b=a.split("/")[-1]
puts "Downloading #{b}"
system "wget '#{a}'"
require 'net/http'
puts Net::HTTP.get_response(URI.parse("http://wa.la/shorten.php?longurl=#{ARGV[0]}")).body
#!/usr/bin/ruby
abort("Enter a valid dir in ARGV")if ARGV[0].nil?
Dir["#{ARGV[0]}/*"].each{|d|Dir.chdir(d);puts"\npulling #{Dir.pwd.split("/").last}"
system("git pull");Dir.chdir("../")}
@gildo
gildo / jony.rb
Created December 15, 2010 13:22
Joins files by regex matching
# v0.1 - initial import
#
# Description:
#
# Joins all files matched into one single file
#
# Usage:
#
# ruby jony.rb 2x21
#