Skip to content

Instantly share code, notes, and snippets.

View leonklingele's full-sized avatar
💭
🫨

leonklingele

💭
🫨
View GitHub Profile
@leonklingele
leonklingele / client.sh
Last active July 19, 2023 20:35
netcat – encrypt transfer with openssl
IP="127.0.0.1"
PORT="8877"
SHARED_SECRET="shared secret"
OPENSSL="/usr/local/opt/libressl/bin/openssl"
OPENSSL_CMD="$OPENSSL enc -a -A -aes-256-gcm"
while IFS= read -r MSG; do
echo "$MSG" | $OPENSSL_CMD -e -k "$SHARED_SECRET"
echo
@leonklingele
leonklingele / 0001-apple-keychain-integration-other-changes.patch
Last active May 15, 2022 14:09
openssh-{7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0}p1 patches for storing SSH passphrases in the OS X keychain. https://github.com/leonklingele/homebrew-dupes
From 056f784b90d67dcd76aa87aa092d1ecd281b1480 Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Thu, 24 Feb 2022 21:50:11 +0100
Subject: [PATCH 1/2] apple-keychain-integration-other-changes
---
Makefile.in | 16 +-
audit-bsm.c | 7 +-
auth.c | 2 +-
authfd.c | 25 ++
@leonklingele
leonklingele / ebay-kleinanzeigen-notifier.js
Last active February 7, 2022 20:56
Violentmonkey / Greasemonkey / Tampermonkey script to notify on new ads on eBay Kleinanzeigen
// ==UserScript==
// @name eBay Kleinanzeigen Notifier
// @namespace www.ebay-kleinanzeigen.de
// @description eBay Kleinanzeigen Notifier
// @version 1.0.0
// @icon https://www.ebay-kleinanzeigen.de/static/img/favicon.png
// @match https://www.ebay-kleinanzeigen.de/*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addStyle
From ac3f94f342abc50b57285d749229308926ba7324 Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Wed, 15 Dec 2021 11:32:24 +0100
Subject: [PATCH 1/5] Revert "runtime: use clock_gettime instead of
gettimeofday on darwin"
This reverts commit ae76f6e96216f352cc5021a4c8a7d879c4cb6873.
---
src/runtime/sys_darwin.go | 2 +-
src/runtime/sys_darwin_amd64.s | 8 +++-----
#!/usr/bin/env bash
set -eufo pipefail
SUDO=""
if [ "$EUID" -ne 0 ]; then
SUDO="sudo"
if ! [ -x "$(command -v $SUDO)" ]; then
echo "Error: Running script as non-root and $SUDO is not installed. Exiting." >&2
exit 1
@leonklingele
leonklingele / gist:a221d95d759310a744eec37fc95c4729
Created February 17, 2021 08:56
0001-Revert-runtime-use-clock_gettime-instead-of-gettimeo.patch
From b27c969f972ae942dba6be33b21f0110adcf7f5f Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Wed, 17 Feb 2021 09:55:58 +0100
Subject: [PATCH] Revert "runtime: use clock_gettime instead of gettimeofday on
darwin"
This reverts commit ae76f6e96216f352cc5021a4c8a7d879c4cb6873.
---
src/runtime/sys_darwin.go | 6 +++---
src/runtime/sys_darwin_amd64.s | 8 +++-----
@leonklingele
leonklingele / key-bindings.bash
Last active August 10, 2018 09:06
fzf key-bindings.bash: ignore duplicates
# ..
# Requires https://st.aticpan.org/source/PERLANCAR/App-nauniq-0.10/script/nauniq
# SHA256: 046d69b8b1ed74aaff38565f08acc9781e7404fa240b2d091601043a5838f9f0
# gsed -i 's?#!perl?#!/usr/bin/env perl?' nauniq
# patch -p1 nauniq < nauniq-ignore-pattern.patch
__fzf_history__() (
local line
shopt -u nocaseglob nocasematch
From acb5bb89c0c6ebbf2b8b0b7978a5006189c04944 Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Wed, 4 Oct 2017 03:33:36 +0200
Subject: [PATCH 1/3] 0001-apple-keychain-integration-other-changes.patch
---
Makefile.in | 18 +-
audit-bsm.c | 7 +-
auth-pam.c | 5 +-
auth.c | 2 +-
From 32a85e260f85fc820fd026637ad38e2230d2887f Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Tue, 21 Mar 2017 22:37:56 +0100
Subject: [PATCH 1/3] 0001-apple-keychain-integration-other-changes.patch
---
Makefile.in | 18 +-
audit-bsm.c | 7 +-
auth-pam.c | 5 +-
auth.c | 2 +-
@leonklingele
leonklingele / netcup-easter-offers-2017.txt
Last active March 21, 2018 00:18
netcup easter offers 2017
- .de-Domain 14 Cent Eine .de-Domain für nur 14 Cent/Monat bei 2 Euro Einrichtungsgebühr
https://www.netcup.de/bestellen/produkt.php?produkt=1810&hiddenkey=e6a58f069b28d04cd1e332be2684be77
- .at-Domain 9,90 € pro Jahr! Zu Ostern bekommen Sie eine .at-Domain um 17,5% reduziert - Normalpreis 12€/Jahr!
https://www.netcup.de/bestellen/produkt.php?produkt=1811&hiddenkey=73d67dbaefe7222f61bf694e5d65e793
- VPS A Ostern 2017 + Intel Dual-Core + 1 GB DDR3 RAM + 200 GB SATA + Fernwartungskonsole + und vieles mehr Nur 1,44€ / Monat
https://www.netcup.de/bestellen/produkt.php?produkt=1812&hiddenkey=9a1ef3d6ff803c6cae52bd8be3f36118
- Root-Server Ostern 2017 + 2 dedizierte Kerne + Intel Xeon E5-2660V3 + 2 GB DDR4 RAM + 4 x 100 GB SAS + RAID10 + und vieles mehr Nur 4,66€ / Monat
https://www.netcup.de/bestellen/produkt.php?produkt=1813&hiddenkey=552b395c8acb1c4016fc93fd6a3c8f1d
- RS 4000 SSD 3 Monate kostenlos + 8 dedizierte Kerne + Intel Xeon E5-2680V4 + 24 GB DDR4 RAM + 120 GB SSD + RAID10 + und vieles mehr die ers