Skip to content

Instantly share code, notes, and snippets.

@SebastianGrans
SebastianGrans / Makefile
Last active March 6, 2018 12:18 — forked from jlintz/gist:1192247
Useful C debug macro.
DEBUG := n
CFLAGS := -std=gnu99 -Werror -Wall -Wno-deprecated-declarations
ifeq ($(DEBUG),y)
CFLAGS += -DDEBUG -g
endif
.PHONY: all clean
@SebastianGrans
SebastianGrans / sp
Last active March 1, 2016 11:29 — 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.
#