@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

2020-12-01から1ヶ月間の記事一覧

macでビルド後にSafariのタブをリロードする

yarn buildやnpm run buildの後にブラウザをリロードしたかったので、AppleScriptで解決した yarn build && osascript -e 'tell application "Safari"' -e 'set docUrl to URL of document 1' -e 'set URL of document 1 to docUrl' -e 'end tell' 参考 stac…

Dockerコンテナ(Let's Encryptのcertbot)を定期的に再起動する

tl;dr entrypointにwhile sleepを仕込めばよかった entrypoint: /bin/sh -c "trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;"

Vue 2から3になって気づいたこと

ちょっと書き始めて気づいた変更点を少しまとめる。

Vue 3で再帰的にコンポーネントを利用するメモ

tl;dr defineAsyncComponentで遅延させるといいみたい import { defineAsyncComponent } from 'vue' import Foo from './path/to/Foo.vue' export default { components: { Foo: defineAsyncComponent(() => Promise.resolve(Foo)) } }

AmazonLinux2にnkfを入れる

tl;dr amazon-linux-extrasでepelを有効にしてepel-releaseを入れたらyumで入れられた。