MacOS (zsh)
Reset Quicklook cache
qlmanage -r cache \
killall Dockkillall finderEdit zshrc
nano ~/.zshrc/sbin/fsck_hfs -fy /dev/disk2Homebrew
Install Wine
brew tap homebrew/cask-versionsUseful shit from an old job
sysctl -n machdep.cpu.brand_stringgets cpu name string with clock speed
echo $(exprsysctl -n hw.memsize/ $((1024**3)))gets memory size in GB
df -Hdisk sizes - reference the largest one
/Volumes/Install\\ macOS\\ Big\\ Sur/Install\\ macOS\\ Big\\ Sur.app/Contents/MacOS/InstallAssistantruns installer from disk
use tabs after writing a couple letters of each folder to autofill
pwpolicy -u <shortusername> -setpolicy "newPasswordRequired=1"
Last updated