Skip to content

Instantly share code, notes, and snippets.

View buzztaiki's full-sized avatar

Taiki Sugawara buzztaiki

View GitHub Profile
@buzztaiki
buzztaiki / grafana-table-dashboard.json
Created December 5, 2025 11:27
grafana-table-dashboard.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@buzztaiki
buzztaiki / systemd_boot_use_ext4.md
Created November 14, 2025 11:22
systemd-boot で esp と分離した /boot を ext4 にする

systemd-boot で esp と分離した /boot を ext4 にする

要約

efifs を入れて、ext2_x64.efi/efi/EFI/systemd/drivers/ に置くと ext4 の /boot を systemd-boot が読めるようになる

解決したい問題

systemd-boot では /boot で利用するパーティションのタイプを Extended Boot Loader (XBOOTLDR) Partition にする事で esp (EFI system pratiion) と /boot を分ける事ができる。

この場合、以下のような構成になる

  • /efi: esp。systemd-boot の UEFIアプリと loader.conf が置かれる。

https://remap-keys.app/configure を linux で動かす

ぐぐって出てきた情報通りにやっても今いちうまく動かなかったのでめも。

結論としては /etc/udev/rules.d/70-hid.rules に以下の内容を書けば良い:

KERNEL=="hidraw*", ATTRS{idVendor}=="3265", ATTRS{idProduct}=="0011", MODE="0660", TAG+="uaccess"
@buzztaiki
buzztaiki / typeprof_lsp_0_30_x_or_later.md
Created October 27, 2025 07:50
typeprof 0.30.x 以降で typeprof-lsp を動かす

typeprof 0.30.x 以降で typeprof-lsp を動かす

emacs-lsp/lsp-mode#4893 で動かないんだけどって言われて調べてた。

0.30 で色々変わったぽくて、lsp についても以下のように変わった

@buzztaiki
buzztaiki / okusuri-techo-app-memo.md
Last active October 24, 2025 00:49
お薬手帳アプリのメモ
@buzztaiki
buzztaiki / xemacs_in_2025.md
Last active October 23, 2025 02:12
2025年のXEmacs
@buzztaiki
buzztaiki / emacs_syntax_table_cheat_sheet.md
Last active August 26, 2025 04:24
Emacs lisp syntax table cheat sheet

Emacs lisp syntax table cheat sheet

Syntax character Syntax class
or - Whitespace characters
w Word constituents
_ Symbol constituents
. Punctuation characters
@buzztaiki
buzztaiki / cant_pass_closure_to_treesit_query.md
Created August 25, 2025 07:21
treesit query の pred に closure は渡せない

treesit query の pred に closure は渡せない

それはそう。

(let* ((pred (lambda (captured) (eq (treesit-node-start captured) (treesit-node-start node))))
       (query `(((element
                  (start_tag
                   (tag_name) @tag_name
 (attribute
@buzztaiki
buzztaiki / configure_lsp_bridge.md
Created August 22, 2025 14:18
lsp-bridge を使う

lsp-bridge を使う

とりあえず設定してみただけ。独自食強すぎてちょっないなって思った。補完もインターフェースとかも全部独自。すごい。

すごいなって思ったら、https://github.com/emacs-eaf/emacs-application-framework の人でなんか納得した。

(use-package lsp-bridge
  :quelpa (lsp-bridge :fetcher github :repo "manateelazycat/lsp-bridge"
 :files (:defaults "*.py" "python-lsp-bridge" "acm/*" "core" "langserver" "multiserver" "resources"))
@buzztaiki
buzztaiki / parse_xml_with_no_prefix_ns_in_linux_cli.md
Last active August 16, 2025 01:52
prefix 無しの namespace が付いた xml を cli でパースする

prefix 無しの namespace が付いた xml を cli でパースする

以下のファイルを例とする

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0">
  <version>0.0.1</version>
</project>