Skip to content

Instantly share code, notes, and snippets.

View sei0o's full-sized avatar

Seio Inoue sei0o

  • The University of Tokyo (eeic2023)
  • Tokyo, Japan (UTC+9)
  • 19:44 (UTC +09:00)
View GitHub Profile
@sei0o
sei0o / p.md
Created July 30, 2015 14:05
プログラミングで苦労するところ

プログラミングで苦労するところ

  • Ruby: lake(湖)をrakeと書き間違える
  • OOP: インスタンラーメン
@sei0o
sei0o / puma.rb
Last active December 22, 2015 10:19
supervisorとpumaとnginx(SSL)のconfig
root = Dir.getwd.to_s
bind "unix://#{root}/tmp/puma/socket"
pidfile "#{root}/tmp/puma/pid"
state_path "#{root}/tmp/puma/state"
rackup "#{root}/config.ru"
threads 4, 8
activate_control_app
@sei0o
sei0o / index.html
Last active February 4, 2017 04:39 — forked from anonymous/index.html
チュウニズムのネームプレートを生成する(手抜き) source http://jsbin.com/tulugi/19
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Chunithm Nameplate</title>
<style id="jsbin-css">
body {
font-family: 'Helvetica Neue', 'メイリオ', sans-serif;
}
@sei0o
sei0o / scrapdown.js
Created December 14, 2017 05:14
Scrapbox to Markdown
(function() {
let result = ``
result += `# ${document.querySelector('.lines .line-title').innerText}\n`
let insideCode = false
let afterBlankLine = false
document.querySelectorAll('.lines .line:not(:first-child) .text > span:last-child').forEach((el, idx) => {
let ht = el.innerHTML
.replace(/<span class="c-(\d+)( empty-char-index)?"( style="")?>(.)<\/span>/g, '$4') // normal text
@sei0o
sei0o / registers_dump.txt
Created January 5, 2018 05:31
34C3 CTF vim (rev easy)
6, 0, 「@」, f2"ayl^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H
{}
6, 51, 「2」, "ayl^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H
{}
6, 51, 「2」, ^f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H
{"a"=>"2"}
6, 0, 「@」, f0"cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H
{"a"=>"2"}
6, 3, 「0」, "cyl"Ayl^fh"Ayl^fj"Ayl^fG"gyl^fk"GylG$FY"Gy3l$F@"hylFh"Hyl260GY@"F10H
{"a"=>"2"}
@sei0o
sei0o / installation.md
Last active March 9, 2018 23:44
kirakira PBR
$ nasm kirakira_pbr.asm
$ sudo dd if=kirakira_pbr of=/dev/to/your/mbr/usb/partition bs=512 count=1

Use a USB memory which uses MBR (not UEFI).
dd rewrites your USB's PBR (boot loader); don't forget to save backup and play at your own risk!

@sei0o
sei0o / index.js
Created May 6, 2018 00:30
Kokkai Speed Battle
const puppeteer = require('puppeteer')
const URLs = [
'http://abehiroshi.la.coocan.jp/',
'https://www.jcp.or.jp/',
'https://www.komei.or.jp/',
'https://cdp-japan.jp/',
'https://kibounotou.jp/',
'https://o-ishin.jp/',
'http://www.liberalparty.jp/',
'http://www5.sdp.or.jp/',
@sei0o
sei0o / hhkb.json
Created December 27, 2018 09:30
Assigns Right Alt of HHKB to toggle the input mode (eisuu/kana). Karabiner required. Put the file below in ~/.config/karabiner/assets/complex_modifications .
{
"title": "HHKB sei0o settings",
"rules": [
{
"description": "Set Right Alt key to toggle the input mode",
"manipulators": [
{
"type": "basic",
"description": "hogehoge",
"from": { "key_code": "right_alt" },

Keybase proof

I hereby claim:

  • I am sei0o on github.
  • I am sei0o (https://keybase.io/sei0o) on keybase.
  • I have a public key ASA-7Q-FW0ixdvr9Bh0gzHRYolSr68npeggU5H6fNRVOGgo

To claim this, I am signing this object:

sei0o@sei0oarch ~/D/sekigae> cat after_zenki_chukan_2.csv
9, 37, 17, 39, 24, 18
15, 28, 11, 33, 13, 27
0, 26, 31, 16, 40, 3
22, 14, 6, 1, 41, 34
38, 32, 8, 2, 19, 23
30, 29, 10, 35, 20, 21
7, 42, 36, 4, 25, 12
5
sei0o@sei0oarch ~/D/sekigae> sha256sum after_zenki_chukan_2.csv