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 'ffi' | |
module TEA | |
extend FFI::Library | |
ffi_lib 'tea' | |
attach_function :tea_encode, :TEAencode, [:pointer, :uint, :pointer, :pointer, :pointer], :int | |
attach_function :tea_decode, :TEAdecode, [:pointer, :uint, :pointer, :pointer, :pointer], :int | |
def self.encode(data, key) | |
insize = data.bytesize |
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 'net/http' | |
require 'optparse' | |
print "\033[2J\033[;H" | |
$options = {} | |
$parser = OptionParser.new do |opts| | |
opts.banner = "Usage: example.rb [options] 000001" | |
opts.on("-c", "--[no-]color", "Print color") do |v| | |
$options[:color] = v |
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
// ==UserScript== | |
// @id 9adb84aba536@scriptish | |
// @name BaiDuYun_Multi_Offline | |
// @version 2014.6.27.1 | |
// @namespace 9adb84aba536@scriptish | |
// @include http://pan.baidu.com/disk/* | |
// @include http://yun.baidu.com/disk/* | |
// @grant GM_addStyle | |
// @grant GM_xmlhttpRequest | |
// @grant GM_log |
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
javascript:for(i=0; i< 190; i++) {if(Math.random() > 0.818) {$('.required')[i].checked=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
javascript:for(i=0; i< 190; i++) {if(Math.random() > 0.818) {$('.required')[i].checked=true;}} |