Skip to content

Instantly share code, notes, and snippets.

if
ps aux | grep "[g]nome-terminal" > /dev/null
then
xdotool windowactivate `xdotool search --onlyvisible --class gnome-terminal`
else
gnome-terminal &
fi
$ mocha
update README.md
update changelog.md
update package.json (bump version manually)
$ npm run build
$ static .
navigate to http://127.0.0.1:8080/test and verify all tests pass in the browser
$ git add -A && git commit -m "Prepare vx.x.x"
$ git tag vx.x.x
$ git push origin master --tags
@bugventure
bugventure / README
Created April 10, 2019 12:20
Remap Windows an Alt buttons for Windows on Mac
Reference: https://superuser.com/questions/1190329/can-i-switch-the-alt-and-ctrl-keys-on-my-keyboard
Other useful key codes
```
1d 00 Left Ctrl
1d e0 Right Ctrl
38 00 Left Alt
38 e0 Right Alt
5b e0 Left Windows Key
5c e0 Right Windows Key
@bugventure
bugventure / ScanCode Map.reg
Last active June 25, 2019 12:14
Reorder Win and L Alt keys Windows
; Reference: https://superuser.com/questions/1190329/can-i-switch-the-alt-and-ctrl-keys-on-my-keyboard
; Reference: https://www.experts-exchange.com/articles/2155/Keyboard-Remapping-CAPSLOCK-to-Ctrl-and-Beyond.html
; Location: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
; Description: Remaps Left Windows (5b,e0) and Left Alt (38,00) keys
; Note: When using as a .reg file, remove top comment lines
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,5b,e0,38,00,38,00,5b,e0,00,00,00,00