Skip to content

Instantly share code, notes, and snippets.

View StephenBrown2's full-sized avatar

Stephen Brown II StephenBrown2

  • JumpCloud
  • San Antonio, TX
View GitHub Profile
@StephenBrown2
StephenBrown2 / throttle_transport.py
Created February 5, 2021 00:09
httpx ThrottleTransport
import time
import datetime
import httpx
class ThrottleTransport(httpx.HTTPTransport):
"""
A custom httpx transport that adds some basic rate-throttling functionality.
Args:
@StephenBrown2
StephenBrown2 / lp_condition.py
Last active March 5, 2021 20:22
Condition LastPass Export
#!/usr/bin/env python3
import csv
import html
import sys
from pathlib import Path
if len(sys.argv) != 2:
print(f"Usage:\n\t{sys.argv[0]} [lastpass_export.csv]")
sys.exit(1)
@StephenBrown2
StephenBrown2 / main.go
Created May 11, 2021 16:27
Find items that exist in multiple places in the os PATH
package main
import (
"fmt"
"os"
"sort"
"strings"
)
func main() {
@StephenBrown2
StephenBrown2 / 1_before.jpg
Last active May 17, 2021 20:09
HMBradley Clean Login Page UserScript
1_before.jpg
@StephenBrown2
StephenBrown2 / simple_txn_struct.go
Last active June 8, 2021 06:33
Simple transaction struct format from json
// This file was generated from JSON Schema using quicktype, do not modify it directly.
// To parse and unparse this JSON data, add this code to your project and do:
//
// txns, err := UnmarshalTransactionList(bytes)
// bytes, err = txns.Marshal()
package main
import "encoding/json"