This file contains 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
Kauneimmat Joululaulut | |
https://server3.toivon.net/proxy/toivon_2_3?mp=/stream | |
This file contains 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
# Moved to https://github.com/Eerovil/EasyChartGenerator | |
# |
This file contains 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
0004204034 spotify:track:4lCv7b86sLynZbXhfScfm2 // Firework Katy Perry | |
0004209104 spotify:album:4z92WvdbgKMRO0CYtggPBk // titinallekortti titinallen parhaat | |
0004186222 spotify:album:3kF7riTpylZSAtcNqIFZxH // salama | |
0004194903 spotify:playlist:3jnVDQlSRmvUQsj65YA8lw // samba | |
0004244721 spotify:playlist:47kYpJAO6lD83xICPn3Vdt // skibidi | |
0004252181 spotify:playlist:0UeL2TpghYXbnHeaY4e9cY // rovaniemelle | |
0004228383 spotify:playlist:1GkxRxx7T6PKFi3HtUKJ2a // bad | |
0004365871 spotify:playlist:1dUhOFidWeMNia5QHIU1g3 // vauhti kiihtyy | |
0004358293 spotify:playlist:2OGQwqmk3MlO2Faecptk8p // latinobängeri | |
0004371322 spotify:playlist:0lW5EppOlyzgCNlTFGRyZn // baby shark |
This file contains 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 requests | |
import json | |
if __name__ == "__main__": | |
import argparse | |
import sys | |
parser = argparse.ArgumentParser(description="Scanner") | |
parser.add_argument("--mac", help="Mac", required=True) |
This file contains 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 -e | |
filename=/home/eero/Documents/thyme/`date "+%Y-%m-%d"`.json | |
# Backup previous original file if it contains a { | |
if [ -e $filename ] && grep -q { $filename; then | |
cp $filename "$filename".bak | |
else | |
echo "Corrupted/missing original file!" | |
if [ -e "$filename".bak ]; then |
This file contains 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
from evdev import InputDevice, categorize, ecodes | |
from select import select | |
dev = InputDevice('/dev/input/event20') | |
print(dev) | |
scancodes = { | |
# Scancode: ASCIICode | |
0: None, 1: u'ESC', 2: u'1', 3: u'2', 4: u'3', 5: u'4', 6: u'5', 7: u'6', 8: u'7', 9: u'8', | |
10: u'9', 11: u'0', 12: u'-', 13: u'=', 14: u'BKSP', 15: u'TAB', 16: u'Q', 17: u'W', 18: u'E', |