1760174224

This commit is contained in:
2025-10-11 03:17:04 -06:00
parent 7b951b98ec
commit f918f602dc
3 changed files with 37 additions and 6 deletions
+23
View File
@@ -0,0 +1,23 @@
#include <stdio.h>
#include <string.h>
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;}}/*****####*******!!=;:~
~::==!!!**********!!!==::-
.,~~;;;========;;;:~-.
..,--------,*/
+13 -5
View File
@@ -1,19 +1,23 @@
#!/bin/bash #!/bin/bash
# install with # 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" ## 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 # set -e # make sure da silly thing dont continue when there be errorZ
gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git' gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git'
tmpDir='/tmp/customscripts' tmpDir='/tmp/customscripts'
finalDir='/usr/share/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" 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 # ta get da right usermayhaps
if [[ -z $SUDO_USER ]]; then if [[ -z $SUDO_USER ]]; then
echo "Using User $USER" echo "Using User $USER"
@@ -60,6 +64,10 @@ fi
echo "Cloning Repo $gitRepo" echo "Cloning Repo $gitRepo"
git clone $gitRepo $tmpDir --single-branch --depth 1 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 # put the customscripts dir into place
echo "Placing in $finalDir" echo "Placing in $finalDir"
sudo mv "$tmpDir/customscripts" "$finalDir" sudo mv "$tmpDir/customscripts" "$finalDir"
+1 -1
View File
@@ -20,7 +20,7 @@ while [ 1 -eq 1 ]; do
# check if the process exists via retcode of the ps -q $pid # check if the process exists via retcode of the ps -q $pid
if [ $ret -ne 0 ]; then 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)!" echo "Process $pid Ended at $(date)!"
exit exit
fi fi