Skip to content

Instantly share code, notes, and snippets.

Avatar

Haoyang Feng haoyangnz

  • Human Capital
  • Auckland, New Zealand
  • Twitter @haoyangnz
View GitHub Profile
@haoyangnz
haoyangnz / md
Created Dec 13, 2018
Map Caps Lock to Escape when tapped and Control when held on Mac
View md
`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 Dec 11, 2018
Describe table (To export to a json for local db creation)
View gist:7445515fcee93a2a1bb9f619e35559d4
aws dynamodb describe-table --table-name <table_name>
View .hyper.js
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 Mar 23, 2016
Fullscreen current application in Ubuntu 14.04
View fullscreen.md

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