Skip to content

Instantly share code, notes, and snippets.

View regulad's full-sized avatar

Parker Wahle regulad

View GitHub Profile
@regulad
regulad / .env
Created June 18, 2023 21:54
SOCKS5 Proxy using Tailscale Exit Node
TS_AUTHKEY=ts-auth-yattayatta
@regulad
regulad / test_oauth_tokens.py
Last active February 4, 2023 23:39
A test case that tests all of the known Twitter OAuth1a client tokens & secrets. Requires a dperson/torproxy to proxy requests.
# Copyright (c) 2023 by Parker Wahle. All rights reserved.
# Requires pytest, tweepy, pytest, pytest-selenium, selenium, & tor-python-easy
# Up a Tor proxy with https://github.com/markowanga/tor-python-easy
# I used the Chrome driver, but I've written code to use any driver.
import pytest
from selenium.webdriver import Proxy
from selenium.webdriver.chrome.options import Options as ChromeOptions
from selenium.webdriver.common.by import By
from selenium.webdriver.edge.options import Options as EdgeOptions
@regulad
regulad / miniprojects.md
Created December 31, 2022 02:46
Mini-Projects

Mini-Projects

Python

Here is a list of some of my Python Mini-Projects, normally devleoped in a day or less.

Most of them are packages published on pip and can be used in Python projects.

Bewarned, most of them are little more than proofs-of-concept. The ones below are ones that I am proud of, and there are probably more lost in the margins of my GitHub account.

@regulad
regulad / workflow.yml
Created June 9, 2021 15:12
Friday Night Funkin' CI
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
@regulad
regulad / README.md
Last active June 15, 2021 22:04
Easy Google TTS Stack
@regulad
regulad / app.py
Created June 2, 2021 18:51
Better subapp loading for aiohttp Subapps: inspired by discord.py's extension system.
import sys
import importlib
import importlib.util
from aiohttp import web
class SubappLoadingFailure(Exception):
def __init__(self, *args, subapp_name: str):
self.subapp_name = subapp_name
@regulad
regulad / Dockerfile
Last active June 3, 2021 21:35
Python Dockerfile with Git
# syntax=docker/dockerfile:1
FROM python:3.9.5-slim-buster
RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y git
WORKDIR /app
@regulad
regulad / nuke.py
Created May 12, 2021 20:01
Nuking cog for d.py
import asyncio
import typing
import discord
from discord.ext import commands
class nuke(
commands.Cog,
name="Nuke",