This file contains hidden or 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 | |
| """Write RDAP-reported owners for every address in CIDRs as CSV. | |
| The input file contains one CIDR per line. Blank lines and lines beginning with | |
| ``#`` are ignored. The script deliberately includes network and broadcast | |
| addresses because they are addresses contained by the requested network. | |
| poetry run python subnet_ip_owners.py < subnets.txt | tee owners.csv | |
| """ |
This file contains hidden or 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
| [Unit] | |
| Description=Prune unused Docker data | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/docker system prune -f |
This file contains hidden or 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
| [user] | |
| name = Evin Dunn | |
| [alias] | |
| open = "!f() { url=$(git config --get remote.origin.url); case \"$url\" in git@*) url=$(echo \"$url\" | sed -E \"s#^git@([^:]+):(.+)#https://\\1/\\2#\");; esac; url=$(echo \"$url\" | sed -E \"s#\\.git$##\"); /usr/bin/open \"$url\"; }; f" |
This file contains hidden or 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 dbus | |
| import json | |
| FIREWALLD_BUS = "org.fedoraproject.FirewallD1" | |
| FIREWALLD_RUNTIME_OBJ = "/org/fedoraproject/FirewallD1" | |
| FIREWALLD_CONFIG_OBJ = "/org/fedoraproject/FirewallD1/config" |
This file contains hidden or 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 asyncio import wrap_future, get_running_loop | |
| from concurrent.futures import ProcessPoolExecutor | |
| from multiprocessing import cpu_count, Lock | |
| from atexit import register as atexit_register | |
| from argon2 import PasswordHasher | |
| from argon2.exceptions import VerifyMismatchError | |
| from os import getpid | |
This file contains hidden or 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 xml.etree.ElementTree as ET | |
| from urllib.request import urlopen | |
| from json import loads as json_loads | |
| from xml.dom import minidom | |
| def main(): |
This file contains hidden or 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 RPLCD.i2c import CharLCD | |
| from pytz import timezone, utc | |
| from datetime import datetime | |
| from time import sleep, time as get_ts | |
| from concurrent.futures import ThreadPoolExecutor | |
| I2C_EXPANDER = "PCF8574" |
This file contains hidden or 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
| #!/bin/bash | |
| if [ $# -lt 1 ]; then | |
| echo Provide a date to convert | |
| exit 1 | |
| fi | |
| # Provide 'Fri 18 Feb 2022 05:30:00 PM PST' | |
| DATE=$1 |
This file contains hidden or 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
| # See https://www.cockroachlabs.com/docs/v21.2/start-a-local-cluster-in-docker-mac.html | |
| version: "3.9" | |
| services: | |
| roach1: | |
| image: "cockroachdb/cockroach:v21.2.2" | |
| container_name: taxonTree-roach1 | |
| hostname: roach1 | |
| networks: [ roachnet ] | |
| volumes: [ "roach1-data:/cockroach/cockroach-data" ] | |
| command: |
This file contains hidden or 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 argparse import ArgumentParser | |
| from http.server import ThreadingHTTPServer, BaseHTTPRequestHandler | |
| from json import dumps as json_dumps | |
| from threading import Thread, RLock | |
| from time import sleep | |
| import Adafruit_DHT |
NewerOlder