Skip to content

Instantly share code, notes, and snippets.

View felixhammerl's full-sized avatar

Felix Hammerl felixhammerl

View GitHub Profile
@felixhammerl
felixhammerl / Pipfile
Created November 15, 2023 11:02
Lightweight Python logging
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[packages]
requests = "*"
python-json-logger = "*"
structlog = "*"

Keybase proof

I hereby claim:

  • I am felixhammerl on github.
  • I am fhammerl (https://keybase.io/fhammerl) on keybase.
  • I have a public key whose fingerprint is 71CB 1FD6 6575 1F5F B702 95C0 7859 E652 0888 D02E

To claim this, I am signing this object:

@felixhammerl
felixhammerl / README.md
Created February 6, 2022 20:12
Python Snippet

For vi, place python.snippets in ~/.config/coc/ultisnips/

For vscode, paste python.json in CMD+p > Configure user snippets > Python

@felixhammerl
felixhammerl / index.html
Created January 19, 2022 18:22
Bare Bones HTML5 iframe carousel
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>Dashboard</title>
<style type="text/css">
html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-mo
@felixhammerl
felixhammerl / README.md
Last active March 20, 2024 02:58
MitM TLS encrypted traffic in macOS using SSLKEYLOGFILE

Option 1: Via macOS environment variable:

  1. mkdir -p ~/Library/LaunchAgents
  2. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  3. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  4. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  5. Restart your browser(s)
  6. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile

NB: This may be hit or miss and many apps do not respect the env var.