This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
| #!/bin/bash | |
| # License: Public Domain. | |
| # Author: Joseph Wecker, 2012 | |
| # | |
| # -- DEPRICATED -- | |
| # This gist is slow and is missing .bashrc_once | |
| # Use the one in the repo instead! https://github.com/josephwecker/bashrc_dispatch | |
| # (Thanks gioele) | |
| # | |
| # Are you tired of trying to remember what .bashrc does vs .bash_profile vs .profile? |
This script only works for older versions of Spotify for Linux.
An actively developed admute script for Spotify on Linux can be found here: https://github.com/SecUpwN/Spotify-AdKiller
| #!/bin/bash | |
| EXPECTED_ARGS=3 | |
| E_BADARGS=65 | |
| MYSQL=`which mysql` | |
| Q1="CREATE DATABASE IF NOT EXISTS $1;" | |
| Q2="GRANT ALL ON *.* TO '$2'@'localhost' IDENTIFIED BY '$3';" | |
| Q3="FLUSH PRIVILEGES;" | |
| SQL="${Q1}${Q2}${Q3}" |
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| #!/bin/bash -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
| #!/bin/bash | |
| # Installation script for a Wordpress 3.0 website on Ubuntu 10.04 | |
| # | |
| # Josh Kersey | |
| # Created: May 15, 2012 | |
| # Last Update: June 13, 2012 | |
| # get setup parameters | |
| echo "apache vhost name (one word):" |
| <?php | |
| $sites = array( | |
| 'sitename.com' => 'sitename.com', | |
| // the first sitename.com in the file, refers to the url content in the browser's window, | |
| //you may/probably should replace this with a FQDN. | |
| // the second sitename.com appearing after '=>' is the directory name inside sites/ where | |
| //the site files are stored. | |
| ); |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| /** | |
| 2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987 | |
| **/ | |
| (function(document) { | |
| var link = document.createElement("a"), | |
| span = document.createElement("span"), | |
| slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1], | |
| mp3 = document.querySelector("em").innerText + ".mp3"; |
| /** | |
| 2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987 | |
| **/ | |
| (function(document) { | |
| var link = document.createElement("a"), | |
| span = document.createElement("span"), | |
| slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1], | |
| mp3 = document.querySelector("em").innerText + ".mp3"; |