Skip to content

Instantly share code, notes, and snippets.

version: "3"
services:
nginx-proxy-manager:
image: jc21/nginx-proxy-manager:latest
container_name: nginx-proxy-manager
restart: unless-stopped
ports:
- "80:80"
- "443:443"
@henols
henols / prompts.md
Last active May 13, 2025 07:41
Gemini Code Assist Demo

Firestarter UI Product Requirements.md


Summarize and explain the task to be done

@GoogleDocs Provide a concise summary of the key features and main requirements from the 'Firestarter UI - Product Requirements Document'

Generate the code from the PRD

The target system is: Generic - -
The host system is: Linux - 6.5.0-4-amd64 - x86_64
Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded.
Compiler: /home/henrik/.platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
Build flags: -mlongcalls;-Wno-frame-address;
Id flags:
The output was:
0
@henols
henols / gist:4d059d722310c4af9ae164504b08c940
Created August 11, 2021 14:52
Adding US keyboard with Swedish letters, Add to file /usr/share/X11/xkb/symbols/se
partial alphanumeric_keys
xkb_symbols "us" {
include "us"
name[Group1]="Swedish (US, with Swedish letters)";
key <AC10> { [ NoSymbol, NoSymbol, odiaeresis, Odiaeresis ] };
key <AC11> { [ NoSymbol, NoSymbol, adiaeresis, Adiaeresis ] };
key <AD11> { [ NoSymbol, NoSymbol, aring, Aring ] };
version: '3'
services:
hass:
container_name: home-assistant
restart: always
image: homeassistant/home-assistant:latest
ports:
- "8123:8123/tcp"
network_mode: host
#!/bin/bash
# See https://forum.xda-developers.com/oneplus-6t/development/recovery-unofficial-twrp-touch-recovery-t3861482
mauronofrio_twrp=1
if [ "$mauronofrio_twrp" -eq "1" ]; then
# https://sourceforge.net/projects/mauronofrio-twrp/files/Fajita/twrp-3.4.0-11-fajita-Q-mauronofrio.img
# https://sourceforge.net/projects/mauronofrio-twrp/files/Fajita/twrp-3.4.0-11-fajita-installer-mauronofrio.zip
twrp_version='3.4.0-11'
#!/bin/bash
# usage function
function usage()
{
echo
echo " Usage: $progname [--release-version STR] [--snapshot-version STR] [--branch STR] [--dry-run] --jira-release NUM"
echo
echo " optional arguments:"
echo " -h, --help show this help message and exit"
[{"id":"fbbb0565.0444f8","type":"emoncms-server","server":"http://192.168.1.223/emon","name":"aceone.se"},{"id":"95bbe5.ff6a4418","type":"mqtt-broker","broker":"localhost","port":"1883","clientid":""},{"id":"632f2398.9cd0dc","type":"mqtt in","name":"Temperature","topic":"+/temperature/#","broker":"95bbe5.ff6a4418","x":75,"y":127,"z":"36103291.c9efce","wires":[["a673b46d.598c48","32269cac.cdd964","fc267980.03d988"]]},{"id":"82ed25fe.7d12d8","type":"mqtt in","name":"Energy Consumption","topic":"+/powermeter/#","broker":"95bbe5.ff6a4418","x":100.5,"y":92,"z":"36103291.c9efce","wires":[["a673b46d.598c48"]]},{"id":"81afa9ca.7e5058","type":"emoncms","name":"Emoncms","emonServer":"fbbb0565.0444f8","topic":"","nodegroup":"","x":594,"y":112,"z":"36103291.c9efce","wires":[]},{"id":"a673b46d.598c48","type":"function","name":"Build Topic for Emon","func":"// The received message is stored in 'msg'\n// It will have at least a 'payload' property:\n// console.log(msg.payload);\n// The 'context' object is available to store