Skip to content

Instantly share code, notes, and snippets.

View angus-lherrou's full-sized avatar

Angus L'Herrou angus-lherrou

  • CHIP @ Boston Children's Hospital
  • Waltham, Massachusetts
View GitHub Profile
This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.
The intent of this script is to allow users to self-diagnose their installations. This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected. Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.
NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.
*** [ INITIALIZING ]
[i] 2020-12-20:23:51:27 debug log has been initialized.
*** [ INITIALIZING ] Sourcing setup variables
@angus-lherrou
angus-lherrou / remove-emoji.py
Last active August 16, 2020 00:45 — forked from slowkow/remove-emoji.py
Remove all traces of emoji from a text file.
#!/usr/bin/env python
"""
Remove emoji from a text file and print it to stdout.
Note: doesn't catch certain things that are counted as emoji by e.g. Facebook, like 2⃣.
Usage
-----
python remove-emoji.py input.txt > output.txt
"""
(mmif-clean) > $ pip list
Package Version Location
--------------------- --------- ------------------------------------------
attrs 19.3.0
certifi 2020.6.20
hypothesis 5.23.11
hypothesis-jsonschema 0.17.3
importlib-metadata 1.7.0
iniconfig 1.0.1
jsonschema 3.2.0