Skip to content

Instantly share code, notes, and snippets.

View globau's full-sized avatar
🇦🇺

glob globau

🇦🇺
View GitHub Profile
#!/usr/bin/env python3
import argparse
import datetime
import functools
import json
import urllib.parse as url_parse
import urllib.request as url_request
from pathlib import Path
#!/usr/bin/env python3
import argparse
import contextlib
import functools
import json
import re
import urllib.parse as url_parse
import urllib.request as url_request
from pathlib import Path
android
android-emulator
awsy-test
browsertime
cargo
check-spidermonkey
clang-format
cppunittest
cramtest
crashtest
if diff_meta["method"] == "web" and "hg:meta" in diff["properties"]:
# phabsend identifies the creationMethod as 'web'
diff_meta["tool"] = "phabsend"
diff_meta["vcs"] = "hg"
elif diff_meta["method"] == "phabsend" or diff_meta["method"].startswith("phabsend-"):
# phabsend fork
diff_meta["tool"] = "phabsend"
diff_meta["vcs"] = "hg"
#!/usr/bin/env python3
# For the current commit (or the one provided on the command line), generate
# reviewer suggestions based on the recent reviewers of files modified by the
# commit.
#
# "Recent" is within the last sixty days.
# Group reviewers are given priority over individuals.
# If no recent reviewers are found for the files, this script will try again looking
# at all files in the impacted directories.
#!/usr/bin/env python3
import collections
import contextlib
import datetime
import functools
import json
import sys
import urllib.parse as url_parse
import urllib.request as url_request
from pathlib import Path
#!/usr/bin/env python3
from pathlib import Path
import argparse
import functools
import json
import re
import urllib.request as url_request
import urllib.parse as url_parse
@globau
globau / homebrew-packages-with-options.py
Created January 10, 2019 05:52
show homebrew packages installed with options
#!/usr/bin/env python3
import json
import subprocess
for package, *versions in [
l.split(" ")
for l in subprocess.run(
["brew", "list", "--versions"], check=True, capture_output=True, encoding="utf8"
).stdout.splitlines()
]:
@globau
globau / q.py
Created December 4, 2018 20:18
class QueueWorker(threading.Thread):
def __init__(self, q, worker):
self._q = q
self._worker = worker
self._exception = None
super().__init__()
def run(self):
while True:
# grab the next task from the queue
2018-11-22T20:37:49 #rustdoc <netsuper> █▀▀▀▀▀█ █ ▄█▄ █▀▀▀▀▀█ i r c . s u p e r n e t s . o r g # s u p e r b o w l
2018-11-22T20:37:49 #rustdoc <netsuper> █ ███ █ █▄▀ █ █ ███ █ YO NET AINT GOT NO COOCHIE
2018-11-22T20:37:50 #rustdoc <netsuper> █ ▀▀▀ █ ▄█▄▄▄ █ ▀▀▀ █ HAPPY FL-O-O-D-SGIVING
2018-11-22T20:37:50 #rustdoc <netsuper> ▀▀▀▀▀▀▀ ▀▄█▄█ ▀▀▀▀▀▀▀ i r c . s u p e r n e t s . o r g # s u p e r b o w l
2018-11-22T20:37:51 #rustdoc <netsuper> ██▄ ▀█▀ ▄ ▄▀ ▄▀▄▀█▀▀
2018-11-22T20:37:52 #rustdoc <netsuper> ▀▀▀ █▀ ▄▀ ▀▄█ ▄█▀▀█ ██ █ █ ██ ██ ██ ███ █ ██ ███ ███
2018-11-22T20:37:52 #rustdoc <netsuper> ▀ ▀▀▀█▄█▄▀▄▄▄▄ ▄█ █ █ █ █ █ █ █ █ █ █ █ █ █ █│
2018-11-22T20:37:56 #rustdoc <netsuper> █▀▀▀▀▀█ ▄▄▀▄ ▄▀ █▄▀█ ██ █ █ ██ ██ ██ █ █ █ ██ █ ███
2018-11-22T20:38:00 #rustdoc <netsuper> █ ███ █ ▀ ▀█▀▀ █▄▄ ▀█ █ █ █ █ █ █ █ █ █ █ █ █ █
2018-11-22T20:38:04 #rustdoc <netsuper> █ ▀▀▀ █ ▄█▄ ▄▀ ▀▀▀ ██ ███ █ ██ █ █ █ ███ ██ █ ███