Skip to content

Instantly share code, notes, and snippets.

View koron's full-sized avatar
🐱
meow

MURAOKA Taro koron

🐱
meow
View GitHub Profile
@koron
koron / vsock-application.md
Last active September 14, 2022 05:45
vsockの使われ方調査

Vsock applications

見つかった事例

  • WSL2
    • Call Windows host process from WSL2
    • X11 (X410) server on Host
  • Android
    • gRPC-vsock: 車載システムでは仮想化するらしく、そのVM間通信に
@koron
koron / 0result.md
Last active September 13, 2022 02:46
deferが不要な時に使わないことによるメリットをベンチマーク
$ go test -bench=.
goos: windows
goarch: amd64
pkg: gist.github.com/koron/bennchdefer
cpu: Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
BenchmarkWithDefer-16           361817953                3.300 ns/op
BenchmarkWithoutDefer-16        1000000000               0.8443 ns/op
PASS
ok gist.github.com/koron/bennchdefer 2.650s
@koron
koron / picotool-msys2.md
Last active August 27, 2022 02:07
Compile picotool with MSYS2/MINGW64

まだ動作チェックしてないので暫定

picotool info -a でBOOTSELモードで繋いだpicoからデータを取れたので、動くことは確認。 RP2 Boolデバイスにlibusb-win32ドライバーをインストールする必要があった。

参照: https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf

$ cmake -B build -DCMAKE_DEPENDS_USE_COMPILER=OFF -DLIBUSB_INCLUDE_DIR=/mingw64/include/libusb-1.0
@koron
koron / 0-compare-memory-usage.md
Last active August 15, 2022 03:56
Compare memory usage between Dragonfly and Redis

Compare memory usage between Dragonfly and Redis

  • redis:7.0.4-alpine3.16

    $ docker run --rm -it -p 6379:6379 --name mem-redis redis:7.0.4-alpine3.16
  • dragonfly

@koron
koron / pacman-Qe_home.txt
Last active April 12, 2022 13:32
`pacman -Qe | sort` の結果
asciidoc 9.1.1-1
autoconf2.13 2.13-5
autoconf-wrapper 15-1
autogen 5.18.16-3
automake1.10 1.10.3-4
automake1.11 1.11.6-6
automake1.12 1.12.6-6
automake1.13 1.13.4-7
automake1.14 1.14.1-6
automake1.15 1.15.1-4
@koron
koron / Keyball61 assembly work breakdown part1.md
Last active January 17, 2022 06:30
Keyball61の組み立て時間内訳

作業動画: https://www.youtube.com/watch?v=Pl1CHu48bZU

Start Desc
00:01:00 準備
00:03:00 トッププレート切り離し
00:09:00 トッププレート削り(スイッチ安定化)
00:23:00 清掃
00:25:00 トッププレート淵、白塗り
00:37:00 LED切り出し
@koron
koron / memsizebench.go
Created August 25, 2021 09:30
Redis memory size benchmark
package main
import (
"bufio"
"context"
"crypto/rand"
"errors"
"fmt"
"io"
"log"
@koron
koron / OPTIMA615_v0.9.8_build_impression.md
Last active May 15, 2021 03:28
OPTIMA615 v0.9.8 を組み立てた感想

OPTIMA615 v0.9.8 を組み立てた(ている)感想

2021-05-15 AM時点

進捗:

  • ダイオード(1N4148W)設置済
  • LED、PCBに3つだけ設置済
  • OLED、リセットスイッチ設置済
  • ボトムプレートのとの接続、L型3ピンソケットに換装して設置済
@koron
koron / Changes of profiles of Windows Terminal.md
Last active November 13, 2020 01:59
Windows Terminal の設定ファイルの差分

schema.json とか defaults.json がなんなのかは説明しない。
JSON Schema はソラで読めることが前提。
今後の更新にキャッチアップするかは不明。

1.4.2652.0-preview → 1.5.3142.0-preview

1.5 プレビュー版の変更です。

デフォルトブランチ名の変更

set background=light
highlight clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "monochromenote"
" Normal group at first
highlight Normal ctermfg=DarkGrey ctermbg=LightGrey guifg=grey25 guibg=grey70