Skip to content

Instantly share code, notes, and snippets.

@v1rtual
v1rtual / backup.rb
Created December 28, 2016 10:06
rsync backup script (macOs)
#!/usr/bin/env ruby
#
# rsync backup script to sync files to external USB backup disks.
#
# - checks for mounted volume and name
# - saves log to backup volume
#
# Volumes have to be named BACKUP_001, then call with "./backup.rb 001"
#
@v1rtual
v1rtual / spotify_mute_ads.rb
Created June 14, 2012 10:28 — forked from raine/spotify_mute_ads.rb
Mute Spotify ads on OS X
# coding: utf-8
#!/usr/bin/env ruby
#
# Mutes Spotify ads by monitoring Growl's output in syslog, and changing the
# system-wide audio output to dummy output when an ad is detected.
#
# == Installation
#
# 1. Install Soundflower (http://code.google.com/p/soundflower/)
# 2. download gist