by shigemk2

当面は技術的なことしか書かない

Linux

pkill

pkill 名前でプロセス一括キルができるけど、pgrepで確認をすること 自分のPCでゴニョゴニョするのに限定しないといけない こんなコマンド気軽に本番サーバーで打たないように atmarkit.itmedia.co.jp

Alpine repositories

概要 A repository is a storage location with a collection of Alpine Linux packages. In addition to the three official repositories, technically, any directory with a collection of *.apk files with a special index file, named APKINDEX.tar.g…

pre-commit sample-config

めっちゃ基本的なpre-commit設定をただ出力するだけ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.2.0 hooks: - id…

genact

それっぽい偽のログを流すアレ -m で流す偽ログのタイプを指定できる $ genact -l Available modules: ansible bootlog botnet bruteforce cargo cc composer cryptomining docker_build docker_image_rm download julia kernel_compile memdump mkinitcpio …

ffmpegで適当なmp4ファイルを作る

アップデートにちょうどいいサンプル動画を探すのめんどくさい ffmpeg -f lavfi -i color=black:1280x720:rate=30:duration=5 -c:v libx264 -pix_fmt yuv420p black.mp4 ffmpeg \ -f lavfi -i color=white:1280x720:rate=30:duration=1 \ -f lavfi -i color=…

k6 VU

Virtual Userのこと k6 runs multiple iterations in parallel with virtual users (VUs). In general terms, more virtual users means more simulated traffic. VUs are essentially parallel while(true) loops. Scripts are written in JavaScript, as E…

cpの-Rと-r

cpの-Rと-rは一緒 xtech.nikkei.com

chown -h

シンボリックリンクが指すファイルではなく、 シンボリックリンクの所有者とグループを変更 なお-hと-Hは違う www.ibm.com

ripgrep -v

grepの-vが使えるかと思ったらガイドにはない github.com

ripgrep no-line-number

行数を消すオプション -N, --no-line-number Suppress line numbers. Line numbers are off by default when stdout is not connected to a tty. Line numbers can be forcefully turned on by -n/--line-number. github.com

jq floor

四捨五入。他にも色々関数がある jqlang.github.io

curl 8.7.0 8.7.1

I first released 8.7.0, but immediately someone pointed out that one of the files in the tarballs was broken, so I fixed the issue, created a new set of tarballs, bumped the version and uploaded the new set. The new release is 8.7.1 but of…

fzf 0.47.0

デフォルトのfindコマンドを内蔵ディレクトリウォーカーに置き換え。パフォーマンス向上とプラットフォーム間での挙動統一を目指す。 $FZF_DEFAULT_OPTS_FILE追加により、デフォルトオプションをファイルで管理可能。 バグ修正と改善。 github.com

zoxide fish

Rust製のcd改良系コマンド github.com 会社のテックトークで fzf と zoxside 使うといいよという話をしたけど、シェルのコマンドの履歴検索とかディレクトリ移動の履歴検索を活用する... みたいな考え方そのものが重要であり...昔はこれ読もう、で良かったん…

delta gitconfig

gitconfig [core] pager = delta [interactive] diffFilter = delta --color-only [delta] navigate = true # use n and N to move between diff sections light = false # set to true if you're in a terminal w/ a light background color (e.g. the defa…

curl 8.3.0

変更: curl: -w内で書き込むファイルを指定するための%output{}を導入 gskit: 削除 lib: ローカルバインディングサポートなしでcurlをビルドするための--disable-bindlocalを導入 nss: このTLSライブラリのサポートを削除 tool: "variable"サポートを追加 tr…

ripgrepのファイルタイプ指定

That is, -t means "include files of this type" where as -T means "exclude files of this type." github.com

yq split into multiple files

-s で ---で区切られているYAMLを複数ファイルに分割する。 こういうやつ a: test_doc1 --- a: test_doc2 mikefarah.gitbook.io

ghq 1.4.1

Add spell check workflow by @hezhizhen in #356 Fix samePath by @hezhizhen in #357 fix test on windows by @Songmu in #358 update deps by @Songmu in #360 Fixed a problem with SSH URLs, etc. by @Songmu in #361 go-version-file: go.mod by @Song…

ghq 1.4.0

Use t.Cleanup to remove temporally directories and set environment variables by @itchyny in #343 Support branch/tag via @ syntax by @NathanBaulch in #347 introduce tagpr by @Songmu in #353 github.com

sops EDITOR

sops単体で、sopsで暗号化したファイルをエディタ編集できるのだが、EDITOR変数でどのエディタを使うか設定できる デフォルトはvim github.com

direnv stdlib

direnvがいい感じにシェル関数を用意している(watch_fileとか) github.com

direnv config

direnvでもいろんな設定がある github.com

curl 7.87.0

curl: add --url-query CURLOPT_QUICK_EXIT: don't wait for DNS thread on exit lib: add CURL_WRITEFUNC_ERROR to signal write callback error openssl: reduce CA certificate bundle reparsing by caching version: add a feature names array to curl_…

fzf 0.35.1

主にbugfix Fixed a bug where fzf with --tiebreak=chunk crashes on inverse match query Fixed a bug where clicking above fzf would paste escape sequences github.com

fzf 0.35.0

border-label preview-label github.com

csvq 1.17.11

Prevent divide-by-zero error while loading csv files. (GitHub #89) Handle panics during processor executions. github.com

curl 7.86.0

github.com

jq --args

--args: Remaining arguments are positional string arguments. These are available to the jq program as $ARGS.positional[] それはそうと、DDGでjqでググると高確率でjQueryが検索結果として出てくるので -jquery とかするとjqがヒットしやすい stedola…

csvq logical function

COALESCEとかIFとか基本的なやつは揃ってる。 mithrandie.github.io