This file contains hidden or 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 | |
# This code is licensed under MIT license https://choosealicense.com/licenses/mit/ | |
# | |
# Note: I have only tested lightly and this seems to work. I won't take the blame if this makes your | |
# machine catch fire. | |
# | |
# Thanks to Aaron and the original work discussed here: | |
# https://www.rebelpeon.com/bitwarden-ssh-agent-on-wsl2/ | |
# | |
# If you want to run this script as is you can: |
This file contains hidden or 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 | |
# This script creates a sparse ZFS filesystem with a random pool name, scrubs it, and removes it to test ZED email notifications. | |
# Generate a random pool name | |
pool_name="test_$(date +%s | sha256sum | base64 | head -c 10)" | |
# Generate a random filename for the sparse file | |
sparse_file_path="/tmp/sparse_file_$(date +%s | sha256sum | base64 | head -c 10)" | |
# Create a sparse file with a size of 512MB |