-
Notifications
You must be signed in to change notification settings - Fork 0
OSX
alex [dot] kramer [at] g_m_a_i_l [dot] com edited this page Jan 18, 2020
·
23 revisions
xcrun simctl delete unavailable
brew update
brew cleanup -s
brew doctor
brew upgrade [package]
If you get the following:
Error: Cask 'jce-unlimited-strength-policy' is unreadable: undefined method `undent' for #<String:0x00007ff4c81c6988>
Then edit the offending cask file. Ex:
vim /usr/local/Caskroom/jce-unlimited-strength-policy/.metadata/1.8/20170711201737.462/Casks/jce-unlimited-strength-policy.rb
- caveats <<-EOS.undent
+ caveats <<~EOS
dns-sd -B _ssh._tcp
sudo mdutil -E /
pmset displaysleepnow
Dump:
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'
Clear:
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'
Find:
find /private/var/folders/ -name "com.apple.notificationcenter" 2>/dev/null
# Ex: /private/var/folders/6g/qhhc6s2d5rq673rm5hlk9mqw0000gn/0/com.apple.notificationcenter
Clear:
tables="delivered displayed record requests snoozed"
for table in $tables; do
sqlite3 /private/var/folders/.../com.apple.notificationcenter/db2/db "delete from $table"
done