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 bs4 | |
import more_itertools | |
import requests | |
OUTDOORURL = "https://www.deichschafblog.de/s4/mods-fuer-outdoor-leben/" | |
WORKURL = "https://www.deichschafblog.de/s4/mods-fuer-an-die-arbeit/" | |
TOGETHERURL = "https://www.deichschafblog.de/s4/mods-fuer-zeit-fuer-freunde/" | |
CITYURL = "https://www.deichschafblog.de/s4/mods-fuer-grossstadtleben/" | |
VAMPIRESURL = "https://www.deichschafblog.de/s4/mods-fuer-vampire/" |
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 io | |
import os | |
import requests | |
import subprocess | |
import zipfile | |
EXIFTOOLDIR = "C:\\tools\\exiftool" | |
EXIFTOOLURL = "https://www.sno.phy.queensu.ca/~phil/exiftool/" | |
EXIFTOOLVER = "http://owl.phy.queensu.ca/~phil/exiftool/ver.txt" |
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 xml.etree.ElementTree as et | |
import openpyxl | |
wb = openpyxl.Workbook() | |
tree = et.parse("Neia_MoreNamesTuning.xml") | |
root = tree.getroot() | |
workzone = root[1][2] | |
for lang in workzone: | |
langname = lang[0].text | |
nametuning = lang[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 python3 | |
import contextlib | |
import io | |
import os | |
import time | |
import discord # pip install discord.py | |
import lepprint.lepprint as lepprint # https://gist.github.com/thurask/632cdc049767aaa63492e2bd6039a1ca | |
import requests # pip install requests |
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 argparse | |
import concurrent.futures | |
import os | |
import subprocess | |
GITFOLDER = "C:\\git" | |
def filterer(infx): |
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 python3 | |
"""Check some popular TS4 mods for updates.""" | |
import argparse | |
import io | |
import os | |
import platform | |
import re | |
import string | |
import sys | |
import tempfile |
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 collections | |
import json | |
import xml.etree.ElementTree | |
import requests | |
# Edit this to filter only certain model numbers | |
VALIDHWIDS = ["SQC100-1", "SQC100-2", "SQC100-3", "SQC100-4", "SQC100-5", "SQW100-1", "SQW100-3", "SQW100-4", "STK100-1", "STK100-2", "SQK100-1", "SQK100-2", "STR100-1", "STR100-2", "STJ100-1", "STJ100-2", "STA100-2", "STA100-3", "STA100-5", "STA100-6", "SQR100-1", "SQR100-2", "SQR100-3", "SQN100-1", "SQN100-2", "SQN100-3", "SQN100-4", "SQN100-5", "STL100-1", "STL100-2", "STL100-3", "STL100-4"] |
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 os | |
from defusedxml import ElementTree | |
def has_curef(infile): | |
with open(infile, "r") as afile: | |
data = afile.read() | |
sentinel = True if "CUREF" in data else False | |
return sentinel |
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 python3 | |
import gzip | |
import os | |
import shutil | |
import subprocess | |
import zipfile | |
from defusedxml import ElementTree | |
import yaml | |
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 | |
def get_info(platform): | |
vers = "" if platform == "linux" else "-v2" | |
testurl = "http://prerelease.keybase.io.s3.amazonaws.com/update-{0}-prod-test{1}.json".format(platform, vers) | |
regurl = "http://prerelease.keybase.io.s3.amazonaws.com/update-{0}-prod{1}.json".format(platform, vers) | |
req_test = requests.get(testurl) | |
req_reg = requests.get(regurl) | |
return req_test.json(), req_reg.json() |