Skip to content

Instantly share code, notes, and snippets.

View lefte's full-sized avatar
🎛️
Deploying CURT OrderHub

Erik Hanson lefte

🎛️
Deploying CURT OrderHub
View GitHub Profile
@PaulHibbertMasterOfTheUniverse
PaulHibbertMasterOfTheUniverse / bilresa_hybrid_dimmer.yaml
Last active March 2, 2026 16:56
Creates a Home Assistant automation for the Bilresa dimmer button from Ikea
blueprint:
name: IKEA BILRESA - Final Manual Speed
description: "Exact replica of manual automation speed. Cures the 'Missing input' error."
domain: automation
input:
bilresa_device:
name: BILRESA Remote
selector:
device: {}
scene1_light:
@peterjaap
peterjaap / varnish6.vcl
Last active February 18, 2026 05:28
Updated Magento 2 Varnish 6 VCL, in cooperation with Varnish Software, see Xkey soft purge version here; https://gist.github.com/peterjaap/7f7bf11aa7d089792e8fcc2fb34760fa
# A number of these changes come form the following PR's; , combines changes in https://github.com/magento/magento2/pull/29360, https://github.com/magento/magento2/pull/28944 and https://github.com/magento/magento2/pull/28894, https://github.com/magento/magento2/pull/35228, https://github.com/magento/magento2/pull/36524, https://github.com/magento/magento2/pull/34323
# VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6
# See the Xkey version here: https://gist.github.com/peterjaap/7f7bf11aa7d089792e8fcc2fb34760fa
vcl 4.1;
import std;
# The minimal Varnish version is 6.0
# For SSL offloading, pass the following header in your proxy server or load balancer: '/* {{ ssl_offloaded_header }} */: https'
@davidvthecoder
davidvthecoder / gist:5bdd6bfacce20de6134ae6301a754c9d
Created December 3, 2018 22:51
simple inline logger for magento 2 to do simple testing on things that cant dump to page.
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/logfile.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('message/var to log');
@tkfm-yamaguchi
tkfm-yamaguchi / lang.map.diff
Last active February 5, 2024 19:51
source-highlight's language definition file for YAML
---/usr/share/source-highlight/lang.map.old
+++/usr/share/source-highlight/lang.map
@@ -169,3 +169,5 @@
groovy = groovy.lang
json = json.lang
feature = feature.lang
+yaml = yaml.lang
+yml = yaml.lang

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r