Skip to content

Instantly share code, notes, and snippets.

View unobatbayar's full-sized avatar

Uno unobatbayar

View GitHub Profile
unobatbayar / skipSpotifyAd.scpt
Last active November 29, 2023 01:34
Skip Spotify Ad on Mac. Press as soon as you have an Ad.
-- Close Spotify
tell application "Spotify" to quit
-- Wait for Spotify to close (adjust the delay if needed)
delay 2
-- Reopen Spotify
tell application "Spotify" to activate
-- Hide Spotify
unobatbayar /
Last active May 23, 2023 03:04
Stop corespeechd. This process runs even when dictation, voice commands, siri, etc are disabled. It seems you have to clean install your OS and never agree to terms of services.
while true
killall corespeechd
echo "running"
sleep .3
unobatbayar /
Last active March 22, 2022 01:47
Encrypt files on Mac
# Replace the output and file name
# Assuming you are in the same directory of the file to encrypt
zip -er FILENAME.txt
# You will be prompted to enter password for decryption