Skip to content

Instantly share code, notes, and snippets.

View ermshiperete's full-sized avatar

Eberhard Beilharz ermshiperete

View GitHub Profile
@ermshiperete
ermshiperete / patch-snap-chromium.sh
Created February 20, 2025 16:55
Patch gnome-42-2204 snap package
#!/bin/bash
# Replace the ibus library (im-ibus.so) included in the gnome-42-2204 snap with
# a newer one that fixes surrounding text detection.
set -e
COLOR_RED='\x1b[31m' # $(tput setaf 1)
COLOR_GREEN='\x1b[32m' # $(tput setaf 2)
COLOR_BLUE='\x1b[34m' # $(tput setaf 4)
COLOR_RESET='\x1b(B\x1b[m' # $(tput sgr0)
curl --request POST \
--url https://api.brevo.com/v3/emailCampaigns \
--header 'accept: application/json' \
--header "api-key: $BREVO_API_KEY" \
--header 'content-type: application/json' \
--data '
{
"inlineImageActivation": false,
"sendAtBestTime": false,
"abTesting": false,
@ermshiperete
ermshiperete / createcampaign.py
Created October 11, 2024 09:12
Brevo python example
#!/usr/bin/python3
# Installation:
# - Create virtual environment with `virtualenv .venv`
# - activate it `. .venv/bin/activate`
# - install brevo-python: `pip3 install brevo-python`
# - API key needs to be in BREVO_API_KEY environment variable
import os
import brevo_python
from brevo_python.rest import ApiException
Shellcheck bug
@ermshiperete
ermshiperete / .gitignore
Last active December 9, 2022 10:58
Repro project for Nunit3TestAdapter #1040
.idea/
bin/
obj/
*DotSettings.user
@ermshiperete
ermshiperete / Gottesdienst.yml
Last active March 30, 2025 10:40
Gottesdienste
2025-04-13:
name: Konfirmation
announce: Konfirmationsgottesdienst
artist: 'Pfr. Rainer Heuschneider'
start: '10:00'
2025-04-20:
artist: 'Pfr. Rainer Heuschneider'
start: '10:00'
2025-04-27:
name: eXtrakt-Gottesdienst
@ermshiperete
ermshiperete / SimpleHTTPServerWithUpload.py
Created January 1, 2022 15:53 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
#!/bin/bash -e
# Submit a change for review
# Allow single-arg options to be passed to push -- principally -n
OPTIONS=()
while [[ "$1" == -* ]]
do
OPTIONS+=("$1")
shift
@ermshiperete
ermshiperete / .gitignore
Last active November 24, 2020 16:43
PR998 test app
.idea/
bin/
obj/

Investigating why building with .NET 5 builds a x86 executable instead of AnyCPU (as net461 did)