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/ruby | |
#http://premium-leechers.blogspot.com | |
require "cgi" | |
require "clipboard" | |
if ARGV.size != 3 then | |
STDERR.puts "premium-leechers.blogspot.com" | |
STDERR.puts "1fichier premium downloader script." | |
STDERR.puts "Usage: ruby 1f <email> <password> <txt file with links|1fichier link|'clipboard'>" | |
exit |
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/ruby | |
require "pty" | |
require "pry" | |
puts "usage: dad in.txt [password]" | |
passwd=ARGV[1] | |
STDOUT.sync=true |
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/ruby | |
require 'watir-webdriver' | |
require "pry" | |
require "uri" | |
require "time" | |
Log_file="/home/walaki/util/keresztenytars.log" | |
Napnal_regebben=180 | |
n=ARGV[0].to_i |
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/ruby | |
now_a=Time.now | |
require "cgi" | |
require "set" | |
require "json" | |
Code={"AD"=>"Andorra", "AE"=>"Egyesült Arab Emirátusok", "AF"=>"Afganisztán", | |
"AG"=>"Antigua és Barbuda", "AI"=>"Anguilla", "AL"=>"Albánia", "AM"=>"Örményország", |
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/ruby | |
require "optparse" | |
require "time" | |
require "tmpdir" | |
abr=96 | |
size=495 |
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/ruby | |
require "json" | |
require "cgi" | |
require "yaml" | |
class String_succ | |
attr_accessor :abc,:value_hash,:symbol_hash | |
def initialize(digits) |
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/ruby | |
require "yaml" | |
require "cgi" | |
#require "pry" | |
require_relative "weighted" | |
cgi=CGI.new(:accept_charset => "UTF-8") | |
puts "Content-Type: text/plain; charset=\"UTF-8\"" |
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/ruby | |
now_a=Time.now | |
require "cgi" | |
require "set" | |
require "json" | |
Code={"AD"=>"Andorra", "AE"=>"Egyesült Arab Emirátusok", "AF"=>"Afganisztán", |
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 "matrix" | |
require "benchmark" | |
def mprint(m) | |
#pretty-print matrices | |
puts m.map{|z| z.map{|q| q.round(4).to_s.rjust(7," ")}.join(", ")}.join("\n") | |
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
#!/usr/bin/ruby | |
ttf=ARGV[0] | |
cp=ARGV[1].rjust(4,"0") | |
cp1="00"+cp[0..1] | |
cp2=cp[2..3] | |
s=%x{fc-query "#{ttf}"} | |
charset=s.scan(/charset: \n\t(.*?)\n[^\t]/m).flatten[0].split("\n\t") | |
row=charset.find{|r| r=~/^#{cp1}: /} |
OlderNewer