You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
🇺🇦
Слава Україні!
Jakub Jirutka
jirutka
🇺🇦
Слава Україні!
I’m an open-source enthusiast and Alpine Linux developer.
Simple Keepalived notify script for Valkey/Redis master-replica failover
This is a simple solution for when you use keepalived with VRRP to failover between two instances of an application (e.g. nginx) that uses Redis/Valkey.
It doesn’t provide a high guarantee of data consistency, so it’s only suitable for caches, user sessions and similar!
keepalived.conf example:
vrrp_instance vi {
...
notify "/etc/keepalived/scripts/notify_valkey.sh"
}
Replace disk in the specified VM template in Proxmox with the given image.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script for compressing and later removing old FreeRADIUS' radacct log files with "-YYYYMMDD" suffix #freeradius #logrotate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example of PostgreSQL trigger function to sort and deduplicate an array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PostgreSQL constraint trigger to check if each array element is unique within the table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Článek „Koronavir – Fatální střet s realitou“ z webu mppraha.cz
Koronavir - Fatální střet s realitou
Problémy při prvním nástupu koronavirové krize by se ještě daly pochopit nedostatkem znalostí a zkušeností osob, které rozhodují o našich osudech. Následující příběh však popisuje reálnou situaci, kterou na vlastní kůži zažil v posledních čtrnácti dnech jeden z našich zaměstnanců bydlící ve Středočeském kraji. Informace jsou pravdivé a identita zaměstnance je nám samozřejmě známa.
11. 7. Můj dospělý syn navštívil s přáteli dnes již bohužel legendární pražský klub, přičemž neporušil žádné platné mimořádné opatření ve vztahu k šíření SARS-CoV-2.
11. 7. – 16. 7. V tomto období neměl žádné příznaky ani zdravotní komplikace, které by indikovaly, že byl nakažen.
16. 7. Objevila se mírná bolest hlavy, prostě nic co by nevyřešil, stejně jako dříve, obyčejný volně prodejný prášek proti bolesti.