Skip to content

Instantly share code, notes, and snippets.

View leonklingele's full-sized avatar
💭
🫨

leonklingele

💭
🫨
View GitHub Profile
This file has been truncated, but you can view the full file.
$ /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang++ -DBINDIR=L"/usr/local/Cellar/fish/3.1.2/bin" -DCMAKE_BINARY_DIR="/private/tmp/fish-20200728-69439-14nyq6w/fish-3.1.2" -DCMAKE_SOURCE_DIR="/private/tmp/fish-20200728-69439-14nyq6w/fish-3.1.2" -DDATADIR=L"/usr/local/Cellar/fish/3.1.2/share" -DDOCDIR=L"/usr/local/Cellar/fish/3.1.2/share/doc/fish" -DLOCALEDIR="/usr/local/Cellar/fish/3.1.2/share/locale" -DPREFIX=L"/usr/local/Cellar/fish/3.1.2" -DSYSCONFDIR=L"/usr/local/Cellar/fish/3.1.2/etc" -D_REENTRANT -D_UNICODE=1 -I/tmp/fish-20200728-69439-14nyq6w/fish-3.1.2 -I/tmp/fish-20200728-69439-14nyq6w/fish-3.1.2/pcre2-10.32 -Wall -Wextra -Wno-implicit-fallthrough -Wno-comment -Wno-address -Wno-strict-aliasing -Wno-redundant-move -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.9 -fno-exceptions -std=gnu++11 /tmp/fish-20200728-69439-14nyq6w/fish-3.1.2/src/function.cpp -E | pbcopy
$ pbpaste
diff --git a/Makefile.in b/Makefile.in
index e10f374..37a6e59 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -59,6 +59,7 @@ SED=@SED@
ENT=@ENT@
XAUTH_PATH=@XAUTH_PATH@
LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
+KEYCHAIN_LDFLAGS=@KEYCHAIN_LDFLAGS@
EXEEXT=@EXEEXT@
@leonklingele
leonklingele / 0002-Apple-keychain-integration-other-changes.patch
Last active September 15, 2025 07:45
Homebrew openssh-7.3p1 patches
--- a/Makefile.in 2016-09-29 10:37:08.000000000 +0200
+++ b/Makefile.in 2016-09-29 11:02:49.000000000 +0200
@@ -59,6 +59,7 @@ SED=@SED@
ENT=@ENT@
XAUTH_PATH=@XAUTH_PATH@
LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
+KEYCHAIN_LDFLAGS=@KEYCHAIN_LDFLAGS@
EXEEXT=@EXEEXT@
MANFMT=@MANFMT@
$ pwd
$HOME/.pick/
$ pick sync pick.safe
Enter your master password for safe '$HOME/.pick/pick.safe'
panic: assignment to entry in nil map
goroutine 1 [running]:
github.com/bndw/pick/commands.Sync(0xc420018cb0, 0x1, 0x1, 0xc420090480, 0x1136b24, 0xc420090480)
/tmp/pick-pass-20170316-81499-1m2r226/pick-0.4.0/vendor/src/github.com/bndw/pick/commands/sync.go:37 +0x157
@leonklingele
leonklingele / typescript
Last active September 15, 2025 07:41
bash + fzf: Line wrapping issues
Script started on Sun Aug 20 23:41:16 2017
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy `__fzf_history__`








@leonklingele
leonklingele / contabo-vps.bench
Created February 28, 2017 19:32
Contabo: VPS M SSD benchmark
# Server bench
## Contabo: VPS M SSD (8,99€ / Monat)
$ speedtest-cli
Download: 92.62 Mbit/s
Upload: 69.65 Mbit/s
$ sysbench --test=cpu --cpu-max-prime=20000 run
Test execution summary:
@leonklingele
leonklingele / server.conf
Created August 20, 2016 08:52
Spreed WebRTC minimal config
; Minimal Spreed WebRTC for Nextcloud server configuration
[app]
; Change the next four values
sessionSecret = the-default-secret-do-not-keep-me
encryptionSecret = tne-default-encryption-block-key
serverToken = i-did-not-change-the-public-token-boo
extra = /absolute/path/to/nextcloud/apps/spreedme/extra
; Do not change these three values
plugin = extra/static/owncloud.js
2018-01-09 05:41:33.078 [P2P6] INFO stacktrace src/common/stack_trace.cpp:120 Exception: char const*
2018-01-09 05:41:33.078 [P2P6] INFO stacktrace src/common/stack_trace.cpp:121 Unwound call stack:
2018-01-09 05:41:33.088 [P2P6] INFO stacktrace src/common/stack_trace.cpp:159 [1] /root/monero/build/release/bin/monerod:__cxa_throw+0xfe [0x55e0048f75fe]
2018-01-09 05:41:33.088 [P2P6] INFO stacktrace src/common/stack_trace.cpp:159 [2] /root/monero/build/release/bin/monerod:int epee::net_utils::buff_to_t_adapter<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, cryptonote::NOTIFY_REQUEST_FLUFFY_MISSING_TX::request, cryptonote::cryptonote_connection_context, boost::_bi::bind_t<int, boost::_mfi::mf3<int, cryptonote::t_cryptonote_protocol_handler<cryptonote::core>, int, cryptonote::NOTIFY_REQUEST_FLUFFY_MISSING_TX::request&, cryptonote::cryptonote_connection_context&>, boost::_bi::list4<boost::_bi::value<cryptonote::t_cryptonote_protocol_handler<cryptonote::core>*>, boost::arg<1>, boost::arg<2
diff --git a/sshfs.c b/sshfs.c
index fb566f4..d1c1fb2 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3862,7 +3862,11 @@
}
#endif /* __APPLE__ */
- sshfs.blksize = 4096;
+#ifdef __APPLE__
@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