Skip to content

Instantly share code, notes, and snippets.

@Tranquility2
Tranquility2 / pretty_request.py
Last active December 23, 2019 12:53 — forked from defrex/pretty_request.py
A simple function to print a Django request the way requests are meant to be printed.
class AnsiColors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
@Tranquility2
Tranquility2 / make_certs.sh
Last active January 18, 2021 09:54 — forked from mediaupstream/make_certs.sh
extract ca-certs, key, and crt from a pfx file
#!/bin/bash
#
# Usage:
# ./make_certs.sh test.example.com
#
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix
#
# test.example.com.key
# test.example.com.crt (includes ca-certs)