Skip to content

Instantly share code, notes, and snippets.

View tweedge's full-sized 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 / quick-s3-index-maker.py
Last active January 10, 2021 09:06
Quick HTML Index Maker for S3 HTTPS Endpoints
# 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
@tweedge
tweedge / example.py
Created June 30, 2021 21:32
Parsing Scheduled Task Data Tutorial
# 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

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 AEF7 A000 E1B7 6775 5945 401A D8A0 82C6 0654 EFE4

To claim this, I am signing this object: