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 Apr 18, 2019
openssh-{7.7,7.8,7.9,8.0}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 16ac7f14a1491650c345542098faaf60dad568e0 Mon Sep 17 00:00:00 2001
From: Leon Klingele <git@leonklingele.de>
Date: Thu, 18 Apr 2019 01:51:43 +0200
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 Jun 29, 2019
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
main() {
# names of latest versions of each package
local NGINX_VERSION=1.17.3
local VERSION_NGINX=nginx-$NGINX_VERSION
local VERSION_LIBRESSL=libressl-3.0.0
local VERSION_PCRE=pcre-8.43
You can’t perform that action at this time.