require 'bundler'
Bundler.setup
require 'active_record'
require 'activerecord-import'
ActiveRecord::Base.establish_connection("mysql2://root@127.0.0.1/arbug")
ActiveRecord::Base.logger = Logger.new(STDOUT)
# create table posts (id int not null AUTO_INCREMENT, test_at datetime, primary key (id));
This file contains hidden or 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== | |
| // @name Auto uncensor Images | |
| // @namespace http://ssig33.com/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://pawoo.net/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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== | |
| // @name fuck google sec. | |
| // @namespace http://ssig33.com | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author ssig33 | |
| // @match https://www.google.co.jp/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or 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
| .tooltipped[aria-label*="review approval"] { | |
| background-color:green !important; | |
| color: white !important; | |
| padding-left: 5px; | |
| padding-right: 5px; | |
| padding-top: 3px; | |
| padding-bottom: 3px; | |
| border-radius: 5px; | |
| } |
This file contains hidden or 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== | |
| // @name Thai | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @include * | |
| // ==/UserScript== | |
| (function(){ |
This file contains hidden or 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
| f = (i)=>{ | |
| var q = '#contentTabList_'+String(i)+'_myx > div > div > div > div > div.myx-fixed-left-grid-col.myx-col-left > div > div.myx-column.myx-span7.myx-span-last > div > a > span > button > span' | |
| document.querySelector(q).click(); | |
| setTimeout(()=>{ | |
| document.querySelector('#contentAction_download_myx > div > div > div > div > div > div > span').click() | |
| setTimeout(()=>{ | |
| document.querySelector('#dialogButton_ok_myx > span > button > span').click() | |
| },1000); | |
| }, 1000); | |
| } |
This file contains hidden or 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
| file = open(ARGV[0]) | |
| require 'tempfile' | |
| require 'fileutils' | |
| ary = [] | |
| file.each_line do |line| | |
| text = '' | |
| line.split(' ').each do |word| |
This file contains hidden or 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 'bundler' | |
| Bundler.require | |
| API_KEY = "" | |
| CF_API_KEY = '' | |
| exit unless Time.now.hour == 3 or Time.now.hour == 15 | |
| heroku = PlatformAPI.connect_oauth(API_KEY) | |
| cf = CloudFlare::connection(CF_API_KEY, 'mail@ssig33.com') |
This file contains hidden or 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/env ruby | |
| ary = `sudo docker ps -a -q`.split("\n") | |
| ary.each_with_index{|x,i| | |
| system "sudo docker rm #{x}" | |
| puts "#{i+1} / #{ary.count}" | |
| } | |
| ary = `sudo docker images | awk '/^<none>/ { print $3 }'`.split("\n") | |
| ary.each_with_index{|x,i| | |
| system "sudo docker rmi #{x}" |
This file contains hidden or 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 'thin' | |
| require 'sinatra' | |
| require 'open-uri' | |
| configure do | |
| set :server, :thin | |
| end | |
| get '/' do | |
| 'index' |