Skip to content

Instantly share code, notes, and snippets.

View vlaci's full-sized avatar

László Vaskó vlaci

View GitHub Profile
@vlaci
vlaci / generate_x25519.py
Created August 2, 2022 17:26
Generate x25519 certificate
#!/usr/bin/env python
import datetime as dt
from cryptography import x509
from cryptography.hazmat.backends.openssl import backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import ed25519, x25519
from cryptography.x509.oid import NameOID
issuer_private_key = ed25519.Ed25519PrivateKey.generate()
@vlaci
vlaci / response-filter.py
Created January 5, 2022 14:12
Filter AAAA record replies with unbound
AAA_BLOCKLIST = [
# ADD domains here
]
def init_standard(id, env):
log_info(
f"response-filter: AAAA response filter initialized; blocked_urls={AAAA_BLOCKLIST!r}"
)
return True
@vlaci
vlaci / gpg.pub
Last active August 4, 2021 21:32
gpg.pub
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF5lHaEBEADXC5jNHkI46P26BD5Tzye3OYpygg27PydYBq51To2cQCW6PKxp
ZweAlKWSeIfpEIax7JsKws2yHu/cIw8Yr7xaptP9qrVNxiSyIyiROdU7xVuPB8gh
J7UzRw+KQQaCahWGqe3LH2CTCuu8hq+HRWgu8OogiW41T3qR2eudhkcvWRZkMDbt
A2kIXpKaPGzM0msWKAvI8itndqD3BrhzEAfOtCZsCpW15yW7W13FeYZbitq7nWsA
Y+L5fNsAKorAxAv43GH2v/Zo5mBHYq5d1wRFXuvq9M2lstAiuk439odr22426MAg
yDfRskS7Sbc74F6SHBLdc+1pabLXSEWUm1kE+I2PY00HHPXEfP8b+2YyIG9QRORl
bVyB6TyCKvgOF8su4rhxjB2V3uZEPm3L3drso+gHE9Ip/JD8HLJF7y+P7/wNSMOb
ZMjfiwy/iIEN+jdHC4cjTV+qDMMlMRyDHnbB5aUC452e2e+k+cuMA4JAvFpoyz9W
@vlaci
vlaci / Makefile
Last active January 13, 2021 17:44
Makefile template with colorful help target (requires gawk)
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
@vlaci
vlaci / pam-u2f.nix
Last active March 19, 2018 09:09
Customization to allow using U2F as second factor for authentication in NixOS. See https://github.com/NixOS/nixpkgs/issues/29172 for details
# Usage example in configuration.nix:
#
# {
# imports = [
# ./pam-u2f.nix
# ];
#
# hardware.u2f.enable = true;
# security.pam.enableU2F = true;
# security.pam.use2Factor = true;

Keybase proof

I hereby claim:

  • I am vlaci on github.
  • I am vlaci (https://keybase.io/vlaci) on keybase.
  • I have a public key ASA6dBxWXbCuzXSis8ZFm7VSAE0N3M4SJeqbw_YrBJFe2wo

To claim this, I am signing this object: