Skip to content

Instantly share code, notes, and snippets.

View haakenlid's full-sized avatar
🕺

Håken Lid haakenlid

🕺
View GitHub Profile
@haakenlid
haakenlid / gist:3e839c6ac8ebd4f61757
Last active August 29, 2015 14:11 — forked from robinkraft/gist:4d1807fb8f9c246b2d21
OpenCV for python on Ubuntu
# download opencv first
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev
@haakenlid
haakenlid / sp
Created December 6, 2015 13:07 — forked from wandernauta/sp
sp is a command-line client for Spotify's dbus interface. Play, pause, skip and search tracks from the comfort of your command line.
#!/bin/bash
#
# This is sp, the command-line Spotify controller. It talks to a running
# instance of the Spotify Linux client over dbus, providing an interface not
# unlike mpc.
#
# Put differently, it allows you to control Spotify without leaving the comfort
# of your command line, and without a custom client or Premium subscription.
#