Skip to content

Instantly share code, notes, and snippets.

View webcoderph's full-sized avatar
:electron:
Available for project

Maynard Cabalitan webcoderph

:electron:
Available for project
View GitHub Profile
@keithrbennett
keithrbennett / vol.rb
Last active May 11, 2019 17:00
Controls and displays volume settings on the Mac command line.
#!/usr/bin/env ruby
# This file's home is at https://gist.github.com/keithrbennett/fcf8d1511a430dd2cbc3bafdfe81ba59.
# With a numeric argument from 0 to 100,
# sets volume to that %, and outputs new volume settings.
#
# Without any argument, outputs volume settings.
# Author: Keith Bennett (keithrbennett on Github)