First commit
This commit is contained in:
46
Aliaser
Executable file
46
Aliaser
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Modif $PATH
|
||||
export PATH="$PATH:/home/warezjoe/.bin"
|
||||
|
||||
|
||||
# My Aliasis
|
||||
#alias behold='clear;whoami;date;pwd;ls'
|
||||
alias ports='netstat -tulanp'
|
||||
alias update='sudo apt-get update && sudo apt-get upgrade'
|
||||
#alias ps='ps -fx'
|
||||
alias killkodi='killall -9 kodi-x11'
|
||||
#alias rimword='wine /mnt/7ADD43E306BAD064/torrent/RimWorld.v1.2.2753/RimWorldWin64.exe'
|
||||
alias v='xclip -o'
|
||||
alias you='(yt-dlp --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" $(xclip -o)) & > /dev/null'
|
||||
alias lyou='(yt-dlp -i --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" $(xclip -o)) & > /dev/null'
|
||||
#alias su='sudo su'
|
||||
#alias nas='firefox 192.168.5.2'
|
||||
|
||||
|
||||
|
||||
# Ssh Aliasis
|
||||
#alias ubunta='ssh 192.168.122.120'
|
||||
alias rpi='ssh pi@192.168.0.2'
|
||||
#alias vrpi='ssh pi@100.110.104.63'
|
||||
|
||||
# SSH RPI (u)mount
|
||||
#alias vrpimount= 'sshfs -o allow_other -o password_stdin hdd@100.110.104.63:/media/pi/ce28fbe7-c94e-4dfe-8e1f-4b9702c59225/ /mnt/rpi/ < /home/warezjoe/Dokumenty/PassForPiHdd'
|
||||
#alias vrpiumount='umount /mnt/rpi'
|
||||
|
||||
alias ranmac='sudo macchanger -r wlo1'
|
||||
#alias backgroudmvp='nohup 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) &'
|
||||
alias backgroud='nohup lbg &'
|
||||
|
||||
alias dmount='sudo mount 10.0.0.2:/var/raid/ /mnt/desktop'
|
||||
alias dumount='sudo umount /home/warezjoe/Desktop-mount'
|
||||
|
||||
#Google
|
||||
alias google='rclone mount google: /mnt/google'
|
||||
|
||||
#Docker
|
||||
alias docClean='docker rm $(docker ps -a | egrep "Exited|Created" | cut -d " " -f 1)'
|
||||
|
||||
#Dirty folder create
|
||||
alias randir='cd $(mktemp -d); export LAST_RANDIR=$(pwd)'
|
||||
alias ranlast='cd $LAST_RANDIR'
|
||||
2
ColorLsChanger
Executable file
2
ColorLsChanger
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
LS_COLORS='rs=0:di=01;36:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
|
||||
35
backup_to_pi
Executable file
35
backup_to_pi
Executable file
@@ -0,0 +1,35 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
CHECK=`ps -e | grep 'backup_to_desktop' | wc -l`
|
||||
#echo $CHECK
|
||||
echo '-------------------------------------------------'
|
||||
date
|
||||
echo 'Backup start...'
|
||||
echo '-------------------------------------------------'
|
||||
|
||||
|
||||
if [ $CHECK -lt 2 ]
|
||||
then
|
||||
|
||||
rsync -vaz --delete --delete-excluded \
|
||||
--exclude='VirtualBox VMs' \
|
||||
--exclude='.ssh' \
|
||||
--exclude='.local' \
|
||||
--exclude='.mozilla/firefox' \
|
||||
--exclude='.config/Mattermost' \
|
||||
--exclude='.cache' \
|
||||
--exclude='.log' \
|
||||
--exclude='.vscode' \
|
||||
--exclude='Playground' \
|
||||
--exclude='.config/Code' \
|
||||
/home/warezjoe/ pi-public:/zfspool/$HOSTNAME/
|
||||
|
||||
else
|
||||
echo "Already running, canceling..."
|
||||
fi
|
||||
|
||||
echo '-------------------------------------------------'
|
||||
date
|
||||
echo 'Backup end...'
|
||||
echo '-------------------------------------------------'
|
||||
4
dgedit
Executable file
4
dgedit
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
t1=$(date +%D)
|
||||
t2="$1-${t1//'/'/-}.txt"
|
||||
gedit $t2
|
||||
4
dmkdir
Executable file
4
dmkdir
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
t1=$(date +%D)
|
||||
t2="$1-${t1//'/'/-}"
|
||||
mkdir $t2
|
||||
8
lbg
Executable file
8
lbg
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
15
mkskri
Executable file
15
mkskri
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
#echo $1
|
||||
|
||||
argv="$1"
|
||||
|
||||
if [ -v $argv ]
|
||||
then
|
||||
echo 'Missing name of script. Exiting...'
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "#!/bin/bash" > $1
|
||||
chmod +x $1
|
||||
nano $1
|
||||
12
pgreptest
Executable file
12
pgreptest
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
if [ $(pgrep -c $(basename $0)) -gt 1 ]
|
||||
then
|
||||
echo 'Proccess already exist. Exiting..'
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
echo 'Good proccess run..'
|
||||
sleep 500;
|
||||
4
syou
Executable file
4
syou
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/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
|
||||
7
vssh
Executable file
7
vssh
Executable file
@@ -0,0 +1,7 @@
|
||||
#/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 $@
|
||||
29
welcome
Executable file
29
welcome
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/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)"
|
||||
Reference in New Issue
Block a user