aly / discord_presence_plex.py
0 likes
0 forks
1 files
Last active
uses Tautulli as an easy way to get plex session data. has to be run on the same machine as your discord desktop client for access to RPC
| 1 | from pypresence import Presence # https://github.com/qwertyquerty/pypresence |
| 2 | from requests import get |
| 3 | from time import sleep |
| 4 | from sys import exit |
| 5 | |
| 6 | client_id = "556909532417228919" |
| 7 | user = "blha303" |
| 8 | tautulli_instance = "https://tau.home.b303.me" # https://github.com/Tautulli/Tautulli |
| 9 | |
| 10 | RPC = Presence(client_id) |
aly / ipxe-isodir.php
0 likes
0 forks
1 files
Last active
Loads a directory of isos and returns an ipxe-compatible boot list
| 1 | <?php |
| 2 | header("Content-Type: text/plain"); |
| 3 | $server = "http://192.168.1.1"; |
| 4 | ?> |
| 5 | #!ipxe |
| 6 | |
| 7 | menu ISO Directory |
| 8 | <?php |
| 9 | $arr = array(); |
| 10 | $urls = array(); |
aly / lookingglass.py
0 likes
0 forks
1 files
Last active
A Looking Glass implementation in Python3 and Flask. Vet code for security concerns before deploying, this isn't tested for vulnerabilities in any way
| 1 | #!/usr/bin/env python3 |
| 2 | from flask import Flask,request,make_response |
| 3 | from shlex import quote |
| 4 | from subprocess import check_output |
| 5 | import socket |
| 6 | from requests import post |
| 7 | |
| 8 | app = Flask(__name__) |
| 9 | |
| 10 | @app.route('/') |
aly / lyrics2ptr.py
0 likes
0 forks
1 files
Last active
Takes lyrics and a subnet, returns djbdns PTR records for those lyrics
| 1 | #!/usr/bin/env python |
| 2 | # v4 |
| 3 | # known bugs: |
| 4 | # * very long words may break all the things or end up longer than the maximum limit |
| 5 | |
| 6 | __usage__ = "{} $network <lyrics" |
| 7 | __example__ = """ |
| 8 | $ {} 172.16.1.0/30 <<EOF |
| 9 | this is a test |
| 10 | this is only a test |
aly / get_world_quests.py
0 likes
0 forks
1 files
Last active
Gets current world quests active in NA and returns json. Doesn't get zone info yet
| 1 | #!/usr/bin/env python3 |
| 2 | import requests,json |
| 3 | |
| 4 | page = requests.get("http://www.wowhead.com/world-quests/na").text |
| 5 | datasets,worldquest_raw = page.split("});\n\n//]]>")[0].split("\nvar lvWorldQuests") |
| 6 | datasets = [n.strip() for n in datasets.split("var _ = {};")][1:] |
| 7 | worldquests = json.loads(worldquest_raw.split("parent: 'list', data: ",1)[1].split("});\n\n//]]>",1)[0]) |
| 8 | |
| 9 | wq_items, wq_quests, wq_factions = {},{},{} |
| 10 | wq_types = {1: "Profession Quest", 2: "World Quest", 3: "PVP World Quest", 4: "Pet Battle", 5: "Emissary (Faction) Quest", 6: "Dungeon World Quest", 7: "?? Maybe world boss", 8: "Raid World Quest"} |
aly / toornamenter.py
0 likes
0 forks
1 files
Last active
A scriptable program to add fields to a toornament
| 1 | #!/usr/bin/env python3 |
| 2 | # $ python3 toornamenter.py '1349047821760815104,Test label,test_label,1,1,1 |
| 3 | # 1262174713922625536,Test label,test_label,1,1,1' |
| 4 | # yes that's a newline in there. takes csv as long as it's purely comma separated values, |
| 5 | # no quotes or escaped commas supported, sorry |
| 6 | import requests |
| 7 | from argparse import ArgumentParser |
| 8 | from os import environ |
| 9 | |
| 10 | x = "custom_field_create[{}]"# |