Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#Linux Spotify Ad Mute v2
#Put this script in the directory the "spotify" binary is in (e.g. /usr/share/spotify).
#To open Spotify, run it instead of the "spotify" binary.
#System sound will be muted as soon as an ad plays
#Find updated versions at: http://pcworldsoftware.kilu.net/files/link_spotify-admute.php and/or https://gist.github.com/pcworld
#On Debian, you need the package "pulseaudio-utils" for the command line util "pactl" which used in this script
#
#Update: For newer 0.8.x versions (x>4; such as 0.8.8), use this script: https://gist.github.com/pcworld/3198763/#comment-813440
@F0REacH
F0REacH / gist:4678575
Last active December 11, 2015 23:39 — forked from sshaw/gist:2174243
// Tested with 1.0.0-pre.2, 0.9.7 or less does not work.
// Chosen modified to search on @results_data[n].text not .html
App.ChosenMultipleSelect = Em.Select.extend({
multiple: true,
attributeBindings: [ 'multiple', 'data-placeholder', 'data-no_results_text'],
didInsertElement: function() {
this._super();
this.$().chosen();
},