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, '[email protected]') |
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' |
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 Author Name | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author You | |
// @match https://webcatalog-free.circle.ms/Circle/List* | |
// @grant none | |
// ==/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
// Generated by CoffeeScript 1.4.0 | |
var down, list, main, one; | |
list = localStorage.downlist; | |
if (!list) { | |
list = []; | |
} else { | |
list = JSON.parse(list); | |
} |
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 My Fancy New Userscript | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description enter something useful | |
// @author You | |
// @match https://www.amazon.co.jp/mn/dcw/myx.html* | |
// @grant none | |
// ==/UserScript== | |
// Generated by CoffeeScript 1.4.0 |
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
diff --git app/controllers/api/feed_controller.rb app/controllers/api/feed_controller.rb | |
index f6e3b3e..092eb60 100644 | |
--- app/controllers/api/feed_controller.rb | |
+++ app/controllers/api/feed_controller.rb | |
@@ -48,7 +48,7 @@ class Api::FeedController < ApplicationController | |
rate: 0, | |
public: @member.default_public, | |
} | |
- if params[:folder_id] | |
+ if params[:folder_id] and params[:folder_id].to_i != 0 |