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
{ | |
"title": "AquaSKK for Slack", | |
"rules": [ | |
{ | |
"description": "AquaSKK for Slack", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "j", |
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
function doGet(e) { | |
if (!e.parameters.token || !e.parameters.signal_ids) { | |
return ContentService.createTextOutput('Invalid paramerter'); | |
} | |
var token = e.parameters.token; | |
var signals = e.parameters.signal_ids.toString().split(','); | |
if (!token || !signals || signals.length < 1) { | |
return ContentService.createTextOutput('NG'); | |
} |
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 'rubygems' | |
require 'rack/reverse_proxy' | |
use Rack::ReverseProxy do | |
reverse_proxy '/callback', 'http://example.com/' | |
end | |
app = proc do |env| | |
[ 200, {'Content-Type' => 'text/plain'}, ["OK"] ] | |
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
require 'sinatra' | |
require 'httpclient' | |
CALLBACK_URI = URI.parse('http://example.com/callback') | |
configure do | |
set :httpclient, HTTPClient.new | |
end | |
post '/callback' do |
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/env ruby | |
require "open3" | |
base_url = ARGV.shift | |
hls_file = ARGV.shift | |
o, e, s = Open3.capture3 "curl #{base_url}#{hls_file}" | |
tslist = o.split("\n").delete_if{|i| 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
require 'sinatra' | |
get '/' do | |
message = params['q'] || '' | |
halt 401, {'WWW-Authenticate' => "Basic realm=\"#{message}\""}, message | |
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
http://ameblo.jp/misawasachika/entry-10400557550.html | |
http://ameblo.jp/misawasachika/entry-10399751722.html | |
http://ameblo.jp/misawasachika/entry-10398965264.html | |
http://ameblo.jp/misawasachika/entry-10397504096.html | |
http://ameblo.jp/misawasachika/entry-10397439339.html | |
http://ameblo.jp/misawasachika/entry-10397238321.html | |
http://ameblo.jp/misawasachika/entry-10396650037.html | |
http://ameblo.jp/misawasachika/entry-10395980698.html | |
http://ameblo.jp/misawasachika/entry-10395243282.html | |
http://ameblo.jp/misawasachika/entry-10394505470.html |
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== | |
// @include http://hackadoll.com/n/* | |
// ==/UserScript== | |
location.href = document.querySelector('.btn-readmore').href |
NewerOlder