Apps & Configuration

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
brew install voiceink
brew install tunnelblick
brew install obsidian
brew install meetingbar
brew install modern-csv
brew install cyberduck
brew install pritunl
brew install git
brew install node
brew install zsh
brew install pipx
brew install nano # macos uses pico
brew install "zsh-autosuggestions"
brew install "zsh-completions"
brew install "zsh-syntax-highlighting"
brew install "zsh-autocomplete"
brew install google-cloud-sdk
brew install localsend
brew install cursor
brew install raycast
brew install "google-chrome"
brew install "postman"
brew install "imageoptim"
brew install "bitwarden"
brew install "docker"
brew install "zoom"
brew install "ngrok"
brew install clickhouse
brew install duckdb
brew install tableplus
brew install tailscale
brew install the-unarchiver
brew install typescript
brew install duti # to change default app in Finder
brew install highlight # to see yaml as text file in Finder (qlmanage -r to apply)
brew install contexts # better CMD-TAB

defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8 # Smaller gap in taskbar
defaults write com.apple.finder "ShowPathbar" -bool "true" && killall Finder # Show the path bar in the Finder
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true" && killall Finder # Keep folders on top in Finder
defaults write com.apple.finder "_FXSortFoldersFirstOnDesktop" -bool "true" && killall Finder # Keep folders on top on Desktop
defaults -currentHost write NSGlobalDomain com.apple.trackpad.threeFingerSwipeGesture -int 1 # Three finger drag using trackpad

# Change default apps
mdls -name kMDItemCFBundleIdentifier -r /Applications/Cursor.app
duti -s com.todesktop.230313mzl4w4u92 public.yaml all
duti -s com.todesktop.230313mzl4w4u92 public.json all
duti -s com.todesktop.230313mzl4w4u92 .log all

# .zshrc
alias python='python3'
export EDITOR=nano
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

# .ssh/config 
nano ~/.ssh/config 
Host *
  UseKeychain yes

# No longer used
# brew install jordanbaird-ice
# brew install transmission
# brew install iina
# brew install qlmarkdowno

Useful commands

cat ~/.ssh/id_rsa.pub | pbcopy # Copy public key
system_profiler SPPowerDataType | grep -i "Wattage" # Get power adapter W

Disk space

brew install --cask grandperspective

rm -rf ~/.bun/install/cache
rm -rf ~/Developer/time-tracker/electron-app/out
rm -rf ~/Library/Application Support/Slack/Cache
rm -rf ~/jan
uv cache clean
npm cache clean --force
brew cleanup

# CRONTAB
36 * * * * uv cache clean >/dev/null 2>&1
38 * * * * npm cache clean --force >/dev/null 2>&1

Data exploration

clickhouse local --query "DESCRIBE file('*.parquet', 'Parquet')"
clickhouse local --query "SELECT * FROM file('*.parquet', 'Parquet') LIMIT 10"
duckdb -c "SELECT * FROM '*.parquet.gz' LIMIT 500;" | cat

Non-obvious Keyboard Shortcuts

RAYCAST:
Hyper + 2: mute/unmute microphone
Hyper + 7: Calendar
Hyper + X: Google Chat
Hyper + C: Google Chrome
Hyper + M: Messages
Hyper + O: Obsidian
Hyper + T: TablePlus
Hyper + D: Developer (Cursor)
Hyper + E: Email

Apple Shortcuts

Start TimeCamp Timer

Screenshot 2023-01-29 at 21.42.53.png|300

Start & stop TimeCamp timer using Siri, whenever you are.

Quickly start TimeCamp timer (also using Siri) with a provided note.
If any timer is running it will be stopped automatically.

Transcribe Voice Memo for Free Using OpenAI Whisper on MacOS Shortcuts

Pasted image 20230128154250.png|400

Download Apple Shortcut:
https://www.icloud.com/shortcuts/c1c96414530c4b9588b4ece3ca0d5316

You have to install Whisper (https://github.com/openai/whisper) on your MacOS first.

Example tutorials: