Skip to content

Instantly share code, notes, and snippets.

@luis-guilherme
luis-guilherme / All open windows and doors
Created October 18, 2025 16:36 — forked from EverythingSmartHome/All open windows and doors
A collection of useful templates for Home Assistant dashboards
{{ states.binary_sensor
| selectattr('attributes.device_class', 'in', ['door','window'])
| selectattr('state', 'equalto', 'on')
| list | count }}

How to update IP addressing on a Proxmox Cluster

When you change something in your network configuration, rather than its the gateway or the IP addressing, you may come under serious troubleshooting on your Proxmox Cluster, so this document will guide you into the necessary steps needed to update your network settings on Proxmox.

Note : You must follow these steps on every single node of your cluster to let it able to handle the synchronization between each node once.

So firstly, you will need to change the network interface configuration of the system; it is preferable for you to set a static IP:

/etc/network/interfaces
@luis-guilherme
luis-guilherme / install_openwrt_proxmox.sh
Created March 14, 2025 17:47 — forked from jaminmc/install_openwrt_proxmox.sh
Install OpenWrt in a Container on Proxmox 8+!
#!/bin/bash
# Script to create an OpenWrt LXC container in Proxmox
# Downloads from openwrt.org with latest stable or snapshot version, detects bridges/devices, IDs, configures network, sets optional password
# Pre-configures WAN/LAN in UCI, includes summary and confirmation, optional LuCI install for snapshots with apk
# Default resource values
DEFAULT_MEMORY="256" # MB
DEFAULT_CORES="2" # CPU cores
DEFAULT_STORAGE="0.5" # GB
@luis-guilherme
luis-guilherme / Proxmox reload services
Created February 5, 2025 16:36 — forked from kevin39/Proxmox reload services
Proxmox reload services properly (services order is important)
service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart
@luis-guilherme
luis-guilherme / cloudflare.md
Created January 2, 2024 23:25 — forked from CharlesGodwin/cloudflare.md
I Don't Need Port Forwarding and Don't Care About CGNAT

I Don't Need Port Forwarding and Don't Care About CGNAT

This was rewritten 2022-11-30

This article is for users that want all these features:

  • To connect to home network from anywhere
  • Can connect without any port forwarding; either by choice or internet provider can't or won't provide access
  • No setup or configuration or installation on client machine
  • No enrolment / registration required
@luis-guilherme
luis-guilherme / .minttyrc
Created November 28, 2023 12:36 — forked from toruta39/.minttyrc
mintty config (msys2)
RowSpacing=2
FontHeight=10
Locale=C
Charset=UTF-8
Transparency=low
Font=JetBrains Mono
BoldAsFont=yes
FontSmoothing=default
ForegroundColour=160,160,160
BackgroundColour=27,29,30
@luis-guilherme
luis-guilherme / mountnfs.sh
Created May 15, 2023 21:25 — forked from ondrejh/mountnfs.sh
Bash script: Wakeup and mount NFS server.
#!/bin/bash
#
# This script should do:
#
# 1) test if nfs folder is mounted and exit 0 if yes
# 2) try to mount it and exit 0 if success
# 3) try to wake the server if not possible to mount
# 4) wait while its not woked (pinging)
# 5) try againt 2-4 several times
  1. Run on a terminal
 ssh -D 1337 -q -C -N <user>@ip -v
  1. Firefox:
  • Install FoxyProxy
  • Enter new configuration:
    • type: socks5
  • host: localhost
@luis-guilherme
luis-guilherme / README.md
Created April 9, 2022 22:08 — forked from djfdyuruiry/README.md
WSL 2 - Fix DNS Issues

Fix DNS Issues in WSL 2

This guide will help overcome the DNS issues present in WSL 2 while still making the Windows host IP autogenerated by WSL available for use. Note: this was tested on Windows 10 Build 2004, running Ubuntu 20.04 LTS in WSL 2.

  • Open a WSL terminal

  • Copy the contents of configure-wsl-dns.sh to /opt/configure-wsl-dns.sh:

sudo nano /opt/configure-wsl-dns.sh

@luis-guilherme
luis-guilherme / docker-compose.yml
Created March 25, 2022 22:37 — forked from gam-phon/docker-compose.yml
pi-hole and DNS over HTTPS docker-compose
version: "3"
# Thanks to https://visibilityspots.org/dockerized-cloudflared-pi-hole.html
# echo "alias dns-up='cd /path/to/folder; docker-compose up -d'" >> ~/.bash_profile
services:
dns-over-https:
container_name: dns-over-https
image: fardog/secureoperator:latest # google dns
# image: visibilityspots/cloudflared:amd64 # cloudflare dns
restart: unless-stopped
networks: