なにもわからない

気分で技術系の雑記を書きます

2019-11-21から1日間の記事一覧

macOSX 向け dotfiles を Github Actions でテストする

macOS 環境が無料で CI が回せる時代になりましたね。16インチ MacBook Pro を買ったこともあって GitHub Actions で macOS 向け dotfiles をテスト&見直ししてみました。 案の定動かない処理もあったりして、やはりテストを定常的に回すのは効くなと思い知…

Selenium IDE は for each したりできるよ

ウェブブラウザのオートメーションツール Selenium には、Google Chrome / Mozilla Firefox のプラグインとして動く、最近開発が活発な Selenium IDE というものがあります。 その Selenium IDE には conditional logic and looping を実現する Control Flow…

jq で特定条件にマッチする要素を置換する

こういった JSON の .name == "Michel" の .attributes だけを置換して全体を出力したい。 /tmp $ cat test.json { "elements": [ { "name": "John", "attributes": { "private": true, "last_login": "2019-11-01 00:00:00" } }, { "name": "Michel", "attr…