This file contains hidden or 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
| log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h |
This file contains hidden or 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
| # 10.10.4-Current | |
| sudo killall -HUP mDNSResponder | |
| # 10.10.0-10.10.3 | |
| sudo discoveryutil mdnsflushcache | |
| # 10.7-10.9 | |
| sudo killall -HUP mDNSResponder | |
| # 10.5-10.6 |
This file contains hidden or 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
| # Run in Terminal, no restart required. | |
| sudo sysctl debug.lowpri_throttle_enabled=0 | |
| # Reverted at restart. |
This file contains hidden or 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) Choose Power on to Firmware from the Virtual Machine menu | |
| 2) then Enter Setup | |
| 3) Boot from a file | |
| 4) Arrow down to Recovery HD | |
| 5) Hit enter until you can pick boot.efi | |
| 6) select boot.efi | |
| 7) hit enter |
This file contains hidden or 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
| profiles -C -o stdout-xml | grep -A 1 ProfileIdentifier |
This file contains hidden or 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
| echo "Enter new name:" | |
| read newmacname | |
| sudo scutil --set ComputerName "$newmacname" | |
| sudo scutil --set HostName "$newmacname" | |
| sudo scutil --set LocalHostName "$newmacname" |
This file contains hidden or 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
| Get-MailboxFolderStatistics bryanh -FolderScope Inbox | Select-Object Name, ItemsInFolderAndSubfolders |
This file contains hidden or 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
| /usr/sbin/softwareupdate --reset-ignored | |
| /bin/rm -rf /Library/Preferences/com.apple.SoftwareUpdate.plist | |
| /usr/bin/killall cfprefsd |
This file contains hidden or 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 | |
| myIP=`curl -L -s --max-time 10 http://checkip.dyndns.org | egrep -o -m 1 '([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}'` | |
| myLocationInfo=`curl -L -s --max-time 10 http://freegeoip.net/xml/$myIP` | |
| myCountryCode=`echo $myLocationInfo|egrep -o '<CountryCode>.*</CountryCode>'| sed -e 's/^.*<CountryCode/<CountryCode/' | cut -f2 -d'>'| cut -f1 -d'<'` | |
| myCity=`echo $myLocationInfo|egrep -o '<City>.*</City>'| sed -e 's/^.*<City/<City/' | cut -f2 -d'>'| cut -f1 -d'<'` | |
| myRegionName=`echo $myLocationInfo|egrep -o '<RegionName>.*</RegionName>'| sed -e 's/^.*<RegionName/<RegionName/' | cut -f2 -d'>'| cut -f1 -d'<'` | |
| echo "<result>$myCity, $myRegionName - $myCountryCode</result>" |
This file contains hidden or 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/bash | |
| # run elevated (with sudo) | |
| rm -f /.metadata_never_index | |
| mdutil -i off / | |
| rm -rf /.Spotlight* | |
| mdutil -i on / | |
| mdutil -E / | |
| exit 0 |