Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Make a "ding" sound on your Mac!

View ding.sh
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# .___.__
# __| _/|__| ____ ____
# / __ | | |/ \ / ___\
# / /_/ | | | | \/ /_/ >
# \____ | |__|___| /\___ /
# \/ \//_____/
#
# Make a "ding" sound on your Mac! Useful for notifying you when a command
# line script has finished.
#
# Examples:
#
# 1. Get notified when your large file has been transferred:
#
# $ scp really-large-file my-server:~ && ding
#
# 2. Make your computer go "ding" just for fun:
#
# $ ding
#
# Other built-in sounds to try:
#
# /System/Library/Sounds/Basso.aiff
# /System/Library/Sounds/Blow.aiff
# /System/Library/Sounds/Bottle.aiff
# /System/Library/Sounds/Frog.aiff
# /System/Library/Sounds/Funk.aiff
# /System/Library/Sounds/Glass.aiff
# /System/Library/Sounds/Hero.aiff
# /System/Library/Sounds/Morse.aiff
# /System/Library/Sounds/Ping.aiff
# /System/Library/Sounds/Pop.aiff
# /System/Library/Sounds/Purr.aiff
# /System/Library/Sounds/Sosumi.aiff
# /System/Library/Sounds/Submarine.aiff
# /System/Library/Sounds/Tink.aiff
#
# And now for the magic!
 
afplay /System/Library/Sounds/Glass.aiff
 
# Seriously too easy to do this, was it even worth it?

cute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.