diff --git a/customscripts/zero_blank_space.sh b/customscripts/zero_blank_space.sh new file mode 100644 index 0000000..a950c14 --- /dev/null +++ b/customscripts/zero_blank_space.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +echo -e "\n\nmakin a huge ass file filled wit nothing but zeros and when ya drive/partition runs out of room, it deletes da file. filaneme: $PWD/zerofile.zero\n\n" + +sudo dd if=/dev/zero bs=4M status=progress > "$PWD/zerofile.zero" || echo -e "zero file reached max size, deleting"; sudo rm -f "$PWD/zerofile.zero"; echo -e "retcode: $?" + +echo -e "\n\nall dne :3 free space haz been zeroed nuaa~\n\n" \ No newline at end of file diff --git a/customscripts/zero_memory.sh b/customscripts/zero_memory.sh new file mode 100644 index 0000000..2a2479c --- /dev/null +++ b/customscripts/zero_memory.sh @@ -0,0 +1,6 @@ +#!/bash +# get list of all vars +## fill them to a comical length with /dev/zero +## then unset them +# figure out a more robust method +## otherwise jus drop a zerofile.zero into /tmp :vv: \ No newline at end of file