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
/* sshbuf_playground.c | |
* | |
* All sshbuf code from openssh-portable for learning how sshbuf | |
* is used for storing ssh cert information during before signing it. | |
* | |
* Original Copyright Notice: | |
* | |
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | |
* Copyright (c) 2008 Alexander von Gernler. All rights reserved. | |
* Copyright (c) 2010,2011 Damien Miller. All rights reserved. |
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
#!/bin/bash | |
set -x | |
jailusr=$1 | |
pfix=jail | |
jaildir=/home/${pfix}_${jailusr} | |
devdir=${jaildir}/dev | |
bindir=${jaildir}/bin |
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
import random | |
import sys | |
from googletrans import Translator | |
import feedparser | |
import hashlib | |
from gtts import gTTS | |
from time import sleep |
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
#!/bin/bash | |
# debug: print all vars and function | |
env | |
set | |
# debug: print all commands during execution | |
set -x | |
TUNNEL_NAME="${PLUTO_CONNECTION}" |
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
#!/usr/bin/bash | |
PID_MAIN=$$ | |
# notify subshells on ctrl-c | |
trap "kill 0" SIGINT | |
function wrk() { while read data; do echo $1 _${data}_; done } | |
function shw() { | |
pid=$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
#!/usr/bin/bash | |
PID_MAIN=$$ | |
# notify subshell on ctrl-c | |
trap "kill 0" SIGINT | |
# spawn processing subshell via coproc | |
coproc WORK { while IFS= read x; do echo " processed: $x" ; done } | |
PID_WORKER=$! |
NewerOlder