Skip to content

Instantly share code, notes, and snippets.

View alesso-x's full-sized avatar
🎯
Focusing

Alesso alesso-x

🎯
Focusing
View GitHub Profile
@alesso-x
alesso-x / mac_tiling.sh
Created September 9, 2025 22:18
Mac Tiling Keyboard Shortcuts
# 'Window->Fill' '^~↩'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Fill' '~^\\U21a9'
# 'Window->Move & Resize->Left' '^~←'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Left' '~^\\U2190'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Right' '~^\\U2192'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Top' '~^\\U2191'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Bottom' '~^\\U2193'
defaults write -g NSUserKeyEquivalents -dict-add '\033Window\033Move & Resize\033Top Left' '~^u'
@alesso-x
alesso-x / Jenkinsfile.groovy
Created January 16, 2018 00:14 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'No quotes in single backticks'
sh 'echo $BUILD_NUMBER'
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"'
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"'
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"'
echo 'Using three backslashes still results in preserving the single quotes'