Skip to content

Instantly share code, notes, and snippets.

View ltakens's full-sized avatar

Ludolf Takens ltakens

View GitHub Profile
@ltakens
ltakens / fd_watchdog.sh
Last active May 2, 2025 16:09
Linux Open File Descriptor Watchdog
#!/bin/bash
# ===============================================================
# Open File Descriptor Watchdog
# ===============================================================
#
# This script monitors the number of open file descriptors (FDs)
# per process on a Linux server. If any process exceeds the
# defined threshold, it sends a Telegram alert with process info.
#
@ltakens
ltakens / python_email_address_finder.py
Created January 11, 2023 21:22
Permissive Python email regex allowing some common obfuscations. E.g. "(at)" and "(dot)".
"""Here are some keywords one might use to find this email regex:
- Python etract email addresses using regular expression
- Python extract email from text
- How to extract email addresses from a block of text using Python
"""
import doctest
import re
{% comment %}
Do you have customized form fields on the product pages of your Shopify store?
Shopify's order confirmation email does not automatically display the values the customer inputs. Here's how to includes them manually.
1. Go to Settings in the Shopify admin
2. Click Notifications
3. Click the link Order confirmation to open the template editor
4. Now copy and paste this code in the template right in the section where the order's line items are rendered.
Look for a line that contains {{line.variant.title}}. You'll want to experiment with the code location.