ref.VDBX.io
  • Welcome
  • Terminal (sh)
    • MacOS (zsh)
    • Disk Recovery
  • Klipper
    • Install Firmware
    • Input Shaper
  • Docker
  • Software
    • ESPHome
      • Web Installer
    • Lists & Sources
    • Brew
    • Flood for Transmission
      • Mac
    • UTM
  • Raspberry Pi
  • VenusOS
  • Proxmox
  • Unifi
  • Mullvad
  • Speedify
  • Mikrotik
  • Home Assistant
Powered by GitBook
On this page
  • Reset Quicklook cache
  • Edit zshrc
  • Homebrew
  • Install Wine
  • Useful shit from an old job
  1. Terminal (sh)

MacOS (zsh)

Reset Quicklook cache

qlmanage -r cache \
killall Dock
killall finder

Edit zshrc

nano ~/.zshrc
/sbin/fsck_hfs -fy /dev/disk2

Homebrew

Install Wine

brew tap homebrew/cask-versions

Useful shit from an old job

  • sysctl -n machdep.cpu.brand_string

    • gets cpu name string with clock speed

  • echo $(expr sysctl -n hw.memsize / $((1024**3)))

    • gets memory size in GB

  • df -H

    • disk sizes - reference the largest one

  • /Volumes/Install\\ macOS\\ Big\\ Sur/Install\\ macOS\\ Big\\ Sur.app/Contents/MacOS/InstallAssistant

    • runs installer from disk

    • use tabs after writing a couple letters of each folder to autofill

  • pwpolicy -u <shortusername> -setpolicy "newPasswordRequired=1"

PreviousTerminal (sh)NextDisk Recovery

Last updated 1 year ago