Skip to content

Instantly share code, notes, and snippets.

View buzztaiki's full-sized avatar

Taiki Sugawara buzztaiki

View GitHub Profile
@buzztaiki
buzztaiki / who_is_github_actions_bot_user.md
Last active May 17, 2024 18:22
41898282+github-actions[bot]@users.noreply.github.com の正体

41898282+github-actions[bot]@users.noreply.github.com の正体

GHA で commit させたときのユーザーでよく見るあれ。/user/<id> API で確認すると

% gh api /user/41898282 | jq
{
  "login": "github-actions[bot]",
  "id": 41898282,
  "node_id": "MDM6Qm90NDE4OTgyODI=",
@buzztaiki
buzztaiki / manipulate_azure_devops_token_by_api.md
Last active April 25, 2024 00:53
Azure DevOps の PAT を API で一覧したり更新したり
@buzztaiki
buzztaiki / README.md
Last active February 12, 2024 22:49
GitHub の README をそのまま静的 HTML にするあれこれ

GitHub の README をそのまま静的 HTML にするあれこれ

リポジトリに README.md とか *.md* とか置いて読めるようにしてるやつを、そのまま静的HTMLにしてみてみるあれこれ。

一番お手軽。Jekyll のプラグインセットといった感じ。gh-pages で公開するなら自分で生成する必要もない。ただ、オワコンになりつつある気もする。

そのままだと details の中に markdown が書けないので、jekyll-commonmark-ghpages を使うようにしておく。

@buzztaiki
buzztaiki / findout_variable_updater_in_emacs.md
Created February 11, 2024 10:26
Emacsで誰が変数を変更したか調べる

Emacsで誰が変数を変更したか調べる

色々パッケージ入れてると、なぜか変数がよく分からない値になってる事がたまにある。そんな時は debug-on-variable-changeadd-variable-watcher を使うと調べる事ができる。

Info から引用:

https://ayatakesi.github.io/lispref/29.2/elisp-ja.html#Variable-Debugging

Command: debug-on-variable-change variable

この関数はvariableの変更時に常にデバッガが呼び出されるようにアレンジする。

@buzztaiki
buzztaiki / README.md
Last active February 6, 2024 01:15
msgraph-sdk-go で Entra (Azure AD) のユーザを一覧する
@buzztaiki
buzztaiki / how_to_solve_analysis_gclog_in_gcviwer.md
Created January 18, 2024 15:53
GCViwerでG1GCのログが解析できない場合

GCViwerでG1GCのログが解析できない場合

おそらく、明示的に decorator を指定してる場合に、必要な装飾が足りてない。

https://github.com/chewiebug/GCViewer から引用

some support for OpenJDK 9 / 10 unified logging format -Xlog:gc:, the following configurations will work

  • -Xlog:gc:file="path-to-file" (uses defaults)
  • -Xlog:gc=info:file="path-to-file":tags,uptime,level (minimum configuration needed)
  • -Xlog:gc*=trace:file="path-to-file":tags,time,uptime,level (maximum configuration supported, additional tags ok, but ignored; additional decorations will break parsing)
@buzztaiki
buzztaiki / gclog_analysis_tool.md
Last active January 19, 2024 04:12
GCログを解析するツール 2024
@buzztaiki
buzztaiki / roughly_access_azure_api.md
Last active November 22, 2023 11:26
Azure API 雑に叩く
@buzztaiki
buzztaiki / git_prune_local_branch.md
Last active October 12, 2023 02:09
Git で remote が無くなった local branch を削除する

Git で remote が無くなった local branch を削除する

こんな感じ

git branch --format='%(refname:lstrip=2)%00%(upstream:track)' | awk -F'\0' '$2=="[gone]"{print $1}' | xargs -r git branch -D

alias にしておくと便利

#Requires AutoHotkey v2.0
;; manual https://www.autohotkey.com/docs/v2/
;; keylist: https://www.autohotkey.com/docs/v2/KeyList.htm
;; window management: https://www.autohotkey.com/docs/v2/howto/ManageWindows.htm
;; prefixes
;; # Win, ! Alt, ^ Ctrl, + Shift
;; & combination
;; <, > left, right modifier