From 04febcad685274642e1050e1271f2c9838123cdd Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 13 May 2026 11:30:56 -0600 Subject: [PATCH] how do i look? do i look alright? did they like it? god i hope they liked me --- customscripts/dump_compressed_img_file.sh | 9 ++++++ customscripts/prepare_for_release_img,sh | 35 +++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 customscripts/prepare_for_release_img,sh diff --git a/customscripts/dump_compressed_img_file.sh b/customscripts/dump_compressed_img_file.sh index 8432ca6..470bd44 100644 --- a/customscripts/dump_compressed_img_file.sh +++ b/customscripts/dump_compressed_img_file.sh @@ -1,8 +1,17 @@ #!/bin/bash # todo: +# offline option +## dd raw .img ## enum partitions ### file zero fill empty space of good partitions ### dd zero fill unformatted space and such +### xz compress +# online option +## enum partitions +## attempt to mount all possible +## file zero fill them +## dd zero fill unformatted space +## take offline for xz inline rip set -e # fail explicitly on any error diff --git a/customscripts/prepare_for_release_img,sh b/customscripts/prepare_for_release_img,sh new file mode 100644 index 0000000..0b67408 --- /dev/null +++ b/customscripts/prepare_for_release_img,sh @@ -0,0 +1,35 @@ +#!/bin/bash +echo "nukan .ssh and github token" +rm -rf $HOME/.ssh $HOME/.gh_token + +echo "logging out of github" +gh auth logout + +echo "removing user.name and user.email from git configs" +git config --unset user.name +git config --unset user.email + +echo "change pass to princesspi" +passwd + +echo "now to set pw to be reset on first login" +sudo passwd -e princesspi + +echo "zeroing out all da fuckin space fuuck" +zero_file_path="$HOME/0.0" +sudo dd if=/dev/zero bs=4M status=progress > "$zero_file_path" || echo -e "$zero_file_path file reached max size, deleting"; sudo rm -f "$zero_file_path"; echo -e "retcode: $?" + +echo "thank fuck that fucking ended" + +echo "now manually clear all bluetooth and wifi now" + +echo "once those are clear, all donesies" + +echo "shut down? y/n" + +read check +if [[ "$check" =~ [yY] ]]; then + sudo shutdown now +else + exit +fi \ No newline at end of file