Skip to content

Instantly share code, notes, and snippets.

@Mopip77
Last active November 27, 2022 04:39
Show Gist options
  • Save Mopip77/6bc759bbb9477a69469ae771ea3706b4 to your computer and use it in GitHub Desktop.
Save Mopip77/6bc759bbb9477a69469ae771ea3706b4 to your computer and use it in GitHub Desktop.
mac useful command

Mac Useful Command

Reference: https://www.youtube.com/watch?v=qOrlYzqXPa8

Say

Say some text by tts.

say "xxx"

Query Downloaded Files

This is stored in mac sqlite database. So event though the download history is cleaned in browser, the history still be remained.

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEvents* 'select  LSQuarantineTimeStamp,LSQuarantineDataURLString from LSQuarantineEvent where LSQuarantineDataURLString != ""'

Use touch id as sudo password

Add the new line below in /etc/pam.d/sudo

auth       sufficient     pam_tid.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment