Skip to content

Instantly share code, notes, and snippets.

@tropical32
tropical32 / Hyprland custom Mac-like accel_profile.py
Last active September 14, 2024 15:49
This acceleration profile aims to slow down the mouse acceleration for small movements for extra precision.
#!/usr/bin/env python3
# based on https://gist.github.com/fufexan/de2099bc3086f3a6c83d61fc1fcc06c9
import struct
import os
import sys
import math
# ===== PARAMETERS =====
@tropical32
tropical32 / rustls-localhost.md
Last active February 17, 2024 22:31
Generate a root CA and end-entity client certificate for use with Rustls in the localhost environment.

Generate an EC private key for the root certificate:

openssl-1.1 ecparam -name prime256v1 -genkey -noout -out root.key

Create a root certificate signing request:

openssl-1.1 req -new -key root.key -out root.csr -subj "/CN=Root CA"

Create a self-signed root certificate: