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
shopt -s extglob | |
declare -A access | |
access=(); | |
cutoff=$(date +%s -d "1 week ago"); | |
packages=$(pacman -Ql | tail -n 5000); | |
IFS=$'\n' | |
for package in $packages; do | |
pname=$(echo $package | cut -f1 -d' '); |
/** | |
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"; |
#!/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 | |
# |
<?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. | |
); |
#!/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):" |
#!/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 | |
#-- 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 | |
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}" |
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