Skip to content

Instantly share code, notes, and snippets.

#!/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
@Maaxxs
Maaxxs / show_hosts.sh
Created April 17, 2021 12:22
Show local hosts in private network
#!/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
@Maaxxs
Maaxxs / keybase.md
Created October 2, 2017 19:14
for keybase

Keybase proof

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: