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 | |
# Measure the throughput of different ciphers | |
# \time always calls the GNU time command, not the builtin shell command. | |
# if not installed, the package is usually called 'time' | |
# ssh key authentication must be enabled and working for the user and host. | |
# size in MB | |
SIZE=1000 | |
# ssh user@host |
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 | |
# Shows all hosts in the first private network (first IP starting with 192.) | |
# Uses nmap, so you need that installed | |
NETWORK=$(ip a | grep -E 'inet 192[^ ]+' -o -m1 | cut -d' ' -f 2) | |
HOST_IP=$(echo $NETWORK | cut -d'/' -f1) | |
echo This host\'s IP: $HOST_IP | |
echo Looking for hosts in $NETWORK |
I hereby claim:
- I am maaxxs on github.
- I am maaxxs (https://keybase.io/maaxxs) on keybase.
- I have a public key ASDA30y8l36di6f2eCm2gSBQxhD4ZWW0vB_a8SDHfUEQNAo
To claim this, I am signing this object: