You're browsing snippets anonymously. Log in or create an account to save and manage your own snippets.

Public Snippets
using language: Bash
Showing 6 snippets
Check if a server has strictsni enabled
curl -v -k https://1.2.3.4
By xtream1101 Updated 2025-02-28 14:13
Get domain cert details in cli
DOMAIN=yourdomain.tld
echo | openssl s_client -showcerts -servername $DOMAIN -connect $DOMAIN:443 2>/dev/null | openssl x509 -inform pem -noout -text
By xtream1101 Updated 2025-02-12 19:48
List mounted drives
df -h --output=target,size,used,avail,pcent,source | grep -e Mounted -e $1 |  awk 'NR<2{print $0;next}{print $0| "sort"}'
By xtream1101 Updated 2025-02-08 22:44
Convert image to dxf file
inkscape --export-type=dxf my-image.svg
By xtream1101 Updated 2025-02-06 05:18
Clean up empty dirs
# List/print empty dirs (does not delete)
find /mnt/my-data/ -type d -empty -print

# Delete empty dirs
find /mnt/my-data/ -type d -empty -delete
By xtream1101 Updated 2025-02-06 05:15
Bash command test
# Access individual arguments
echo "The first argument is: $1"
echo "The second argument is: $2"

# Access all arguments
echo "All arguments: $@"

# Access the number of arguments
echo "Number...
By xtream1101 Updated 2025-02-06 05:13
Showing 6 snippets