From f918f602dc3ca85a6d7c77c22b2e4c2948849eff Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sat, 11 Oct 2025 03:17:04 -0600 Subject: [PATCH] 1760174224 --- customscripts/donut.c | 23 +++++++++++++++++++++++ customscripts/install_script.sh | 18 +++++++++++++----- customscripts/monitor_pid | 2 +- 3 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 customscripts/donut.c diff --git a/customscripts/donut.c b/customscripts/donut.c new file mode 100644 index 0000000..af27a7a --- /dev/null +++ b/customscripts/donut.c @@ -0,0 +1,23 @@ +#include +#include + int k = 0;double sin() + ,cos();int main(){float A= + 0,B=0,i,j,z[1760];char b[ + 1760];printf("\x1b[2J");for(;; + ){memset(b,32,1760);memset(z,0,7040) + ;for(j=0;6.28>j;j+=0.07)for(i=0;6.28 + >i;i+=0.02){float c=sin(i),d=cos(j),e= + sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c* + h*e+f*g+5),l=cos (i),m=cos(B),n=s\ +in(B),t=c*h*g-f* e;int x=40+30*D* +(l*h*m-t*n),y= 12+15*D*(l*h*n ++t*m),o=x+80*y, N=8*((f*e-c*d*g + )*m-c*d*e-f*g-l *d*n);if(22>y&& + y>0&&x>0&&80>x&&D>z[o]){z[o]=D;;;b[o]= + ".,-~:;=!*#$@"[N>0?N:0];}}/*#****!!-*/ + printf("\x1b[H");for(k=0;1761>k;k++) + putchar(k%80?b[k]:10);A+=0.04;B+= + 0.02;}}/*****####*******!!=;:~ + ~::==!!!**********!!!==::- + .,~~;;;========;;;:~-. + ..,--------,*/ \ No newline at end of file diff --git a/customscripts/install_script.sh b/customscripts/install_script.sh index c65c60a..6105db9 100644 --- a/customscripts/install_script.sh +++ b/customscripts/install_script.sh @@ -1,19 +1,23 @@ #!/bin/bash # install with ## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh | sudo "$SHELL" && bash /usr/share/customscripts/configure_webhook.sh && exec "$SHELL" +# install with package install +## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh | sudo "$SHELL" && bash /usr/share/customscripts/configure_webhook.sh full && exec "$SHELL" # set -e # make sure da silly thing dont continue when there be errorZ gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git' tmpDir='/tmp/customscripts' finalDir='/usr/share/customscripts' -# echo "Updating software lists" -# 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 ripgrep ugrep xxd -y echo "Using Shell $SHELL" +if [ "$1" == "full" ]; then + echo "Updating software lists" + 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 ripgrep ugrep xxd libimage-exiftool-perl -y +fi + # ta get da right usermayhaps if [[ -z $SUDO_USER ]]; then echo "Using User $USER" @@ -60,6 +64,10 @@ fi echo "Cloning Repo $gitRepo" git clone $gitRepo $tmpDir --single-branch --depth 1 +echo "Compiling donut" +gcc -o $tmpDir/$gitRepo/customscripts/donut $tmpDir/$gitRepo/customscripts/donut.c -lm +rm -f $tmpDir/$gitRepo/customscripts/donut.c + # put the customscripts dir into place echo "Placing in $finalDir" sudo mv "$tmpDir/customscripts" "$finalDir" diff --git a/customscripts/monitor_pid b/customscripts/monitor_pid index f70c322..bed6de2 100644 --- a/customscripts/monitor_pid +++ b/customscripts/monitor_pid @@ -20,7 +20,7 @@ while [ 1 -eq 1 ]; do # check if the process exists via retcode of the ps -q $pid if [ $ret -ne 0 ]; then - webhook "Process $pid Ended at $(date)!" true true + webhook "Process $pid Ended at $(date)!" true echo "Process $pid Ended at $(date)!" exit fi