dock icon control + click |
show extra options |
dock icon option + click |
show hide window |
dock icon command + click |
open app location in finder |
Download's dock icon command + click |
show downloads folder in finder |
xyz.app control + click + open |
allows to run without malicious warning |
control + click |
open context menu |
context menu + option |
extra context menu |
shift + option + brightness/volume |
very small shifts |
command + tab, Q |
quit application |
command + option + esc |
Force quit running apps |
command + option + shift + esc |
quit apps one by one |
command + shift + 3/4/5 |
screenshot or recording |
file + spacebar |
quick preview jpg/pdf |
command + spacebar |
spotlight (screensharing, currency/temerature conversion, calc, flights) |
shift + command + g |
Goto folder (~ user folder) |
ctrl + command + space |
emoticons / smiley / icons |
defaults write com.apple.desktopservices DSDontWriteNetworkStores true |
DS_Store |
hover on maximize button | split screen |
right click on speaker icon next to search bar | picture in picture |
startup hidden items location for Users | /Users/tusharkumar/Library/LaunchAgents/ |
startup hidden items location for System | /Library/LaunchDaemons |
copy full path | right click and open context menu, now press OPTION key |
open pkg file | pkgutil --expand ./filename ./outputfolder |
restart finder |
option + right click + relaunch |
laptop start sound | seach in settings for startup sound |
- Keyboard > Shortcuts > Services
- ~/Library/Services
- Open that app > In the dock select Show in Finder > Delete that app > Related context Items will be removed
Remove hidden attribute from file or app
xattr -d com.apple.FinderInfo <filename>
xattr -px com.apple.FinderInfo
xattr -c
xattr -cr <folder>
getfileinfo <file/folder>
setfile -a V
aVbstclinmEdz
chflags -R nohidden <foldername>
chflags nohidden <filename>
Finder >> go back and forward to refresh
man chflags
man xattr
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
Enter password
Press 'option' + click 'Wifi' icon - to check IP address
sudo chflags uchg /etc/hosts
sudo chflags schg /etc/hosts
sudo chflags nouchg /etc/hosts
sudo chflags noschg /etc/hosts
caffeinate -dimsu
gunzip archive.xz
Unzips .xz extension file (will take some time in the background) and deletes the original file afterwards.
- https://github.com/MacPass/MacPass
- https://github.com/p0deje/Maccy
- https://github.com/exelban/stats
- https://github.com/ytdl-org/youtube-dl (HomeBrew)
- https://github.com/section83/MacYTDL
- https://github.com/alb12-la/KBOS
- https://github.com/peazip/PeaZip
- https://github.com/TheTorProject/gettorbrowser
- https://github.com/ganeshrvel/openmtp
- https://github.com/HandBrake/HandBrake
- open zoom meeting with passcode.
- open network tab and filter for
mp4
- something like this will be there
https://ssrweb.zoom.us/cmr/replay/.../Recording_1920x1080.mp4
- Sometimes there might be 2 streams, one for camera video and other for screen sharing.
- copy full
Request URL
and paste in below code. - copy whole
Cookie
and paste in below code.
youtube-dl --output "FILENAME_HERE" --referer "https://zoom.us/" \
--add-header "cookie: PASTE_COOKIE_HERE" \
"PASTE_REQUEST_URL_HERE"
- open finder window
option
+command
+space
- open finder from terminal
open .
- toggle hidden files
shift
+command
+.
- two finder instances: drag the tab outside
- Set default folder >
Finder
>Settings
>General
>New Finder Window show
Settings
>Advanced
>Show all filename extensions
View
>Show Status Bar
View
>Show Path Bar
View
>Show View Options (⌘ + J)
Go
> Shortcuts to jump to specific folders
- Auto save to Pictures instead of Desktop
- Press
command + shift + 5
- Click
Options
- Choose
Other Locations...
exiftool “-DateTimeOriginal+=0:0:0 15:0:0” -r folder_or_putadot
exiftool '-filename<CreateDate' -d %Y%m%d_%H%M%S%%-c.%%ue -ext jpg -r folder_or_putadot
-d
means “Set format for date/time values”.%%-c
if two images have the same file name, then automatically increment. “-” before the “c” puts a dash before the copy number..%%ue
make existing extension uppercase.%%le
make existing extension lowercase-r
recursive
- https://nodejs.org/en/about/previous-releases
- https://nodejs.org/download/release/v20.11.0/node-v20.11.0-darwin-arm64.tar.gz
- double click and extract
- write into
.zprofile
-export PATH="$PATH:/Users/tushar/Downloads/node-v20.11.0-darwin-arm64/bin"
- To avoid the error from vscode
"node" can’t be opened because Apple cannot check it for malicious software.
. Open thebin
folder, right click onnode
executable, and select Open once.
- Link https://brew.sh
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Check terminal instructions OR run these 2 commands
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Above commands will write below code inside
~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
- Close all terminal instances.
- After installing NVM from homebrew check instructions in the terminal
- OR paste below code in these files
~/.zshrc
,~/.profile
,~/.bash_profile
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
brew install git
- https://code.visualstudio.com/download
- Preferred download is
silicon
overuniversal
bundle. - write in
.zprofile
-export PATH="$PATH:/Users/tushar/Downloads/Visual Studio Code.app/Contents/Resources/app/bin"
- OR
Command + Shift + P
searchinstall 'code' command in PATH
- Open
Automator
>Quick Action
> SearchOpen Finder Items
> Drag to right >Workflow receives current (in) "Finder.app"
>Open with
Browse your application >Save
# for bash
source ~/.bashrc
source ~/.bash_profile
# for zsh
source ~/.zshrc
source ~/.zprofile
- Start a local server in nodejs to serve static content
- Place your file inside public folder and serve from there
- Lets say it is serving at
http://localhost:4000
- Copy
IP address
fromMacOs
>Wifi-Settings
- On iPhone, open browser, and paste url as
http://YOUR_MAC_IP_ADDRESS:4000
iPhone
>Settings
>Safari
>Advanced
>Web Inspector
turn onMac
>Safari
>Preferences
>Advanced
>Show Develop menu in menu bar
check on- Connect both through USB cable
iPhone
> Open website that you want to debugMac
>Develop menu
> Select your iOS device- Debug page will get open
- Open Terminal
softwareupdate --list-full-installers
softwareupdate --fetch-full-installer --full-installer-version 14.1.1
- Open
Disk Utility
Format USB asFormat: "Mac OS Extended (Journaled)"
andScheme: "GUID Partition Map"
sudo /Applications/Install\ macOS\ Sonoma.app/Contents/Resources/createinstallmedia --volume /Volumes/SanDisk
- Backup Browser bookmarks
- Backup Chrome Snippets
- Backup Notes
- Backup Sublime Notes
- Backup .zprofile, zsh
- Select "My computer is not connected to internet"
- Turn on Night Shift
- Battery show percentage
- Off "Slightly dim the display on battery"
- On "Prevent automatic sleeping on power adapter"
- Screenshot default location
- Finder settings
- Finder settings from top menu bar > Show Toolbar, Show Path Bar, Show Status Bar
- Login into app store
- Install whatsapp
- Login google without system wide login
- Safari > Settings > Advance > show full path
- Safari > Settings > Advance > show developer options
- Safari > Settings > General > Uncheck open safe files after downloading
- Keyboard > Autocorrect off
- Off Startup sound
- textEdit.app > Settings > plain text
- Keyboard > Keyboard Shortcuts > App Shortcuts >
+
> Menu TitlePaste and Match Style
> Shortcut >ctrl + v
- Install
- https://7-zip.org/a/7z2407-mac.tar.xz
- Double click and extract
- Place folder to a safe place
- Right click
7zz
file, PressOption
key,Copy 7zz as Pathname
- Paste that path in
.zprofile
- Frequently used commands
7zz a filename ./folder/
default7zz a -mx0 filename ./folder/
compression store7zz a -mx9 filename ./folder/
compression fastest7zz a -mx9 filename ./folder/
compression ultra7zz a -pWELCOME filename ./folder/
with password7zz a -pWELCOME -mhe filename ./folder/
with password and encryption
- Args (https://axelstudios.github.io/7z)
-mx
Compression Level-m0
Compression Method-md
Dictionary Size-mfb
Word Size-ms
Solid Block Size-mmt
Number of CPU threads-p
password-mhe
encrypt file names