Skip to content

Instantly share code, notes, and snippets.

View Ham5ter's full-sized avatar
☠️
This account is Dead, Head over to: https://github.com/keyboardinterrupt/

Ham5ter Ham5ter

☠️
This account is Dead, Head over to: https://github.com/keyboardinterrupt/
View GitHub Profile
# 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
@Ham5ter
Ham5ter / Compile and Install libgit2 for pygit2
Last active June 13, 2016 14:03
Compile and Install libgit2 for pygit2/salt-master 2015.5.3 (Lithium) on ubuntu 14.04
# 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
@Ham5ter
Ham5ter / .bash_profile
Last active December 8, 2016 14:52
Ham5ter's personal .profile file
#!/bin/bash
#
# Ham5ter's personal .bash_profile file
#
# Author: ham5ter@ham5ter.de
#
### helper functions ###
helpers() {
#!/bin/bash
#
# Logging to local Syslog Example for Bash Scripts
#
# Author: ham5ter@ham5ter.de
#
# todo: Make using a external syslog server an easy to configure Option
#
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
}
@Ham5ter
Ham5ter / install_spotify_plugin_for_clementine.sh
Created February 8, 2016 13:28
install spotify plugin for clementine
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