- file://~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Enable roaming | |
sudo defaults write /Library/Preferences/com.apple.airport.opproam enabled -bool true | |
# (Optional) Un-disable roaming | |
#sudo defaults write /Library/Preferences/com.apple.airport.opproam disabled -bool false | |
# 2. Prefer networks with stronger signals | |
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport en0 prefs JoinMode=Strongest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
printf 'All these apps contain Chromium or its frameworks:\n' | |
find -E /Applications/*.app -type d -iregex ".*(electron|chrom).*(framework|app)$" | cut -d/ -f3 | sort | uniq | |
printf "\n\nOh dear, that's a lot of Chromes...\nYou really hate your RAM, don't you?\n\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
CMD_NAME=$1 | |
ORIGINAL_MAN='/usr/bin/man' | |
# If first arg is a section number alread, open `man` right away | |
if [[ $CMD_NAME -gt 0 && $CMD_NAME -lt 10 ]]; then | |
$ORIGINAL_MAN $@ | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
############################################################# | |
# Requires the xcodeproj tool: # | |
# https://github.com/CocoaPods/Xcodeproj # | |
# # | |
# Note: # | |
# As this only shows a representation of the project and # | |
# not the project file directly, this is only suitable # | |
# for diffs, not for merges. # |