Skip to content

Instantly share code, notes, and snippets.

Avatar
🦝
what the devs know: 1. whole codebase is spaghetti 2. spaghetti is delicious

Chris Partridge tweedge

🦝
what the devs know: 1. whole codebase is spaghetti 2. spaghetti is delicious
View GitHub Profile
@tweedge
tweedge / example.py
Created Jun 30, 2021
Parsing Scheduled Task Data Tutorial
View example.py
# refer: https://www.reddit.com/r/cybersecurity/comments/ob5yhe/help_parsing_through_aggregated_scheduled_task/
from csv import reader
task_counter = {}
# open the CSV file
with open('example.csv', 'r') as read_obj:
# use the reader() function we can actually read the CSV format
@tweedge
tweedge / quick-s3-index-maker.py
Last active Jan 10, 2021
Quick HTML Index Maker for S3 HTTPS Endpoints
View quick-s3-index-maker.py
# quick-s3-index-maker.py
# compatibility: python3
# originally from: https://pythonadventures.wordpress.com/2011/03/26/static-html-filelist-generator/
# features:
# - takes directory and S3 endpoint as input
# - inserts header.txt prior to listing if one is present in the directory
# - removes emojis from filenames only (not compatible with Wasabi)
# - the least production-ready thing I've written since college
# - hacky as hell
View gist:b785f18f6f1d0990fb053ee3a03af041
### Keybase proof
I hereby claim:
* I am tweedge on github.
* I am tweedge (https://keybase.io/tweedge) on keybase.
* I have a public key whose fingerprint is 9006 50BF 8FF7 CF85 37B8 656D 57FA 4293 20F1 CCDF
To claim this, I am signing this object: