mi spiace :lki:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

Gente, da oggi ho fatto il salto di qualità; programmo solo a pagamento.
Fanno 35€ per un omploader.
J:
unita' 4/1981
comp: 7.99%

Citazione di: genno il 19 Marzo 2012, 12:43:02
Gente, da oggi ho fatto il salto di qualità; programmo solo a pagamento.
Fanno 35€ per un omploader.
:gna:

secondo me ha ragione, ma vabbè :asd:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

Citazione di: genno il 19 Marzo 2012, 12:43:02
Gente, da oggi ho fatto il salto di qualità; programmo solo a pagamento.
Fanno 35€ per un omploader.

:drd: :drd: :drd:



Omploaded with my ompload scriptozzo.

facciamo 30? :lkof:
J:
unita' 4/1981
comp: 7.99%

va integrato in smf :lki:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

Non vedo il problema :asd:
J:
unita' 4/1981
comp: 7.99%


#!/usr/bin/env ruby
#
# $Id: ompload 226 2007-10-31 03:07:43Z brenden $
#
# Copyright 2007 David Shakaryan <omp @gentoo.org>
# Copyright 2007 Brenden Matthews <brenden @rty.ca>
#
# Distributed under the terms of the GNU General Public License v3
#

require 'tempfile'

argv = Array.new

quiet = false
help = false
skip = false
filename = 'pasta'

$stdin.fcntl(4, File::NONBLOCK)
stdin = $stdin.read if !$stdin.eof
unless stdin.nil?
argv < < ''
end

ARGV.each_index do |i|
if skip
skip = false
next
end
if ARGV[i] =~ /-q|--queit/
quiet = true
elsif ARGV[i] =~ /-h|--help/
help = true
elsif ARGV[i] =~ /-f|--filename/
filename = ARGV[i + 1]
skip = true
else
argv << ARGV[i]
end
end

nocurl = false
curl = %x{curl --version 2> /dev/null}
if curl.empty?
nocurl = true
$stderr.puts 'Error: curl missing or not in path.  Cannot continue.'
$stderr.puts
end

if (ARGV.size < 1 and (stdin.nil? or stdin.empty?)) or help or nocurl
$stderr.puts 'Usage:  ompload [-h|--help] [options] [file(s)]'
$stderr.puts '  -q, --quiet     Only output errors and warnings'
$stderr.puts '  -f, --filename  Filename to use when posting data'
$stderr.puts '                  from stdin'
$stderr.puts
$stderr.puts '  You can supply a list of files or data via stdin (or both)'
$stderr.puts
$stderr.puts '  This script requires a copy of cURL in the path.'
Process.exit
end

errors = 0

wait = 15
old_poop = Time.now - wait
new_poop = Time.now

Url = 'http://omploader.org/'

used_stdin = false

argv.each do |arg|

if stdin.nil? and !used_stdin and !File.exists?(arg)
$stderr.puts "Invalid argument '#{arg}': file does not exist"
errors += 1
next
end

# no more than 1 every 15 seconds is common courtesy
turd = new_poop - old_poop
if turd < wait
puts 'Sleeping for ' + (wait - turd).to_s if !quiet
sleep(wait - turd)
end
old_poop = new_poop

tmp = Tempfile.new(filename)
if !stdin.nil? and !used_stdin
# upload from stdin
puts "Progress for '#{arg}'" if !quiet
if quiet
p = IO.popen("curl -s -F 'file1=@-;filename=\"#{filename}\"' #{Url}upload -o '#{tmp.path}'", "w+")
else
p = IO.popen("curl -# -F 'file1=@-;filename=\"#{filename}\"' #{Url}upload -o '#{tmp.path}'", "w+")
end
p.puts stdin
p.close_write
Process.wait
used_stdin = true
else
# upload file
puts "Progress for '#{arg}'" if !quiet
if quiet
%x{curl -s -F file1=@"#{arg}" #{Url}upload -o '#{tmp.path}'}
else
%x{curl -# -F file1=@"#{arg}" #{Url}upload -o '#{tmp.path}'}
end
end
if !File.size?(tmp.path)
$stderr.puts "Error omploading '#{arg}'"
errors += 1
new_poop = Time.now
next
end
output = IO.read(tmp.path)

# parse for an ID
if output =~ /View file: <a href="v([A-Za-z0-9+\/]+)">/
id = $1
puts "Omploaded '#{arg}' to #{Url}v#{id}" if !quiet
elsif output =~ /Slow down there, cowboy\./
wait += 5
argv << arg
$stderr.puts "Got throttled when trying to ompload '#{arg}'"
$stderr.puts "Increasing wait and attempting to continue..."
errors += 1
else
$stderr.puts "Error omploading '#{arg}'"
errors += 1
end

new_poop = Time.now
end

if !quiet
if errors < 1
puts "Success."
else
puts "Finished with #{errors} errors."
end


:lkof:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

E quello che cacchio è? :asd:
J:
unita' 4/1981
comp: 7.99%

il primo script a caso che ho trovato online che piglia uno screenshot e lo uppa su omploader :lkof:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

Se non fosse che non è js :P
J:
unita' 4/1981
comp: 7.99%

leggendo la parte in cui uppa si può capire come interfacciarsi col sito :lki:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."

Buona fortuna. :asd:
J:
unita' 4/1981
comp: 7.99%

Citazione di: sgnablo il 19 Marzo 2012, 14:20:44
il primo script a caso che ho trovato online che piglia uno screenshot e lo uppa su omploader :lkof:

Per @me è sbagliato: @troppe poche @ per essere @ruby :lki: :lki:

Citazione di: genno il 19 Marzo 2012, 14:28:03
Buona fortuna. :asd:

ovviamente sto scherzando, eh.. spero si sia capito :asd:
スニャブロ ufficiale del forum
pulsantoni pulsantosi per greasemonkey: http://bubs.altervista.org/index.php?topic=4.msg183#msg183
script greasemonkey anti-ads: http://bubs.altervista.org/index.php?topic=6.msg2581#msg2581

I miei vaneggi pseudodisegnosi: http://sgnafp.deviantart.com/

"Speed never killed anyone, suddenly becoming stationary, that's what gets you."