Skip to content

Instantly share code, notes, and snippets.

#
# I sometimes browse reddit with my browser split to half of the screen.
# By default, the side bar (submit new link, submit a new text post, etc.) covers
# half the page. I remedied this by injecting my own CSS with the following extension.
# https://safari-extensions.apple.com/details/?id=com.sobolev.stylish-5555L95H45
#
# Below is the exported style in JSON.
# Copy it to a file, save it as file.json, import in stylish. Should be good to go!
@SebastianGrans
SebastianGrans / when_shall_I_be_free-outro_tab.txt
Created April 12, 2017 11:11
When shall I be free? - Outro tab
e|--------------------------------|
B|--------------------------------|
G|--------------------------------|
D|--5h7---------------------------|
A|------7---5h7-------------------|
E|--------------8--7h8---5--------|
@SebastianGrans
SebastianGrans / clock.sh
Created May 17, 2016 13:26
Bash script that gives you a running clock in the terminal
#!/bin/bash
# The clock function I got from here:
# http://www.linuxandlife.com/2012/08/how-to-create-continuous-digital-clock.html
#
# And then I wanted a script that would terminate on 'any key'
# http://stackoverflow.com/questions/5297638/bash-how-to-end-infinite-loop-with-any-key-pressed
#
if [ -t 0 ]; then stty -echo -icanon -icrnl time 0 min 0; fi
@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.
#