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 asyncio | |
import logging | |
from random import randint | |
LOG = logging.getLogger(__name__) | |
HOST = "0.0.0.0" |
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 | |
""" | |
Credentials file (path in `ULOGGER_CREDS`): | |
``` | |
<username>:<password> | |
``` | |
Database schema (database name in `ULOGGER_DB`): |
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 | |
from itertools import count | |
from pathlib import Path | |
import os | |
import sys | |
import 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
#!/usr/bin/env python3 | |
from collections import defaultdict | |
import subprocess | |
def main(): | |
dumpsys = subprocess.run(("/system/bin/dumpsys", "package", "packages"), capture_output=True) | |
owners = defaultdict(set) | |
installs = defaultdict(dict) |
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 | |
""" | |
Migrate Radicale calendars and contacts to Baikal. | |
""" | |
import datetime | |
import json | |
import pathlib | |
import time |
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 hashlib | |
import json | |
import logging | |
import os.path | |
from pathlib import Path | |
LOG = logging.getLogger(__name__) |
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 collections import defaultdict | |
from getpass import getpass | |
import gzip | |
import hashlib | |
import io | |
import json | |
import logging | |
import pathlib | |
import struct | |
import sqlite3 |
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
_metadata: | |
major_version: 1 | |
minor_version: 1 | |
display_information: | |
name: IMMP | |
features: | |
app_home: | |
home_tab_enabled: false | |
messages_tab_enabled: true | |
messages_tab_read_only_enabled: false |
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 | |
from csv import DictReader | |
from datetime import datetime, timedelta | |
import os.path | |
from pprint import pprint | |
import re | |
import sys | |
from icalendar import Calendar, Event, vDDDTypes |
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 | |
from csv import DictReader | |
from datetime import datetime | |
from dateutil.rrule import rrulestr | |
from icalendar import Alarm, Calendar, Todo, vRecur | |
PRIORITY = {"0": "0", "1": "6", "3": "5", "5": "4"} |
NewerOlder