This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VERSION="version14-64bit" | |
LIBSPOTIFY_VERSION="12.1.45" | |
#1. Create the folder where the plugin will be placed | |
mkdir -p ~/.config/Clementine/spotifyblob/$VERSION | |
#2. Download the plugin | |
cd ~/.config/Clementine/spotifyblob/$VERSION | |
wget http://spotify.clementine-player.org/$VERSION/blob | |
wget http://spotify.clementine-player.org/$VERSION/libspotify.so.$LIBSPOTIFY_VERSION | |
#3. Make sure the executable bit is set on the blob | |
chmod +x blob |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
usage() { | |
cat 1>&2 <<EOF | |
Usage $(basename $0) [POSITIONAL_ARGUMENT] [OPTIONS] | |
Describe here what the script does. | |
-v|--verbose Make the Script verbose. | |
-h|--help Print this help message. | |
-l X|--logfile X Set the output Logfile to X | |
EOF | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Logging to local Syslog Example for Bash Scripts | |
# | |
# Author: [email protected] | |
# | |
# todo: Make using a external syslog server an easy to configure Option | |
# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Ham5ter's personal .bash_profile file | |
# | |
# Author: [email protected] | |
# | |
### helper functions ### | |
helpers() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Script/gist helps you creating a libgit2 Debian Package from Source. | |
# Specify the libgit2 Version you want to build here! | |
LIBGIT2VERSION="0.24.1" | |
# Install dependencies (Ubuntu 14.04): | |
apt-get install wget cmake libssl-dev pkg-config libcurl4-openssl-dev libssh2-1-dev libhttp-parser-dev checkinstall | |
# create working directory | |
mkdir libgit2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dependencies | |
apt-get install libffi-dev python-pip python-dev python-cffi | |
### install libgit2 i.e. from Source | |
# https://gist.github.com/Ham5ter/0287710c02682cfcaf1847c28d5ca1be | |
### | |
pip install pygit2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run with root privileges | |
# basic salt-master installation on Ubuntu 16.04 | |
apt-get update | |
apt-get install wget -y | |
wget -O - https://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - | |
echo "deb http://repo.saltstack.com/apt/ubuntu/16.04/amd64/latest xenial main" > /etc/apt/sources.list.d/saltstack.list | |
apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of job definition: | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * user-name command to be executed | |
# | |
# Aliases: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This sets the variable "SCRIPT_DIRECTORY" to the Path, the Script is in. | |
SCRIPT_DIRECTORY="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install wget -y | |
wget -O - https://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - | |
echo "deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main" > /etc/apt/sources.list.d/saltstack.list | |
apt-get update | |
apt-get install salt-minion -y | |
cat << EOF > /etc/salt/minion | |
master: $1 | |
EOF |
OlderNewer