CodeMist

Emacs Tips

Categories: dev
Tags: ssh tips macOS
Org Mode 🔗Todo List 🔗up/down order: M-shift up/down convert text to TODO: move cursor to the begin of text, using M-RET new task at tasks end: C-RET select region: C-. (C-SPC)

SSH Tips

Categories: dev
Tags: ssh tips macOS

Some useful tips of SSH.

Hugo Tips

Categories: note

a fast static site generator.

PostgreSQL Logical Replication with Docker and Elixir

Categories: dev

Start PostgreSQL Logical Replication and wal2json plug-in in Docker, and read the changes with Elixir Postgrex.

Missing Steps of Heroku

Docker 🔗根据 Dockerfile 构建镜像: docker build . -t <your_image_name> heroku container:push <your_image_name> heroku container:release <your_image_name> heroku open Got Error: Expected response to be successful, got 422 Name is invalid HEROKU_DEBUG=1 heroku container:release <your_organization>/<your_image_name>:<your_image_tag> https://stackoverflow.com/questions/57846015/heroku-name-is-invalid-when-deploy-docker-image-how-to-debug heroku open Real-time tail heroku logs --tail https://stackoverflow.com/questions/41804507/h14-error-in-heroku-no-web-processes-running 原因:没有启动 dyno Heroku 最小计算单元 如果使用 Procfile 可以

管理多个 SSH Key

SSH Key 最大的优势是免输入复杂的密码,一定程度避免中间人攻击。 多站点管理可以通过 SSH Config 解决。 多站点多账户可以用类似方法。 https://gist.github.com/jexchan/2351996 弊端,需要修改 remote url 更简单