-
Test network throughput
dd if=/dev/zero bs=4096 count=262144 | ssh server.url.domain 'cat > /dev/null'
-
Find files larger than 100mb and sort
find / -xdev -type f -size +100M -exec du -sh {} ';' | sort -rh | head -n50
-
Find reverse DNS of a host
for HOST in $(host -t A example.com | awk '{print $4;}'); do host "${HOST}"; done
-
Using rsync to recursively retrieve files
rsync -r -v --dry-run user@address:/remote/path/to/files /local/path/to/files
-
Find out what ciphers are supported
nmap --script ssl-enum-ciphers -p 443 www.example.com
-
Get general SSL info
openssl s_client -showcerts -connect www.example.com
-
Find every file written to in the last 5 minutes
find / -mmin -5
-
Clean up gitlab cache
/usr/share/gitlab-runner/clear-docker-cache
-
Clean up old gitlab containers
sudo docker rm -v $(sudo docker ps --filter "status=exited" | grep -E "Exited \([0-9]\) [1-9] months ago" | awk '{print $1}')