Skip to content

Instantly share code, notes, and snippets.

@meehatpa
meehatpa / proxmox_web_gui_api_lets_encrypts_acme_alias_mode_duck_dns-english.md Step-by-step guide to configure Proxmox Web GUI/API with Let’s Encrypt certificate and automatic validation using the ACME protocol in DNS alias mode with DNS TXT validation redirection to Duck DNS.

Step-by-step guide to configure Proxmox Web GUI/API with Let’s Encrypt certificate and automatic validation using the ACME protocol in DNS alias mode with DNS TXT validation redirection to Duck DNS.


Objective

We want to use a certificate in Proxmox GUI/API issued for free by a Certificate Authority trusted by default in browsers and operating systems. The chosen Certificate Authority will be Let's Encrypt [1]. Since the issued certificates are valid for only 90 days, automating the certificate renewal process is crucial. For this purpose, the Automatic Certificate Management Environment (ACME, RFC8555) protocol will be used [2].


esphome:
name: d1-mini
friendly_name: D1 mini
esp8266:
board: d1_mini
# Enable logging
logger:
level: INFO
@meehatpa
meehatpa / ccache.conf
Created March 27, 2024 12:23
iccecream ccache config
prefix_command=icecc
prefix_command_cpp=icecc
@meehatpa
meehatpa / gist:1b368acc82a3f80a8cb3ccd11b504342
Created December 24, 2023 13:28
site2site nat wg client
[Interface]
Address = 10.0.0.x/32
PrivateKey = xxx
ListenPort = 51820
DNS = xx
PreUp = sysctl -w net.ipv4.ip_forward=1
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
[Peer]
@meehatpa
meehatpa / compose.yaml
Created December 12, 2023 15:48
Pi-hole on wireguard client
---
version: "2.1"
networks:
private_network:
name: internal
ipam:
driver: default
config:
- subnet: 10.100.0.0/24
services:
@meehatpa
meehatpa / tree-red.cpp
Last active November 27, 2023 07:48
tree reduction
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <thread>
#include <mutex>
#include <cstring>
constexpr bool isPowerOf2(int n) { return (!(n & (n - 1))); }
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
using namespace std;
const int M = 10;
const int N = 64;
float simple(float A[][N], int m, int n) {
float sum = 0;
@meehatpa
meehatpa / mount.sh
Created May 14, 2023 15:40
rclone docker volume
docker plugin install rclone/docker-volume-rclone:amd64 args="-v" --alias rclone --grant-all-permissions
docker volume create storj -d rclone -o type=s3 -o s3-provider=Other -o s3-access-key-id=xxx -o s3-secret-access-key=yyy -o s3-endpoint=https:
//gateway.storjshare.io
# Test
docker run --rm -it -v storj:/mnt --workdir /mnt ubuntu:latest bash
@meehatpa
meehatpa / doh-esni-firefox.md
Created May 14, 2023 12:44 — forked from maxyudin/doh-esni-firefox.md
DNS-over-HTTPS (DoH) and Encrypted SNI (ESNI) in Firefox

DNS-over-HTTPS (DoH) and Encrypted SNI (ESNI) in Firefox

Simple (no ESNI)

  • Go to Menu ⇒ Prefereces (or visit about:preferences)
    • Scroll down to the Network Settings and press Settings button
    • Check Enable DNS over HTTPS
    • Choose a provider or set a custom one from the publicly available servers list

Test your settings!

@meehatpa
meehatpa / docker-compose.yaml
Created May 7, 2023 12:53
Authelia docker-compose
authelia:
container_name: authelia
image: authelia/authelia
restart: unless-stopped
networks:
- traefik-net
expose:
- 9092
volumes:
- ./authelia/config:/config