Skip to content

Instantly share code, notes, and snippets.

View yukirii's full-sized avatar
✈️

Yuki Kirii yukirii

✈️
View GitHub Profile
@jj1bdx
jj1bdx / hhkb-cleanup.md
Last active January 18, 2025 07:35
Cleaning up Happy Hacking Keyboards (in Japanese)

Happy Hacking Keyboard 各種掃除の仕方の例

HHKB Professional および HHKB Professional 2 の掃除

  • Model NO. PD-KB300, Part No. PA50951-0590, Rev. A1, 2003年10月製造
  • Model PD-KB400W, Part No. PA50951-1380, Rev. A0, 2010年8月製造
  • Model PD-KB400B, Part No. PA50951-1382, Rev. A0, 2010年11月製造
  • Model PD-KB400WS, Part No. PA50951-1384 (Type-S), 2017年3月購入

注意点: HHKB Liteに似ているが, スペースバーの中央にバネが入っているのが違う

@kitak
kitak / doc.md
Last active October 28, 2025 02:47
コマンドによる「負荷」の原因切り分け

コマンドによる「負荷」の原因切り分け

この文章では、Linuxコマンド、sar, top, psを使って、一般的に負荷といわれるものの原因を切り分けることを目的とする。

そもそも負荷とは

「複数のタスクによるサーバリソースの奪い合いの結果に生じる待ち時間」を一言で表した言葉。OSのチューニングとは負荷の原因を知り、それを取り除くことにほかならない。

ボトルネックの見極め作業の大まかな流れ

  • ロードアベレージ(処理を実行したくても、実行できなくて待たされているプロセス(CPUの実行権限が与えられるのを待っている、またはディスクI/Oが完了するのを待っている)の数)を見る
@edokeh
edokeh / index.js
Last active November 23, 2025 17:00
佛祖保佑,永无 BUG
//
// _oo0oo_
// o8888888o
// 88" . "88
// (| -_- |)
// 0\ = /0
// ___/`---'\___
// .' \\| |// '.
// / \\||| : |||// \
// / _||||| -:- |||||- \
@danharper
danharper / background.js
Last active August 29, 2025 17:45
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});

SWIM: スケーラブルな弱一貫性,伝染様式プロセスグループメンバーシッププロトコル[和訳]

update:2014-01-26
Version: 0.1

原題: SWIM: Scalable Weakly-consistent Infection-style Process Group Membership Protocol

@rkmathi
rkmathi / GB37301.md
Last active March 7, 2020 06:41
情報システム特別講義D #GB37301

情報システム特別講義D

  • 1時限目 イントロ - 川島先生(筑波大学)

  • 2時限目 Inside PostgreSQL Kernel - 永安 悟史さん(アップタイム・テクノロジーズ)

  • 3時限目 データストレージの諸々 - 星野 喬さん(サイボウズ・ラボ)

  • 4時限目 並列データベースシステムの概念と原理 - 油井 誠さん(産総研)

@voluntas
voluntas / erlang.rst
Last active September 5, 2025 05:27
実践 Erlang/OTP コトハジメ 2014.11

実践 Erlang/OTP コトハジメ 2014.11

更新:2014-11-20
バージョン:0.0.5
作者:@voluntas
URL:http://voluntas.github.io/

概要

@illoyd
illoyd / auth_spec_helpers.rb
Last active November 25, 2015 16:04
Digest auth helpers for Rails 4 and your test framework of choice (rspec shown here)
#
# This should go into spec/support/auth_spec_helpers.rb
module AuthSpecHelpers
##
# Convenience method for setting the Digest Authentication details.
# To use, pass the username and password.
# The method and target are used for the initial request to get the digest auth headers. These will be translated into 'get :index' for example.
# The final 'header' parameter sets the request's authentication headers.
def authenticate_with_http_digest(user, password, method = :get, target = :index, header = 'HTTP_AUTHORIZATION')
@tpdn
tpdn / Makefile
Last active April 20, 2018 08:59
情報システム実験:組み込みオペレーティングシステム 非公式マニュアル
optusb: optusb.c
gcc -I /opt/local/include/libusb-legacy -L /opt/local/lib/libusb-legacy -lusb-legacy -Wall -o optusb optusb.c
clean:
rm -rf optusb *.o
@sonots
sonots / fluentd_hacking_guide.md
Last active October 4, 2024 00:01
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ