Skip to content

Instantly share code, notes, and snippets.

@wujku
wujku / default.vcl
Created March 20, 2024 08:24
Advanced VCL with Varnish sharding example (Magento 2)
# VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6
vcl 4.0;
import directors;
import std;
# The minimal Varnish version is 6.0
# For SSL offloading, pass the following header in your proxy server or load balancer: 'X-Forwarded-Proto: https'
# Define probe used for heartbeat
@wujku
wujku / EdPrinter_letter_E_pen_program.py
Last active July 7, 2024 11:46
Draw the letter E with EdPrinter
#-------------Setup----------------
import Ed
Ed.EdisonVersion = Ed.V2
Ed.DistanceUnits = Ed.CM
Ed.Tempo = Ed.TEMPO_MEDIUM
#--------Your code below-----------
@wujku
wujku / FulltextIndexForTechnicalDescription.php
Created March 19, 2025 15:50
Create FULLTEXT index for localized column – Pimcore
<?php
namespace AppBundle\EventListener\ClassDefinition;
use Exception;
use Pimcore\Db;
use Pimcore\Event\Model\DataObject\ClassDefinitionEvent;
use Pimcore\Logger;
use Pimcore\Tool;
@wujku
wujku / README.md
Last active November 5, 2025 19:12
Install Certum Trusted Network CA 2 on Ubuntu 24.04

Install Certum Trusted Network CA 2 on Ubuntu 24.04

This guide explains how to manually install and trust the Certum Trusted Network CA 2 root certificate on Ubuntu 24.04 systems.


🧭 Why this is needed

Some systems (e.g. GitLab, Mattermost, Magento integrations, etc.) may fail SSL validation due to outdated or missing Certum root certificates.

You might see errors such as:

@wujku
wujku / display.yaml
Last active December 30, 2025 21:25
ESPHome Home Assistant HD44780 Display
esphome:
name: heat_display
on_boot:
priority: 200
then:
- wait_until:
condition:
wifi.connected:
timeout: 5s