Skip to content

Instantly share code, notes, and snippets.

View mrkrash's full-sized avatar

Mario Ravalli mrkrash

View GitHub Profile
@gushcs
gushcs / 6ktlm-g3.yaml
Last active January 16, 2025 22:24
solarman inverter definition for SOFAR KTLM G3 to be used with HomeAssistant Solarman integration
#Ps. only "Alert sensor" not working
# Sofar 3.3-12KTLM-G3
# Note: no modbus energy meter connected
requests:
- start: 0x0400
end: 0x042E
mb_functioncode: 0x03
- start: 0x0480
@philipstanislaus
philipstanislaus / sane-caching.nginx.conf
Last active January 1, 2025 14:28
Sample Nginx config with sane caching settings for modern web development
# Sample Nginx config with sane caching settings for modern web development
#
# Motivation:
# Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools.
# These tools automatically deactivate all sorts of caching for you, so you always have a fresh
# and juicy version of your assets available.
# At some point, however, you want to show your work to testers, your boss or your client.
# After you implemented and deployed their feedback, they reload the testing page – and report
# the exact same issues as before! What happened? Of course, they did not have developer tools
# open, and of course, they did not empty their caches before navigating to your site.