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
function shlex(str) { | |
var args = str.split(" "); | |
var out = []; | |
var lookForClose = -1; | |
var quoteOpen = false; | |
for (var x in args) { | |
if (args.hasOwnProperty(x)) { | |
var arg = args[x]; | |
var escSeq = false; | |
for (var y in arg) { |
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
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
#!/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
var ajaxReqs = 0; | |
var ajaxQueue = []; | |
var ajaxActive = 0; | |
var ajaxMaxConc = 3; | |
function addAjax(obj) { | |
ajaxReqs++; | |
var oldSuccess = obj.success; | |
var oldError = obj.error; | |
var callback = function() { | |
ajaxReqs--; |
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
// ==UserScript== | |
// @id iitc-plugin-listexport@OllieTerrance | |
// @name IITC plugin: Portal List Exporter | |
// @category Info | |
// @version 0.0.0.1 | |
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion | |
// @description Exports a CSV list of all or enemy portals. | |
// @include https://www.ingress.com/intel* | |
// @include http://www.ingress.com/intel* | |
// @match https://www.ingress.com/intel* |
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