Skip to content

Instantly share code, notes, and snippets.

View wrench32's full-sized avatar

Kamil wrench32

  • 12:12 (UTC +01:00)
View GitHub Profile
@wrench32
wrench32 / 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 =====
@wrench32
wrench32 / 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: