I hereby claim:
- I am wktk on github.
- I am wktk (https://keybase.io/wktk) on keybase.
- I have a public key ASCktG49I7wTj2RY1YYdPTHgcdJeDLnTXRbU4Cu6l7zp6go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name Humanity Solver | |
| // @version 1 | |
| // @grant none | |
| // @include http://human.hatelabo.jp/quiz?* | |
| // @include https://human.hatelabo.jp/quiz?* | |
| // ==/UserScript== | |
| // 下記URLを参考に過不足分を補正したもの | |
| // https://web.archive.org/web/20210104141218/https://anond.hatelabo.jp/20210104230501 |
| #include "Keyboard.h" | |
| void setup() { | |
| Keyboard.begin(); | |
| delay(2000); | |
| Keyboard.print("pi\n"); | |
| delay(2000); | |
| Keyboard.print("raspberry\n"); | |
| delay(2000); | |
| Keyboard.print("sudo reboot now\n"); |
| # brew install coreutils | |
| function listtls() { | |
| timeout 3 openssl s_client -connect "$1:443" -servername "$1" -tls1 < /dev/null > /dev/null 2>&1 && echo -n 1 || echo -n 0 | |
| timeout 3 openssl s_client -connect "$1:443" -servername "$1" -tls1_1 < /dev/null > /dev/null 2>&1 && echo -n 1 || echo -n 0 | |
| timeout 3 openssl s_client -connect "$1:443" -servername "$1" -tls1_2 < /dev/null > /dev/null 2>&1 && echo -n 1 || echo -n 0 | |
| # timeout 3 openssl s_client -connect example.com:443 -tls1_3 < /dev/null > /dev/null 2>&1 && echo -n 1 || echo -n 0 | |
| echo ", $1" | |
| } |
| package main | |
| import ( | |
| "bufio" | |
| "log" | |
| "net" | |
| "strings" | |
| ) | |
| func main() { |
| const crypto = require('crypto'); | |
| const verifySlackSignature = (event) => { | |
| const rawString = `v0:${event.headers['X-Slack-Request-Timestamp']}:${event.body}`; | |
| const hmac = crypto.createHmac('sha256', process.env['SLACK_SIGNING_SECRET']); | |
| return `v0=${hmac.update(rawString).digest('hex')}` === event.headers['X-Slack-Signature']; | |
| }; |
| const axios = require('axios'); | |
| exports.handler = async (event) => { | |
| const response = await axios.get(process.env.ENDPOINT_URL, { params: event.queryStringParameters }); | |
| return { statusCode: 200, headers: { "access-control-allow-origin": "*" }, body: JSON.stringify(response.data) }; | |
| }; |
| require 'rack' | |
| voices = `say -v ?`.each_line.map { |l| l.gsub(/ #.*/, '').split(/\s{2,}/) }.to_h | |
| html = DATA.read.sub( | |
| '{VOICES}', | |
| voices.map { |k, v| "<option value='#{k}'>#{k} (#{v})</option>" }.join | |
| ) | |
| app = -> (env) do | |
| params = URI.decode_www_form(env['rack.input'].read).to_h |
| #!/usr/bin/env ruby | |
| # A sneaky wrapper around Rubocop that allows you to run it only against | |
| # the recent changes, as opposed to the whole project. It lets you | |
| # enforce the style guide for new/modified code only, as opposed to | |
| # having to restyle everything or adding cops incrementally. It relies | |
| # on git to figure out which files to check. | |
| # | |
| # Here are some options you can pass in addition to the ones in rubocop: | |
| # |
| // ==UserScript== | |
| // @name Shinsei Bank Helper | |
| // @description Disables Security-keyboard for use with password managers | |
| // @namespace https://gist.github.com/wktk/f70a90ecfd8b73a734b8153271cec2bf | |
| // @match https://*.shinseibank.com/FLEXCUBEAt/LiveConnect.dll* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| (() => { |