This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
- Check which git you're running:
which git
; Autohotkey Capslock Remapping Script | |
; Danik | |
; More info at http://danikgames.com/blog/?p=714 | |
; danikgames.com | |
; | |
; Functionality: | |
; - Deactivates capslock for normal (accidental) use. | |
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
; - Access the following functions when pressing Capslock: | |
; Cursor keys - J, K, L, I |
This is helpful if you've previously installed git from source on OSX, and other compilers can't find the correct path. You need to remove the current version of git, then re-install with brew.
which git
@ = WINKEY | |
+ = SHIFT | |
^ = CTRL | |
% = ALT | |
{ADD} = VK_ADD | |
{APPS} = VK_APPS | |
{AT} = @ | |
{BACKSPACE} = VK_BACK | |
{BKSP} = VK_BACK |
1. Edit ~/.bash_profile and add the following line to show full path before the $ prompt. | |
For example, as user@hostname:path/to/directory$ | |
# show path before the $ prompt | |
export PS1='\u@\H:\w$ ' | |
2. Save file and restart terminal or run source command | |
$ source ~/.bash_profile |
; Autohotkey Capslock Remapping Script | |
; - Deactivates capslock for normal (accidental) use. | |
; - Hold Capslock and drag anywhere in a window to move it (not just the title bar). | |
; - Access the following functions when pressing Capslock: | |
;Cursor keys - h, j, k, l | |
;Home,End - N, ; | |
;Page up,down - - = | |
;Esc - CapsLock only | |
;CapsLock - Space |
http://apassant.net/2012/01/16/timeout-for-html5-localstorage/ | |
var hours = 24; // Reset when storage is more than 24hours | |
var now = new Date().getTime(); | |
var setupTime = localStorage.getItem('setupTime'); | |
if (setupTime == null) { | |
localStorage.setItem('setupTime', now) | |
} else { | |
if(now-setupTime > hours*60*60*1000) { | |
localStorage.clear() |
Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat
Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.
Using Laravel Valet for localhost development, So it installs
dnsmasq
with it. dnsmasq runs on port53
, The default DNS port. So we setup dnscrypt-proxy on port5300
with the default config files in this gist.
brew install dnscrypt-proxy
const envConfig = { | |
development: { | |
SITE_URL: 'http://localhost:3000', | |
API_URL: 'http://localhost:3000/api' | |
}, | |
testing: { | |
SITE_URL: 'https://test.site.com', | |
API_URL: 'https://api.test.site.com' | |
}, | |
production: { |