Skip to content

Instantly share code, notes, and snippets.

@shunirr
shunirr / aquaskk_slack.json
Created June 18, 2020 02:25
Avoid hooks C-j at Slack app with KarabinerElementes complex_modifications
{
"title": "AquaSKK for Slack",
"rules": [
{
"description": "AquaSKK for Slack",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "j",
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');
}
@shunirr
shunirr / criminal_jc.md
Last active September 23, 2024 07:46
女子中学生チケット詐欺事件

criminal_jc

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
@shunirr
shunirr / app.rb
Created April 8, 2016 03:30
LINE Bot API Proxy
require 'sinatra'
require 'httpclient'
CALLBACK_URI = URI.parse('http://example.com/callback')
configure do
set :httpclient, HTTPClient.new
end
post '/callback' do
#!/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 =~ /^#/ }
require 'sinatra'
get '/' do
message = params['q'] || ''
halt 401, {'WWW-Authenticate' => "Basic realm=\"#{message}\""}, message
end
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

最近買った腕時計の話

いつも使っている glide.so というサービスが滅びたので、このままやります。

LG G Watch 買いました

Android Wear について

// ==UserScript==
// @include http://hackadoll.com/n/*
// ==/UserScript==
location.href = document.querySelector('.btn-readmore').href