Skip to content

Instantly share code, notes, and snippets.

@cizordj
cizordj / cloudflare-resolved.conf
Created August 11, 2024 14:38
systemd resolved cloudflare
[Resolve]
DNS=2606:4700:4700::1001#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 1.1.1.1#cloudflare-dns.com
DNSOverTLS=yes
DNSSEC=true
MulticastDNS=yes
ResolveUnicastSingleLabel=no
VerifyHostKeyDNS=yes
Host github.com
PKCS11Provider /usr/lib64/pkcs11/libtpm2_pkcs11.so
PasswordAuthentication no
AddKeysToAgent yes
ControlPersist 10
Host codeberg.org
PKCS11Provider /usr/lib64/pkcs11/libtpm2_pkcs11.so
PasswordAuthentication no
AddKeysToAgent yes
ffplay -fflags nobuffer /dev/video0
@cizordj
cizordj / systemd-resolved-adguard-tls.conf
Created December 26, 2023 10:47
systemd-resolved-adguard-tls.conf
# cp this to /etc/systemd/resolved.conf.d/
[Resolve]
DNS=94.140.14.49#your-private-dns-name.d.adguard-dns.com 2a10:50c0::ded:ff#your-private-dns-name.d.adguard-dns.com
DNSOverTLS=yes
DNSSEC=allow-downgrade
FallbackDNS=1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
MulticastDNS=yes
@cizordj
cizordj / NumberCollection.js
Last active August 11, 2024 14:42
A <non-generic & strictly-typed> collection of numbers in pure Javascript
class NumberCollection {
#numbers;
constructor(numbers) {
if (
!Array.isArray(numbers) ||
!numbers.every((str) => typeof str === "number")
) {
throw new Error(
"NumberCollection should be initialized with an array of numbers"
@cizordj
cizordj / 99blacklisted-packages
Last active March 13, 2024 01:20
Blacklist the systemd from your Debian once for all
Package: systemctl
Pin: release *
Pin-Priority: -1
Package: systemd
Pin: release *
Pin-Priority: -1
Package: udisks2
Pin: release *