- 古い linux 向けの証明書発行/自動更新ツール
- Let's Encrypt にも対応してる
- Amazon Linux 2 なら certbot のほうがいい
- けど古い Amazon Linux 1 ならこっちのがすんなり入れられる
- 設計コンセプトとしては cron で更新する感じらしい
marp: true theme: gaia size: 16:9 header: yyyy-mm-dd footer: by @johndo paginate: true lang: ja style: |
- { font-size: .9em; }
- linux, mac 向けの alternative asdf
- windows support は限定的なので注意
$ curl https://mise.run | shhttps://docs.github.com/ja/authentication/connecting-to-github-with-ssh/managing-deploy-keys
- 単一 repo の read only 権限だけをもたせた ssh key 登録ができるやつ
- github repo の settings から deploy keys の登録設定ができる
- ci の組み込みから、本番 ec2 に ssh で入って git で deploy するようなレガシー環境に
# ec2 内などで鍵作成https://kingsora.github.io/OverlayScrollbars/
https://github.com/KingSora/OverlayScrollbars
- 要素内 scroll において windows でも mac みたいな scrollbar 出すやつ
- perfect-scrollbar や simplebar-react からの乗り換え
- react 向け readme は https://github.com/KingSora/OverlayScrollbars/tree/master/packages/overlayscrollbars-react
https://sqids.org/javascript
https://github.com/sqids/sqids-javascript
数値の組み合わせから一意の識別子を生成し sns サービスの url みたいな運用するやつ。
$ npm i sqidshttps://react-hook-form.com/
https://github.com/react-hook-form/react-hook-form
- 2025.02 時点で、ほぼデファクトな react form library
- document 豊富で typescript built-in かつ zod resolver も公式提供されてる
- TanStack/form v1 出るまでこれ一択か
- react-icons は nextjs の dev build と相性悪い
- react-icons/react-icons#786
- どうも特定の icon set が tree shaking 対応してなくて build 遅くするぽい
- 最近の ui library 同様に必要な分だけ code コピペして導入するのがよさそう
- で icones で icon 検索 => react component としての書き出しが楽そうだった
- aws profile 切り替えどうしよう問題
- https://github.com/johnnyopao/awsp は更新されてない & crash するので ng
- alias x fzf で直接 $AWS_PROFILE 書き換えが一旦よさそう
# https://github.com/junegunn/fzf?tab=readme-ov-file#using-homebrew
$ brew install fzf# CREDENTIAL.pem 鍵で ec2-user ユーザで xxx ホスト (ec2) に ssh login して
# ~/path/to/src ファイルをローカルの ~/path/to/dist に落としてくる
$ scp -i "CREDENTIAL.pem" -r ec2-user@xxx.ap-northeast-1.compute.amazonaws.com:~/path/to/src ~/path/to/dist
# local の ~/path/to/src を ec2 の ~/path/to/dist へ
$ scp -i "CREDENTIAL.pem" -r ~/path/to/src ec2-user@xxxx.ap-northeast-1.compute.amazonaws.com:~/path/to/distNewerOlder