Skip to content

Instantly share code, notes, and snippets.

View haoyangnz's full-sized avatar

Haoyang Feng haoyangnz

  • Human Capital
  • Auckland, New Zealand
  • X @haoyangnz
View GitHub Profile
@haoyangnz
haoyangnz / md
Created December 13, 2018 00:38
Map Caps Lock to Escape when tapped and Control when held on Mac
`brew cask install karabiner-elements`
Edit `~/.config/karabiner/karabiner.json`
```
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
@haoyangnz
haoyangnz / gist:7445515fcee93a2a1bb9f619e35559d4
Created December 11, 2018 07:39
Describe table (To export to a json for local db creation)
aws dynamodb describe-table --table-name <table_name>
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@haoyangnz
haoyangnz / fullscreen.md
Last active March 23, 2016 02:29
Fullscreen current application in Ubuntu 14.04

wmctrl -r ":ACTIVE:" -b toggle,fullscreen This can be bound to a shortcut via keyboard shortcut.