Skip to content

Instantly share code, notes, and snippets.

View sorah's full-sized avatar

Sorah Fukumori sorah

View GitHub Profile
// ==UserScript==
// @name cfp.rk.o Accepted speaker
// @namespace http://tampermonkey.net/
// @version 2026-02-02
// @description mark accepted speakers
// @author sorah.jp
// @match https://cfp.rubykaigi.org/events/*/proposals
// @icon https://www.google.com/s2/favicons?sz=64&domain=rubykaigi.org
// @grant none
// ==/UserScript==
// ==UserScript==
// @name correct aws what's new article page <title>
// @description correct
// @namespace http://tampermonkey.net/
// @version 2025-08-07
// @author sorah.jp
// @match https://aws.amazon.com/about-aws/whats-new/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant none
// ==/UserScript==
@sorah
sorah / a.md
Last active December 12, 2025 13:28
reinvent25-rainfocus-calendar-more-data.user.js

user script for re:Invent 2025 event portal to improve its calendar by:

  • show code, type and venue on the calendar directly
  • highlight sessions where isn't a breakout session and you have no reserved seat

Confirmed working with Tampermonkey.

before

#cloud-config
bootcmd:
- |
/bin/bash <<-'EOS'
#!/bin/bash
exec > >(tee /root/log.txt)
exec 2>&1
set -x
set -e
if [ -e /new ]; then
@sorah
sorah / a.js
Created September 9, 2012 07:30
listen to any events on socket.io / node EventEmitter; public domain own your risk
var SocketIO = require('socket.io')
, HTTP = require('http');
var orig_emit = SocketIO.Socket.prototype.$emit // http://nodejs.org/api/events.html#events_emitter_emit_event_arg1_arg2
SocketIO.Socket.prototype.$emit = function() {
orig_emit.apply(this, arguments)
var args = Array.prototype.slice.call(arguments);
var event = args.shift();
orig_emit.apply(this, ['anything', event, args]);
};
@sorah
sorah / a.sh
Created October 17, 2014 05:20
Homebrew relink if necessary
#!/bin/bash
for keg in /usr/local/Library/LinkedKegs/*; do
kegname="$(basename $keg)"
dir="$(find $keg/ -maxdepth 1 -type d | grep '\/\(sbin\|bin\|etc\|var\|lib\|include\|libexec\|share\)$' | head -n1)"
[ -z "${dir}" ] && continue
testee="$(find $dir -type f | head -n1 | sed -e "s|${keg}||")"
[ -f /usr/local/$testee ] || (echo $keg && brew unlink $kegname; brew link --force $kegname)
done
@sorah
sorah / winfont.css
Last active September 1, 2022 05:35
stylus windows japanese font
@font-face {
font-family: "メイリオ";
src: local("NotoSansCJKjp-Regular");
}
@font-face {
font-family: "Meiryo";
src: local("NotoSansCJKjp-Regular"), local("SourceHanSans-Regular");
}
@font-face {
font-family: "游ゴシック";
@sorah
sorah / a.rb
Last active August 19, 2022 04:23
n=1
a=["", ""]
$_.chomp.chars {|c| n.abs == 1 && (n*=c.to_i+1) || (s=n<=>0) && a[1<=>s] << c && (n-=s) && n!=s || (n*=-1) && n>0 && (p(a[1].to_f/a[0].to_f); a=["",""])}
# https://pbs.twimg.com/media/BvujU0bCIAMxa1O.jpg
/* ==UserStyle==
@name new.chunithm-net.com - 2/11/2022, 3:18:30 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://new.chunithm-net.com/chuni-mobile/html/mobile/record/netBattlelogDetail") {
/* Insert code here... */

ISUCON10 本選当日マニュアル

課題アプリケーション XSUCON について

20XX 年、人類はオーガナイザー X41 氏の主催するパフォーマンスチューニングコンテスト「XSUCON」に夢中になっていた。しかし開催直前となったある日、最新版の XSUCON ポータルサイトにはパフォーマンスに問題があることが発覚。このままでは多くの人にとって不満の残る大会になってしまうだろう。あなたは XSUCON 運営チームの一人としてパフォーマンスを改善しつつ、また大会を大いに盛り上げ、選手およびオーディエンスを満足させなければならない。

課題アプリケーション仕様

課題アプリケーション XSUCON の仕様については、XSUCON アプリケーションマニュアルを参照してください。