Upgrade
|
|
Preferences
Preview for PDFs - Incorrect Pages are Bookmarked
Turn off logical page numbers by going to Preferences > PDF and then unticking the Viewing documents: Use logical page numbers box.
Hidden Utilities
afplay - Audio File Play
afplay [option…] audio_file
loop a file
|
|
individually play all file in a directory
|
|
transmission-cli: Download torrent and magnet links through the command line
Install transmission
|
|
Launch the daemon
|
|
Start the download
|
|
To have a visual update write: (add the -n flag to specify an interval, the standard is 2 seconds)
|
|
Stop the daemon
|
|
or create a magnet.links file including magnet: link list of files you want to download, and then run below script to download all.
|
|
Some options:
To target to a directory
|
|
To download torrent file
|
|
|
|
To enable a peer blocklist: Since transmission-cli works different than its GTK counterpart, it often doesn’t save settings. This means peer blocklists need to be specified each time before use. The -b switch enables a blocklist.
|
|
To download with encryption: It is possible to encrypt the traffic while downloading.
|
|
To remove a torrent with ID 3
|
|
To remove a torrent with ID 3 and 4
|
|
To remove all torrents
|
|
Convert wav to mp3
|
|
Free NTFS read and write on Mac
Edit fstab file
|
|
Add below line where DRIVE_NAME is the name of the drive. The drive’s name should contain no spaces, as adding a space to the configuration file would tell your Mac to interpret whatever’s after that space as a separate command. If your DRIVE_NAME is made up of two words separated with a space, for example, “NO NAME”, you have to add a “\” before the space for the system to recognize the space. For example, “NO\ NAME”.
|
|
Instead of using above, we can use the following command line.
|
|
Open Disk Utility and check File System UUID by opening Volume Info. Go back to Disk Utility to Unmount then Mount the NTFS disk to see if it is able to read and write to NTFS Disk.
Download from youtube
Download all content as mp3 format
|
|
Download all content as mp4 format
|
|
Download any youtube video
|
|
Download clip
|
|
Trim a video without downloading it entirely
|
|
-ss HH:MM:SS: start time to take-to HH:MM:SS: end time-t HH:MM:SS: time length to take
Fastest: It will only download the section specified (to the nearest keyframe).
|
|
Exact Key Frame: inf means to the end of the video.
|
|
Sections: Download a section titled “03. Symphony No. 6, Op. 68 (Pastoral): III. Allegro”:
|
|
Multiple Sections: Download multiple sections:
|
|
Verifying SHA256 checksum with shasum
A checksum is basically a string of letters and numbers that can be used to determine file integrity, like whether an error occurred during transmission, or whether a file was tampered with. For example, if the file checksum matches on your end with the checksum posted by where you received the file, you can be sure the file is identical.
|
|
PDF merge
|
|
If you want to merge only certain pages from files, you can specify page ranges.
|
|
Disabling animations
-
Settings > Accessibility > Display and then toggling “Reduce transparency” on.
-
Settings > Accessibility > Motion and then toggling “Reduce Motion” on.
This replaces the sideways scrolling animation with a much quicker transition between two Spaces. It’s a lot cleaner and more responsive when swiping, as well as when Command+Tabbing between two apps.
- Speed Up the Dock Animations
This makes the Dock appear more quickly. The “0.2” in the command is how long the animation takes in seconds.
defaults write com.apple.dock autohide-time-modifier -float 0.2; killall Dock
To revert the change, paste this command into Terminal:
defaults delete com.apple.dock autohide-time-modifier; killall Dock
- Speed Up the Launchpad Animations
defaults write com.apple.dock springboard-show-duration -float 0.2; defaults write com.apple.dock springboard-hide-duration -float 0.2; killall Dock
To undo these changes, use this:
defaults delete com.apple.dock springboard-show-duration; defaults delete com.apple.dock springboard-hide-duration; killall Dock
- Speed up scrolling between pages in Launchpad
defaults write com.apple.dock springboard-page-duration -float 0.2; killall Dock
This is the command to undo that change:
defaults delete com.apple.dock springboard-page-duration; killall Dock