Skip to content

Instantly share code, notes, and snippets.

@Mladia
Mladia / sp.sh
Created October 9, 2018 22:55
spotify-cml-fork
#!/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: https://developer.spotify.com/web-api/authorization-guide/
# Token be in file .config/spotify/token
#
@Mladia
Mladia / cprint.py
Last active June 6, 2019 11:25
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
Mladia / .gitignore
Last active June 19, 2018 23:48 — 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
token
@Mladia
Mladia / com_run
Last active May 9, 2018 11:01
Prints a document from ATIS
scp cprint atis:~/Dokumente/cprint/cprint; ssh atis "./cprint -d kur"
@Mladia
Mladia / send_run
Last active October 23, 2017 23:18
send and run a lejos program
#!/bin/bash
brick_host='192.168.0.104'
brick_user='root'
brick_home='/home/root'
brick_debug_port='4000'
@Mladia
Mladia / bash.cheat
Last active November 13, 2017 21:05 — forked from afair/bash.cheat
Bash Scripting Quick Reference
TEST COMMAND
==========================================
Shebang: #!/usr/bin/env bash Test: test expression
In script: [ expression ]
========================================== Alternate: [[ espression ]]
LOOP Does not split string words
========================================== Does not expand pathglobs*
// Test.java
import java.util.Comparator;
import java.util.PriorityQueue;
public class Test
{
public static void main(String[] args)
{
Comparator<String> comparator = new StringLengthComparator() {
@Override