Skip to content

Instantly share code, notes, and snippets.

leonklingele

Block or report user

Report or block leonklingele

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leonklingele
leonklingele / 0001-apple-keychain-integration-other-changes.patch
Last active Feb 15, 2020
openssh-{7.7,7.8,7.9,8.0,8.1,8.2}p1 patches for storing SSH passphrases in the OS X keychain. https://github.com/leonklingele/homebrew-dupes
View 0001-apple-keychain-integration-other-changes.patch
From eefbdc8d0c72b6608d9f265294e6d8e56a5ed849 Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Sat, 15 Feb 2020 10:23:58 +0100
Subject: [PATCH 1/2] apple-keychain-integration-other-changes
---
Makefile.in | 18 +-
audit-bsm.c | 7 +-
auth.c | 2 +-
authfd.c | 25 ++
@leonklingele
leonklingele / client.sh
Last active Apr 25, 2020
netcat – encrypt transfer with openssl
View client.sh
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
View build_nginx.sh
#!/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
You can’t perform that action at this time.