Skip to content

Instantly share code, notes, and snippets.

<video autoplay loop muted playsinline></video>

AutoHotkey.ahk

;-----------------------------------------
; Mac keyboard to Windows Key Mappings
;=========================================

; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT

Get total size of current directory

Excluding sub-directories

$ du -sh .

Including sub-directories

$ du -shc *

Get total number of files in current directory

Excluding sub-directories

$ ls -1 | wc -l

Including sub-directories

$ find . -type f -print | wc -l

@cypar
cypar / htaccess-spa-boilerplate.md
Last active April 15, 2021 05:54
SPA .htaccess rewriting logic
# Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

# Prevent directory listings
Options All -Indexes
git fetch --all && git reset --hard origin/master

Add spacer tiles on macOS Dock

Regular tile:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock

Small tile:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'; killall Dock