From ac15d7635d2e481e61f208cf6ac12d166cf29827 Mon Sep 17 00:00:00 2001 From: git Date: Tue, 30 May 2023 14:29:36 +0200 Subject: [PATCH] spring clean-up --- lbg | 8 -------- pgreptest | 12 ------------ syou | 4 ---- vssh | 7 ------- welcome | 29 ----------------------------- 5 files changed, 60 deletions(-) delete mode 100755 lbg delete mode 100755 pgreptest delete mode 100755 syou delete mode 100755 vssh delete mode 100755 welcome diff --git a/lbg b/lbg deleted file mode 100755 index af9656b..0000000 --- a/lbg +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -while true -do -xwinwrap -fs -fdt -ni -b -nf -un -o 1.0 -debug -- mpv -wid WID --loop --no-audio $(find /home/warezjoe/Videa/animation -type f | shuf -n 1) & -sleep 300 -killall mpv -done diff --git a/pgreptest b/pgreptest deleted file mode 100755 index 83d432c..0000000 --- a/pgreptest +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - - -if [ $(pgrep -c $(basename $0)) -gt 1 ] -then - echo 'Proccess already exist. Exiting..' - exit -fi - - -echo 'Good proccess run..' -sleep 500; diff --git a/syou b/syou deleted file mode 100755 index 44eb012..0000000 --- a/syou +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -#firefox -new-tab "https://www.youtube.com/results?search_query="$1+$2+$3+$4+$5+$6+$7+$8+$9 -search=$(curl "https://www.youtube.com/results?search_query="$1+$2+$3+$4+$5+$6+$7+$8+$9 | grep -o -P 'watch\?v=.{0,11}' | head -1) -youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/$search & > /dev/null diff --git a/vssh b/vssh deleted file mode 100755 index e419f32..0000000 --- a/vssh +++ /dev/null @@ -1,7 +0,0 @@ -#/bin/bash - -export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh" -export GPG_TTY=$(tty) -gpg-connect-agent updatestartuptty /bye >/dev/null - -exec ssh $@ diff --git a/welcome b/welcome deleted file mode 100755 index 7eeb0eb..0000000 --- a/welcome +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" -let secs=$((${upSeconds}%60)) -let mins=$((${upSeconds}/60%60)) -let hours=$((${upSeconds}/3600%24)) -let days=$((${upSeconds}/86400)) -UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"` - -# get the load averages -read one five fifteen rest < /proc/loadavg - -echo "$(tput setaf 2) - -▄ ▄ ██ █▄▄▄▄ ▄███▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████▄ ▄███▄ - █ █ █ █ █ ▄▀ █▀ ▀ ▀ ▄▄▀ ▄▀ █ █ █ █▀ ▀ -█ ▄ █ █▄▄█ █▀▀▌ ██▄▄ ▄▀▀ ▄▀ █ █ █ ██▄▄ -█ █ █ █ █ █ █ █▄ ▄▀ ▀▀▀▀▀▀ ▄ █ ▀████ █▄ ▄▀ - █ █ █ █ █ ▀███▀ ▀ ▀███▀ - ▀ ▀ █ ▀ - - -`date +"%A, %e %B %Y, %r"` -`uname -srmo` -$(tput sgr0)- Uptime.............: ${UPTIME} -$(tput sgr0)- Memory.............: `free | grep Mem | awk '{print $3/1024}'` MB (Used) / `cat /proc/meminfo | grep MemTotal | awk {'print $2/1024'}` MB (Total) -$(tput sgr0)- Load Averages......: ${one}, ${five}, ${fifteen} (1, 5, 15 min) -$(tput sgr0)- Running Processes..: `ps ax | wc -l | tr -d " "` -$(tput sgr0)- IP Addresses.......: `hostname -I | /usr/bin/cut -d " " -f 1` and `wget -q -O - http://icanhazip.com/ | tail` -$(tput sgr0)"