Skip to content

Instantly share code, notes, and snippets.

View shadow-absorber's full-sized avatar

Shadow shadow-absorber

  • Sweden
View GitHub Profile
@sig00x
sig00x / jwtrepack.py
Last active December 29, 2021 21:53
jwt repack with alg None or HS256 with public key
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# we need version pyJWT 0.4.3 in order for public key encode to work!
import pkg_resources
pkg_resources.require("PyJWT==0.4.3")
import jwt # => pip install pyjwt==0.4.3
import sys
import tempfile
@Sinkmanu
Sinkmanu / srec-checksum.py
Created March 14, 2018 11:26
S-record checksum calculator
#!/usr/bin/env python
# usage: $ ./srec-checksum.py <s-record without checksum>
import sys
cad = sys.argv[1]
i = 2
checksum = 0
while i<len(cad):
anonymous
anonymous / disclosure.md
Created August 22, 2017 04:46
A letter for coming out as trans

[Recipient], this might be the most difficult conversation we will ever have. I want to share something hard that’s going on in my life, because I love and trust you, and I know you love me.

So I want to make a deal with you: I won’t try to police how you feel, and if you are angry or upset, that’s fine. But I need you to not explode or retreat. I ask that, as a once-in-a-lifetime favor to me, you listen, all the way through, and reserve judgment and questions until the end. Ultimately, I think this can be positive for both of us. Is that something we can do together?

It means a lot to me that you are willing to listen. There’s a lot to get through, so I wrote most of it down. I’m going to read it because it will make things easier, and I will give you this copy when we are done.

To get to the point, [time of realization], I came to the shocking, and completely unwelcome realization that I’m transgender.

Yes, this means that, despite being assigned [birth gender] based on my genitalia at birth, as a

@sloanlance
sloanlance / Editing remote files in Vim with SSH.md
Created July 13, 2017 16:11
Editing remote files in Vim with SSH

Editing remote files in Vim with SSH

  1. Configure SSH

    In ~/.ssh/config, include the lines:

    Host *
    ControlPath ~/.ssh/sockets/%r@%h-%p