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 | |
# zip2lha.sh - convert zip files (for WHDLOAD) into lha for retropie / amiberry | |
# USAGE: zip2lha.sh zipfilename.zip | |
# or to do whole directory: find . -name '*.zip -exec zip2lha.sh {} \; | |
# set TMPDIR & DESTDIR in script | |
# REQUIREMENTS: unzip & jlha-utils (NOT lha package) on raspbian | |
# BE CAREFUL! This script removes contents of TMPDIR after each conversion | |
FN=$1 |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
'''parsephpchain.py - parse phpchain XML export to CSV''' | |
import xml.etree.ElementTree as ET | |
import sys | |
def parse(file): | |
tree = ET.parse(file) |
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
footssh() | |
{ | |
if [[ $TERM = "foot" ]]; then | |
TERM=linux ssh $@ | |
else | |
ssh $@ | |
fi | |
} | |
alias ssh=footssh |
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
{ | |
"FAUXMO": { | |
"ip_address": "AUTO" | |
}, | |
"PLUGINS": { | |
"SimpleHTTPPlugin": { | |
"DEVICES": [ | |
{ | |
"port": 12340, | |
"off_cmd": "http://192.168.1.107/admin/api.php?disable=600&auth=YOUR_AUTH_CODE", |
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
#!/usr/bin/env python | |
import requests | |
import json | |
import glob | |
import os | |
import hashlib | |
import sys | |
import traceback |
OlderNewer