Skip to content

Instantly share code, notes, and snippets.

View Hexhu's full-sized avatar
😺
Studying!

Hexhu

😺
Studying!
  • AS25
View GitHub Profile
@Hexhu
Hexhu / bench-ssl-ciphers.sh
Last active August 5, 2021 07:11
Benchmark each SSL cipher
# https://man.openbsd.org/ssh#Q
SIZE=2GB
dd if=/dev/urandom of=/tmp/${SIZE}.bin bs="$SIZE" count=1 iflag=fullblock;
for cipher in `ssh -Q cipher`; do
echo "${cipher}:";
echo put /tmp/${SIZE}.bin /dev/null | sftp -c "$cipher" root@localhost;
echo;
done;
rm /tmp/${SIZE}.bin
@Hexhu
Hexhu / install-arch-noefi.sh
Last active January 3, 2024 05:43
curl -OL hu.fo/getarch; chmod +x getarch; ./getarch
#!/bin/zsh
# Usage:
# Boot into archiso
# curl -OL hu.fo/getarch
# chmod +x getarch
# vim getarch
# ./getarch
export NEWUSER=hexhu
@Hexhu
Hexhu / tracker_all_to_magnet_uri_param.sh
Last active October 21, 2019 07:15
Turn all trackers in github.com/ngosang/trackerslist into magnet URI
curl -L https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt 2>/dev/null |
sed -e 's/:/%3A/g; s/\//%2F/g;' |
tr '\n' '_' |
sed -e 's/__*/\&tr=/g; s/^/\&tr=/; s/\&tr=$/\n/'

Keybase proof

I hereby claim:

  • I am hexhu on github.
  • I am hexhu (https://keybase.io/hexhu) on keybase.
  • I have a public key whose fingerprint is 6738 C459 EE0C F5B4 F5D2 FD8E A21C 9F71 336E 3DF5

To claim this, I am signing this object: