Non-obvious Keyboard Shortcuts

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:

Apps

brew install --cask modern-csv
brew install --cask modern-csv
brew install --cask obsidian
brew install meetingbar
brew install cyberduck
brew install jordanbaird-ice
brew install --cask pritunl
brew install --cask transmission
brew install --cask iina
brew install --cask voiceink

brew upgrade --cask

defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8

# not used anymore
brew install --cask qlmarkdowno
brew install --cask --no-quarantine syntax-highlight

Other apps I use regularly:

Configuration

nano ~/.ssh/config 
Host *
  ServerAliveInterval 30
  ServerAliveCountMax 5
  UseKeychain yes
  AddKeysToAgent yes
  PubkeyAcceptedKeyTypes +ssh-rsa
  IdentityFile ~/.ssh/id_rsa

# BLOCK WEBSITES
sudo nano /etc/hosts

127.0.0.1 wykop.pl
127.0.0.1 www.wykop.pl
127.0.0.1 facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 news.ycombinator.com
127.0.0.1 www.youtube.com
127.0.0.1 youtube.com

127.0.0.1 proxy.timecamp.local app.timecamp.local admin.timecamp.local analytic$
127.0.0.1 app.timecamp.local

# ENV
printenv # show all env variables
nano ~/.zshenv # store permamently (optionally ~/.zprofile https://www.zerotohero.dev/zshell-startup-files/) export RESTIC_PASSWORD="g1wW
source ~/.zshenv


cat ~/.ssh/id_rsa.pub | pbcopy

# ZSHRC

# zsh
alias openzs="open ~/.zshrc"
alias sourcezs="source ~/.zshrc"

# Docker
alias dcb="docker compose build"
alias dcu="docker compose up -d"
alias dcd="docker compose down"


brew "git"
brew "node"
brew "cask"
brew "zsh"
brew install "zsh-autosuggestions"
brew install "zsh-completions"
brew install zsh-you-should-use
brew install "zsh-syntax-highlighting"
brew install --cask google-cloud-sdk
brew install cloud-sql-proxy
brew install zsh-bat # [GitHub - fdellwing/zsh-bat](https://github.com/fdellwing/zsh-bat)
brew install bat
brew install fzf
brew "pnpm"
brew "npm"
brew "gh"
brew install nano # pico is default on macos

brew install --cask pritunl

cask "cursor"
cask "raycast"
cask "whatsapp"
cask "google-chrome"
cask "postman"
cask "imageoptim"
cask "bitwarden"
cask "docker"
cask "zoom"
cask "ngrok"

cask "font-hack-nerd-font"
cask "font-menlo-for-powerline"
cask "font-jetbrains-mono"
cask "font-jetbrains-mono-nerd-font"

# Enable tap-to-click for the trackpad and show the correct state in System Preferences
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
defaults -currentHost write -g com.apple.mouse.tapBehavior -int 1

# Show the path bar in the Finder
defaults write com.apple.finder "ShowPathbar" -bool "true" && killall Finder

# Show hidden files in the Finder
defaults write com.apple.finder "AppleShowAllFiles" -bool "false" && killall Finder

# Keep folders on top in Finder
defaults write com.apple.finder "_FXSortFoldersFirst" -bool "true" && killall Finder

# Keep folders on top on Desktop
defaults write com.apple.finder "_FXSortFoldersFirstOnDesktop" -bool "true" && killall Finder

/System/Library/PrivateFrameworks/SystemAdministration.framework/Resources/activateSettings -u

# Show .log with space
brew install --cask qlstephen
# open all .log files with cursor

# If you use Chrome and have upgraded to macOS Tahoe, disable "experimental prediction for scroll events" at chrome://flags to make it not feel like you just downgraded to a RAM-starved Windows 98 PC.

How I Setup New MacBooks

Useful commands

# Get power adapter W
system_profiler SPPowerDataType | grep -i "Wattage"

Keyboard shortcuts

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
Hyper + X: 
Hyper + X: 
Hyper + X: 
Hyper + X: 

Space

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

echo 'export EDITOR=nano' >> ~/.zshrc

57 * * * * cd /Users/kamil && rm -f proCertumSmartSign* >/dev/null 2>&1
57 * * * * cd /Users/kamil && rm -f 2025* >/dev/null 2>&1
36 * * * * uv cache clean >/dev/null 2>&1
37 * * * * rm -R "/Users/kamil/Library/Application Support/Google/Chrome/OptGuideOnDeviceModel/" >/dev/null 2>&1
38 * * * * npm cache clean --force >/dev/null 2>&1

Data exploration

brew install --cask clickhouse
brew install --cask duckdb
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