Skip to content

Instantly share code, notes, and snippets.

@Mladia
Mladia / sp.sh
Created Oct 9, 2018
spotify-cml-fork
View sp.sh
#!/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 Jun 6, 2019
Python script, that prints documents in atis
View cprint.py
#!/bin/env python3
from bs4 import BeautifulSoup
import urllib.request
import subprocess
import re
import sys
import random
@Mladia
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
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
Mladia / send_run
Last active Oct 23, 2017
send and run a lejos program
View send_run
#!/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 Nov 13, 2017 — forked from afair/bash.cheat
Bash Scripting Quick Reference
View bash.cheat
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*
View gist:57ab78effc9358381ae1b52dab62ec19
// 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
You can’t perform that action at this time.