I do some changes I guess

This commit is contained in:
Warezjoe
2024-08-07 13:42:55 +02:00
parent c3f9e0bfda
commit 2257b4c7b9
3 changed files with 16 additions and 4 deletions

13
Aliaser
View File

@@ -10,13 +10,11 @@ alias ....='cd ../../..'
# My Aliasis # My Aliasis
#alias behold='clear;whoami;date;pwd;ls'
alias ports='netstat -tulanp' alias ports='netstat -tulanp'
alias update='sudo apt-get update && sudo apt-get upgrade' alias update='sudo apt-get update && sudo apt-get upgrade'
alias killkodi='killall -9 kodi-x11'
alias v='xclip -o' alias v='xclip -o'
alias you='(yt-dlp --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" $(xclip -o)) & > /dev/null' alias you='(yt-dlp --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" $(xclip -o))'
alias lyou='(yt-dlp -i --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 su='sudo su'
@@ -31,3 +29,10 @@ alias docClean='docker rm $(docker ps -a | egrep "Exited|Created" | cut -d " " -
#Dirty folder create #Dirty folder create
alias randir='cd $(mktemp -d); export LAST_RANDIR=$(pwd)' alias randir='cd $(mktemp -d); export LAST_RANDIR=$(pwd)'
alias ranlast='cd $LAST_RANDIR' alias ranlast='cd $LAST_RANDIR'
#AC check
alias ac='on_ac_power && echo on ac || echo on batt'
#Proxy aliasy
alias herodes_front='ssh -f -N -q -L localhost:8006:localhost:8006 herodes-public'
alias mikrotik_front='ssh -f -N -q -L localhost:8005:192.168.5.1:80 herodes-public'

View File

@@ -23,6 +23,7 @@ then
--exclude='.vscode' \ --exclude='.vscode' \
--exclude='Playground' \ --exclude='Playground' \
--exclude='.config/Code' \ --exclude='.config/Code' \
--exclude='Videa' \
/home/warezjoe/ pi-public:/zfspool/$HOSTNAME/ /home/warezjoe/ pi-public:/zfspool/$HOSTNAME/
else else

6
space_deleter Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
DIRTY=$(basename "$1")
CLEAN=$(echo $DIRTY | tr " " "_")
mv "$DIRTY" "$CLEAN"
echo "$CLEAN"