From d1b2239b95ee373b2760ebd77b7ca4d1e3554e0f Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sun, 24 Aug 2025 03:21:24 -0600 Subject: [PATCH] 1756027285 --- Windows-Scripts/force_me_off.ps1 | 28 +++++++++++++++------------- customscripts/install_script.sh | 4 ++-- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/Windows-Scripts/force_me_off.ps1 b/Windows-Scripts/force_me_off.ps1 index 6a7cff6..f95fc2d 100644 --- a/Windows-Scripts/force_me_off.ps1 +++ b/Windows-Scripts/force_me_off.ps1 @@ -29,23 +29,25 @@ Write-Host "$reboot_time | Reboot Time" Write-Host "`nSleeping for $Hours hours $Minutes minutes and forking to background to prevent cheating...`n" -webhook "SCHEDULED REBOOT AT $reboot_time" +webhook "SCHEDULED REBOOT AT $reboot_time" true # popup $popup_shell.Popup("REBOOTING BY FORCE IN $Hours HOURS $Minutes MINUTES AT $reboot_time", 2, "REBOOTING AS FUCK IN $total_wait_minutes MINUTES", 0) | Out-Null -function do_admin_shit { - # handle interactive shit right away - ## schedule chkdsk to take up fuckin tons of time - Start-Process -Verb RunAs -FilePath cmd.exe -ArgumentList '/C "chkdsk /r C:"' - ## must use fuckin cmd bullshit grumble grumble - Start-Sleep -Seconds $total_wait_seconds +# schedule chkdsk to take up fuckin tons of time +Start-Process -FilePath cmd.exe -ArgumentList '/C "chkdsk /r C:"' - # popup - $popup_shell.Popup("REBOOTING BY FORCE IN $grace_minutes MINUTES", 2, "REBOOTING AS FUCK IN $grace_minutes MINUTES", 0) | Out-Null +# set to reboot with windows defender offline scan scheduled to wastte even more time :wheeze: +Start-Process -FilePath powershell.exe -ArgumentList '-C "Start-MpWDOScan"' - # set to reboot with windows defender offline scan scheduled to wastte even more time :wheeze: - Start-Sleep -Seconds $grace_seconds && Start-Process -Verb RunAs -FilePath powershell.exe -ArgumentList '-C "Start-MpWDOScan"' -} +# must use fuckin cmd bullshit grumble grumble +Start-Sleep -Seconds $total_wait_seconds -do_admin_shit \ No newline at end of file +# popup +$popup_shell.Popup("REBOOTING BY FORCE IN $grace_minutes MINUTES", 2, "REBOOTING AS FUCK IN $grace_minutes MINUTES", 0) | Out-Null + +# grace sleep +Start-Sleep -Seconds $grace_seconds + +# reboot in 120 seconds +shutdown /r /t 120 \ No newline at end of file diff --git a/customscripts/install_script.sh b/customscripts/install_script.sh index e2e347e..e8290c6 100644 --- a/customscripts/install_script.sh +++ b/customscripts/install_script.sh @@ -8,10 +8,10 @@ tmpDir='/tmp/customscripts' finalDir='/usr/share/customscripts' # echo "Updating software lists" -sudo apt update +# sudo apt update # echo "Installan my packages" -sudo apt install gh unattended-upgrades net-tools htop btop iptraf iotop screen byobu wget python3 python3-pip python3-virtualenv python3-setuptools thefuck nginx apache2 wget lynx neovim nmap docker.io zip unzip 7zip net-tools chkrootkit clamav php restic cifs-utils psmisc detox fdupes secure-delete scrypt ugrep xxd -y +# sudo apt install gh unattended-upgrades net-tools htop btop iptraf iotop screen byobu wget python3 python3-pip python3-virtualenv python3-setuptools thefuck nginx apache2 wget lynx neovim nmap docker.io zip unzip 7zip net-tools chkrootkit clamav php restic cifs-utils psmisc detox fdupes secure-delete scrypt ugrep xxd -y echo "Using Shell $SHELL" # ta get da right usermayhaps