Skip to content

Instantly share code, notes, and snippets.

View liucoj's full-sized avatar

Liu_C0j liucoj

View GitHub Profile
@liucoj
liucoj / decode_p7m.py
Last active February 23, 2025 20:53
Decode .p7m files
import os
import sys
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives import hashes
from asn1crypto import pem, cms
def decode_p7m_to_pdf(p7m_file_path, output_pdf_path):
# Load the .p7m file
with open(p7m_file_path, 'rb') as p7m_file:
@liucoj
liucoj / wordle.md
Created February 2, 2022 13:51 — forked from huytd/wordle.md
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@pixelchrome
pixelchrome / fail2ban.md
Last active October 24, 2025 16:31
fail2ban - cheatsheet

fail2ban

Installation - Ubuntu / Debian

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fail2ban