Skip to content

Instantly share code, notes, and snippets.

View ginokent's full-sized avatar
🏠
Working from home

ginokent ginokent

🏠
Working from home
View GitHub Profile
@agentsim
agentsim / highsierra_bootable.sh
Created June 10, 2017 02:23
Create bootable ISO from HighSierra Installer
# Generate a BaseSystem.dmg with 10.13 Install Packages
hdiutil attach /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/InstallESD.dmg -noverify -mountpoint /Volumes/highsierra
hdiutil create -o /tmp/HighSierraBase.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/HighSierraBase.cdr.dmg -noverify -mountpoint /Volumes/install_build
asr restore -source /Applications/Install\ macOS\ 10.13\ Beta.app/Contents/SharedSupport/BaseSystem.dmg -target /Volumes/install_build -noprompt -noverify -erase
cp -R /Volumes/highsierra/Packages /Volumes/OS\ X\ Base\ System/System/Installation
hdiutil detach /Volumes/OS\ X\ Base\ System/
hdiutil detach /Volumes/highsierra/
mv /tmp/HighSierraBase.cdr.dmg /tmp/BaseSystem.dmg
@voluntas
voluntas / k6.rst
Created May 27, 2017 02:50
loadimpact/k6 で負荷試験コトハジメ

loadimpact/k6 で負荷試験コトハジメ

日時:2017-05-27
作:@voluntas
バージョン:0.0.0
url:https://medium.com/@voluntas

まずはざっくりと、調べたりてないのでちまちま増やしていきます。

@voluntas
voluntas / naze_erlang.rst
Last active June 15, 2025 07:38
なぜ Erlang/OTP を使い続けるのか
@voluntas
voluntas / dropbox_api_v2.rst
Last active December 14, 2021 06:38
Dropbox API v2 仕様まとめ
@ykst
ykst / lua-nginx-cheatsheet.md
Last active February 7, 2024 15:17
逆引きlua-nginx-module
@udzura
udzura / zatsucorp.md
Last active May 8, 2021 14:22
Consul/Serf/Terraform/Nomad/Vaultなどの雑なマッピング

ConsulとSerfの違い

  • SerfのメインディッシュはGossip protocol、つまりP2Pでクラスタを構成するにあたりグループメンバをいい感じに管理するところ
  • ConsulのメインディッシュはRAFT algorithm、つまりクラスタのメンバで情報を同期させる(同意アルゴリズム)ところ
  • しかしConsulの全機能を利用するため、内部でSerf(Gossip protocol)を利用している
  • つまり、クラスタを組むにあたり
    • Consulの機能が欲しければConsulを使えばいい
    • Serfの機能で十分ならSerfをもとに自作すればいい

となるのではないかと。

@sile
sile / ppg.md
Last active December 25, 2024 14:26
Plumtree/HyParView/ppgについて

これは何?

注意

  • 内容の質はメモ書きレベル
  • ほぼ思いつきで書いているので正しさの保証も無し
    • ここで紹介したアルゴリズムに興味を持った人は、オリジナルの論文を読むことを推奨
@azu
azu / js.md
Last active June 23, 2024 17:38
JavaScriptのレベル別書籍のまとめ

前提: 完成していて、比較的支持を集めていて、JavaScriptを中心にした書籍 (DOM APIよりは言語を中心とした内容)

追記: JavaScriptの入門書 #jsprimerを書いている

最初からES2015で学ぶことを前提にした初心者〜中級者向けのJavaScript本がなかったので書いてる。 ES2015でJavaScriptという言語のコア部分は大きく変わったので、それを前提とした内容にする予定。

@rayrutjes
rayrutjes / detectcontenttype.go
Created December 12, 2015 13:36
golang detect content type of a file
file, err := os.Open(path)
if err != nil {
return err
}
defer file.Close()
// Only the first 512 bytes are used to sniff the content type.
buffer := make([]byte, 512)
_, err = file.Read(buffer)
if err != nil {
@summerwind
summerwind / wireshark_and_http2_over_tls.md
Last active August 17, 2024 00:50
Wireshark で HTTP/2 over TLS の通信をダンプする方法

HTTP/2 over TLS の通信をダンプする方法

全体の流れ

  • 環境変数 SSLKEYLOGFILE に TLS の鍵をダンプするファイルを指定します
  • ブラウザを起動します
  • Wireshark や tshark に環境変数 SSLKEYLOGFILE に指定したファイルを設定します
  • ブラウザで HTTP/2 通信をおこないます
  • Wireshark や tshark で通信のダンプ内容を確認します