# /etc/stunnel/stunnel.conf
cert = /etc/stunnel/cert.pem
sslVersion = TLSv1 TLSv1.1 TLSv1.2
chroot = /var/run/stunnel/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker-escape-to-host() { | |
# run the 1st container, exposing the docker daemon's socket to it | |
docker run -it --rm --name "silly-overpowered-container" -v /var/run/docker.sock:/var/run/docker.sock debian:bookworm bash -c ' | |
# inside the 1st container, install docker CLI | |
apt update | |
apt -y install ca-certificates wget | |
cat <<EOF > /etc/apt/sources.list.d/docker.list | |
deb [signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// on Debian/Ubuntu: | |
// - install libqt4-dev | |
// - put file into a directory called mythhash | |
// - run: | |
// qmake -project | |
// qmake | |
// make | |
// C++ headers | |
#include <iostream> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 6d397e9f2fe1 plugins/google_addressbook/google_func.php | |
--- a/plugins/google_addressbook/google_func.php Tue Jan 13 19:18:00 2015 +0100 | |
+++ b/plugins/google_addressbook/google_func.php Tue Jan 13 21:00:52 2015 +0100 | |
@@ -143,7 +143,7 @@ | |
foreach($entry['gd:email'] as $email) { | |
list($rel, $type) = explode('#', $email['@attributes']['rel'], 2); | |
$type = empty($type) ? '' : ':'.$type; | |
- $record['email'.$type] = $email['@attributes']['address']; | |
+ $record['email'.$type][] = $email['@attributes']['address']; | |
} |
I hereby claim:
- I am wolfgangkarall on github.
- I am wolfgangkarall (https://keybase.io/wolfgangkarall) on keybase.
- I have a public key whose fingerprint is F11F 50F8 96B7 C8B5 6D25 AEDE BA1C 0955 172C C057
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from http://programmaticallyspeaking.com/lvm-recipe-determine-which-physical-volumes-a-logical-volume-is-located-on.html | |
lvs --segments -o +pe_ranges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# slightly adapted from http://askubuntu.com/a/43583 | |
apt-cache policy $(dpkg -l | awk '/^ii/{ print $2 }') | | |
awk '/^[^ ]/ { split($1, a, ":"); pkg = a[1] } | |
nextline == 1 { nextline = 0; printf("%-40s %-50s %s\n", pkg, $2, $3) } | |
/\*\*\*/ { nextline = 1 }' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- RsyncP.pm.orig 2010-07-25 22:50:02.000000000 +0200 | |
+++ RsyncP.pm 2013-08-22 23:18:15.000000000 +0200 | |
@@ -397,6 +397,12 @@ sub remoteStart | |
$rs->log("Fetching remote protocol") if ( $rs->{logLevel} >= 5 ); | |
return -1 if ( $rs->getData(4) < 0 ); | |
my $data = $rs->{readData}; | |
+ if ( $data =~ /^void endpwent\(\)\(3\) is not implemented on Android/ ) { | |
+ $rs->log("Working around Android bug") if ( $rs->{logLevel} >= 1 ); | |
+ $rs->{readData} = ''; | |
+ return -1 if ( $rs->getData(4) < 0 ); |