Skip to content

Instantly share code, notes, and snippets.

View alexxroche's full-sized avatar
💭
🦀 Rust

Alexx Roche alexxroche

💭
🦀 Rust
View GitHub Profile
@tmonjalo
tmonjalo / list-fftabs.py
Created September 13, 2018 10:42
List all Firefox tabs with title and URL
#! /usr/bin/env python3
"""
List all Firefox tabs with title and URL
Supported input: json or jsonlz4 recovery files
Default output: title (URL)
Output format can be specified as argument
"""
@csamsel
csamsel / logrotate.conf
Last active March 2, 2023 15:42
use lzma for logrotate instead of gzip for better compression
# ...
# compress rotated log files.
compress
compresscmd lzma
uncompresscmd lzmadec
compressext .xz
delaycompress
# ...
@indrayam
indrayam / create-jwt-using-unix-commands-on-mac.md
Last active September 21, 2022 08:08
Create JWT Token Header Using Unix Command line tools ONLY!

Pseudocode:

Y = Base64URLEncode(Header) + ‘.’ + Base64URLEncode(Payload)
JWT = Y + ‘.’ + Base64URLEncode(HMACSHA256(Y))

The steps called out here should work on a Mac as well. The only thing that might be different is the sed command used below. Instead of using -E, you will have to use -r to run sed with extended regular expression support

Use data from this tutorial:

scotch.io