Skip to content

Instantly share code, notes, and snippets.

@jaminmc
jaminmc / install_openwrt_proxmox.sh
Last active November 13, 2025 08:40
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
@janeczku
janeczku / gosund_sp1.yaml
Last active March 21, 2023 09:44
Gosund SP1 + Esphome
substitutions:
devicename: gosund_sp1_01
friendlyname: SP1 Socket 01
sp1_current_resistor: "0.00221"
sp1_voltage_divider: "871"
#############
# Note: These numbers were found online
# BW SHP2 Current Resistor: 0.0028
# BW SHP2 Voltage Devider: 960
# Gosund SP1 Current Resistor: 0.00221
@sannonaragao
sannonaragao / About-the-notification-component.txt
Last active March 4, 2022 11:13
Use PrimeNG Message and Growl as a global service of the application.
PrimeNG has 2 different components to display messages:
The Messages component: https://www.primefaces.org/primeng/#/messages
The Growl component: https://www.primefaces.org/primeng/#/growl
notifications.component.ts - is the notification component with both growl and services from PrimeNg:
<p-growl [value]="growl"></p-growl>
<p-messages [value]="message"></p-messages>
notifications.service.ts - is the service to be used to send messages do Growl and Messages.