Skip to content

Instantly share code, notes, and snippets.

View civ2boss's full-sized avatar
⌨️
Codin' some code

Robin Ting civ2boss

⌨️
Codin' some code
View GitHub Profile
@civ2boss
civ2boss / gist:b9a89b3dbd527ceddc221dd1be1d8ca5
Created April 30, 2018 16:22 — forked from wrburgess/gist:5528649
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production

@civ2boss
civ2boss / smart-caps-lock.md
Created March 19, 2024 14:18 — forked from tanyuan/smart-caps-lock.md
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.