This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SPOTIFYCMD="dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player." | |
function spotify_oper { | |
${SPOTIFYCMD}$1 | |
} | |
case $1 in | |
"play") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib | |
import sys | |
import json | |
import re | |
SP_REGEX = re.compile('^http://[\S]+/track/([\S]+)') | |
SP_LOOKUP_BASEURL = 'http://ws.spotify.com/lookup/1/.json?uri=spotify:track:%s' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import iso8601 | |
from datetime import datetime | |
from lesscss import LessCSS | |
# Defaults | |
page = {} | |
pages = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Free monad based thread simulation and FRP constructs written in JavaScript | |
// First, we need some way to express lazy values and actions. | |
// We can use zero-argument functions for this purpose: call the function and | |
// you get the value. We also need to compose lazy values/actions. For that | |
// we have bindLazy function. Lazy values are not expected to be pure | |
// in this program: evaluating a lazy value/action at different times can produce | |
// a different value. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns jkpl.fasttrack | |
(:require [clojure.string :as s] | |
[clojure.java.io :as io])) | |
(defn string-to-numbers | |
"Converts string of numbers to a list of numbers" | |
[s] | |
(->> (s/split s #" ") | |
(map read-string))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = EAP-TTLS-PAP | |
author = jkpl | |
version = 1 | |
require identity *Identity password *Password | |
optional ca_cert *Path_to_CA_cert anon_identity *Anonymous_Identity | |
protected password *Password | |
----- | |
ctrl_interface=/var/run/wpa_supplicant | |
network={ | |
ssid="$_ESSID" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
from ConfigParser import ConfigParser | |
from subprocess import Popen, PIPE, STDOUT | |
# Place your own settings here | |
filepath = (os.environ['HOME'], '.mypwfile.gpg') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## URL | |
# The URL to the Youtube playlist | |
URL="http://www.youtube.com/playlist?list=PL60BA016CD6B147F8" | |
## DESTPATH | |
# The path where to to download the music to | |
DESTPATH="$HOME/Music/awesome_new_music" |
NewerOlder