Skip to content

Instantly share code, notes, and snippets.

@cizordj
cizordj / NumberCollection.js
Created December 5, 2023 19:53
A <non-generic & strictly-typed> collection of numbers in pure Javascript
class NumberCollection {
#numbers;
constructor(numbers) {
if (
!Array.isArray(numbers) ||
!strings.every((str) => typeof str === "number")
) {
throw new Error(
"NumberCollection should be initialized with an array of numbers"
@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 / 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 *
ffplay -fflags nobuffer /dev/video0
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