Skip to content

Instantly share code, notes, and snippets.

@shunirr
shunirr / aquaskk_slack.json
Created Jun 18, 2020
Avoid hooks C-j at Slack app with KarabinerElementes complex_modifications
View aquaskk_slack.json
{
"title": "AquaSKK for Slack",
"rules": [
{
"description": "AquaSKK for Slack",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "j",
View nature_remo_gas.js
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 Jun 6, 2021
女子中学生チケット詐欺事件
View config.ru
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 Apr 8, 2016
LINE Bot API Proxy
View app.rb
require 'sinatra'
require 'httpclient'
CALLBACK_URI = URI.parse('http://example.com/callback')
configure do
set :httpclient, HTTPClient.new
end
post '/callback' do
View hls_capture.rb
#!/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 =~ /^#/ }
View ruby
require 'sinatra'
get '/' do
message = params['q'] || ''
halt 401, {'WWW-Authenticate' => "Basic realm=\"#{message}\""}, message
end
View misawa-sachika-entry-list
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
View gist:3bdcf52d7a16a899b907

最近買った腕時計の話

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

LG G Watch 買いました

Android Wear について

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