Skip to content

Instantly share code, notes, and snippets.

View hnakamur's full-sized avatar

Hiroaki Nakamura hnakamur

View GitHub Profile
@voluntas
voluntas / zig_quic.md
Last active January 15, 2024 11:34
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

こちらの応募は終了しました、冬も募集予定です。

成果

@gfx
gfx / Dockerfile
Created May 17, 2022 02:05
Enabling HTTP/3 in cURL with quiche + boringSSL
# curl with http2 and http3 support
# https://curl.se/docs/http3.html
RUN wget --https-only --no-verbose -O - https://sh.rustup.rs | sh -s -- \
-y \
--profile minimal \
--default-toolchain 1.59.0 \
&& git clone --recursive --branch 0.12.0 --depth 1 https://github.com/cloudflare/quiche \
&& (cd quiche \
&& $HOME/.cargo/bin/cargo build --package quiche --release --features ffi,pkg-config-meta,qlog \
&& mkdir quiche/deps/boringssl/src/lib \

レガシーと戦う開発組織の作り方

レガシー業界・システムに奮闘!プロダクト改善事例LT【開発PM勉強会vol.9】 - connpass https://peer-quest.connpass.com/event/239171/

自己紹介

  • 株式会社PR TIMES執行役員CTO 金子達哉
  • @catatsuyというアカウントで各種SNS登録しています
  • ピクシブ・メルカリを経て2021/04にPR TIMESに入社しました
@bagder
bagder / h3-server-howto.md
Last active March 10, 2024 21:13
Setup an HTTP/3 test server

Setup a local HTTP/3 test server

... to toy with and run curl against it.

This is not advice on how to run anything in production. This is for development and experimenting.

Preqreqs

An existing local HTTP/1.1 server that hosts files. Preferably also a few huge ones.

/*
* NAME: injectaddr.so
*
* SYSOPSIS:
* % gcc -shared -fPIC injectaddr.c -ldl -o injectaddr.so
*
* -- inject 1s delay, then connect to 127.0.0.1:8888
* % LD_PRELOAD=injectaddr.so \
* curl http://d1000.p8888.4127-0-0-1.inject.example.com/
*
@gfx
gfx / 001-wifi-routers-v2.md
Last active January 28, 2024 23:55
Wi-Fiルーターおすすめ by 妻

概要

  • ネットーワーク機器のマーケ担当をしてる妻から聞いた、Wi-Fiルータのオススメ(「同僚のメーカー担当ごとに己の”最強”を選んでもらった」とのこと)です
  • 「ルーターにはWi-Fiルータだけじゃなく他にもいろいろあるんだよ!これはWi-Fiルータのことね」と言われたのでタイトルを変えました
  • 「AXほにゃらら」は規格(AX = Wi-Fi 6)+速度の参考値とのことです
  • もともとの文脈: 家庭内の雑談をツイートしたところ( https://twitter.com/__gfx__/status/1464084908091920387 )知人が反応したので妻に「ルータのおすすめ教えてと知人がいってるのでなんか教えて」といって教えてもらったのが元です
  • 下にあるv1.md が最初のやつ(2021/11/26)で、このv2.md がホッテントリ入りしたあとの改訂版(2021/11/27)です

追記(2022/05/24):

  • TP-Linkはちょいちょいやらかしがあります
@marler8997
marler8997 / selectexample.zig
Last active July 27, 2022 14:26
How to select in Zig
const std = @import("std");
// NOTE: it's lucky that StaticBitSet has the right memory layout
// it may not in the future or on some platforms
const FdSet = std.StaticBitSet(1024);
comptime {
// make sure our FdSet is right
std.debug.assert(@sizeOf(FdSet) == 1024 / 8);
}
pub fn pselect6(
@yamamoto-febc
yamamoto-febc / example.tf
Created September 28, 2021 04:13
Terraformからさくらのクラウドの「IPアドレス設定スクリプト」を利用する例
terraform {
required_providers {
sakuracloud = {
source = "sacloud/sakuracloud"
version = "2.12.0"
}
}
}
# IPアドレス設定用 パブリックスタートアップスクリプト
@yamamoto-febc
yamamoto-febc / create.sh
Created July 21, 2021 00:38
とりあえずサーバが欲しい時にUsacloudで作る時のテンプレートなど
#!/bin/bash
usacloud server create --parameters parameter.json --name "name" password "password"