Skip to content

Instantly share code, notes, and snippets.

View chris-vecchio's full-sized avatar

Chris Vecchio chris-vecchio

View GitHub Profile
@Firenza
Firenza / fiddler_with_python.md
Last active January 20, 2024 02:49
Get fiddler working with python requests module

Get fiddlers base64 encoded root certificate

  1. Install fiddler winget install -e --id Telerik.Fiddler
  2. Open fiddler and go to Tools -> Options -> HTTPS
  3. Enable Decrypt HTTPS traffic
  4. Click the Actions button and select Export root certificate to desktop
  5. Right click the FiddlerRoot.cer file on the desktop and click Open with -> Crypto Shell Extensions
  6. In the Certificate window that opens up go to Details -> Copy to File
  7. Click Next then select Base-64 encoded X.509 (.CER) then specify the file name (E.G. FiddlerRootBase64.cer)
  8. Click Next to create the new file
@panzi
panzi / smart_formatter.py
Last active May 20, 2025 20:33
Python argparse help formatter that keeps new lines and doesn't break words (so URLs are preserved), but still wraps lines. Use with: `argparse.ArgumentParser(formatter_class=SmartFormatter)`
# Version 2:
# This version preserves space, including indentation.
#
# Also if you have lists like this:
#
# foo ....... bla bla bla
# bar baz ... bla bla bla bla
#
# It will re-formated it to e.g. this:
#
@deppen8
deppen8 / documenting-your-code-links.md
Last active December 18, 2022 19:43
Links in the `documenting-your-code` tutorial