Skip to content

Instantly share code, notes, and snippets.

Mladia /
Created Oct 9, 2018
#!/usr/bin/env 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.
# It needs a token from the spotify developers site:
# Token be in file .config/spotify/token
Mladia /
Last active Jun 6, 2019
Python script, that prints documents in atis
#!/bin/env python3
from bs4 import BeautifulSoup
import urllib.request
import subprocess
import re
import sys
import random
Mladia / .gitignore
Last active Jun 19, 2018 — 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. Added token functioniality
Mladia / com_run
Last active May 9, 2018
Prints a document from ATIS
View com_run
scp cprint atis:~/Dokumente/cprint/cprint; ssh atis "./cprint -d kur"
Mladia / send_run
Last active Oct 23, 2017
send and run a lejos program
View send_run
Mladia / bash.cheat
Last active Nov 13, 2017 — forked from afair/bash.cheat
Bash Scripting Quick Reference
View bash.cheat
Shebang: #!/usr/bin/env bash Test: test expression
In script: [ expression ]
========================================== Alternate: [[ espression ]]
LOOP Does not split string words
========================================== Does not expand pathglobs*
View gist:57ab78effc9358381ae1b52dab62ec19
import java.util.Comparator;
import java.util.PriorityQueue;
public class Test
public static void main(String[] args)
Comparator<String> comparator = new StringLengthComparator() {