I hereby claim:
- I am cmad on github.
- I am cmad (https://keybase.io/cmad) on keybase.
- I have a public key ASDoyVu8dgD0eDujWYD9U1tgLljeOQ4GvChP-lrnxfrD-wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # this function is a ticket to hell, each time you connect | |
| # somewhere, it records a log of when you connect and disconnect | |
| ssh() { | |
| # create a file, for ssh to let us know the hostname | |
| ssh_hostname_tmp=$(mktemp) | |
| ssh_username_tmp=$(mktemp) | |
| ssh_port_tmp=$(mktemp) | |
| # why do I need a fifo, see below, hint: controll flow from hell |
| #!/bin/bash | |
| # micro fileserver | |
| echo "exportfs: server initiated" | logger | |
| if [ "$#" -ne 1 ]; then | |
| echo "Usage: exportfs EXPORT_BASE" | |
| exit | |
| fi |
| #!/bin/bash | |
| WORKER_CMD="$1" | |
| NUM_WORKER="$2" | |
| TASKS_POOL="$3" | |
| callback(){ | |
| "$WORKER_CMD" "$1" | |
| schedule | |
| } | |
| schedule(){ | |
| TASK=`head -n 1 "$TASKS_POOL"` |