This commit is contained in:
committer@tuxwarrior
2026-02-24 12:12:33 -05:00
parent e35a4c266b
commit 56a2aa7cc9
4 changed files with 315 additions and 307 deletions

View File

@@ -24,19 +24,17 @@ eval "$(jump shell --bind=j)"
# miscellaneous aliases # miscellaneous aliases
# --- # ---
alias aafire="aafire -driver curses" # terminal idle "screensaver"
alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient" alias azurevpnclient="/opt/microsoft/microsoft-azurevpnclient/microsoft-azurevpnclient"
alias cacafire="DISPLAY= cacafire" # terminal idle "screensaver"
alias cmatrix="cmatrix -a -b -s -u 5" # terminal idle "screensaver"
alias cp="cp -i" # confirm before overwriting something alias cp="cp -i" # confirm before overwriting something
alias ct="sudo ct" alias ct="sudo ct"
alias decrypt="gpg --decryp" #alias decrypt="gpg --decrypt"
alias df='df -h' # human-readable sizes alias df='df -h' # human-readable sizes
alias diskusage="ncdu -x" alias diskusage="ncdu -x"
alias dr="dragon-drop --and-exit --all --print-path" alias dragon="dragon-drop --and-exit --all --print-path"
alias du="du --summarize --human-readable" alias du="du --summarize --human-readable"
alias dus="du --summarize --human-readable * | sort -h" alias dus="du --summarize --human-readable * | sort -h"
alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com" #alias encrypt="gpg --encrypt --sign --recipient frode@klevstul.com"
alias faf="find . -type f -iname" # faf (find a file) alias faf="find . -type f -iname" # faf (find a file)
alias fif="grep -rnw . -e" # fif (find in file) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux alias fif="grep -rnw . -e" # fif (find in file) | https://stackoverflow.com/questions/16956810/find-all-files-containing-a-specific-text-string-on-linux
alias gparted="sudo gparted" alias gparted="sudo gparted"
@@ -47,29 +45,24 @@ alias ipify='http https://api.ipify.org?format=json'
alias journal='journalctl --since "1 hour ago"' alias journal='journalctl --since "1 hour ago"'
alias keymap="setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll" alias keymap="setxkbmap -model pc105 -layout us,no -option grp:caps_toggle,grp_led:scroll"
alias keyringreset="trash-put /home/poq/.local/share/keyrings/*.keyrings" alias keyringreset="trash-put /home/poq/.local/share/keyrings/*.keyrings"
alias lock="xautolock -locknow" #alias lock="xautolock -locknow"
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias mapscii='telnet mapscii.me'
alias myip="echo $(wget http://ipinfo.io/ip -qO -)" alias myip="echo $(wget http://ipinfo.io/ip -qO -)"
alias neofetch='fastfetch' alias neofetch='fastfetch'
alias nr="nitrogen --restore"
alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024" alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024"
alias sb="source ~/.bashrc" alias sb="source ~/.bashrc"
alias sbr="source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo alias sbr="source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo
alias sizeInBytes="stat -c %s" alias sizeInBytes="stat -c %s"
alias ssh_weba_r="ssh -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'" alias ssh="ssh -v"
alias ssh_weba_u="ssh -t usr@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'" alias ssh_weba_r="ssh -v -t root@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
alias starwars="telnet towel.blinkenlights.nl" alias ssh_weba_u="ssh -v -t usr@weba -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
alias tp-empty="trash-empty" alias tp-empty="trash-empty"
alias tp-list="tree ~/.local/share/Trash/" alias tp-list="tree ~/.local/share/Trash/"
alias tp-restore="trash-restore" alias tp-restore="trash-restore"
alias tp="tp.sh" alias tp="tp.sh"
alias tree="tree --du -h" alias tree="tree --du -h"
alias unimatrix="unimatrix.py" # terminal idle "screensaver"
#alias weba-connect="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
# app images # app images
#alias dbgate="/home/poq/syncDir/quick/swas/installationFiles/dbGate/dbgate-latest.AppImage"
alias pgmodeler2="/home/poq/syncDir/swas/portableApps/pgmodeler_plus-2*" alias pgmodeler2="/home/poq/syncDir/swas/portableApps/pgmodeler_plus-2*"
alias pgmodeler="/home/poq/syncDir/swas/portableApps/pgmodeler_plus-1*" alias pgmodeler="/home/poq/syncDir/swas/portableApps/pgmodeler_plus-1*"
@@ -95,18 +88,18 @@ case ${TERM} in
esac esac
# tss (terminal screen saver) - start a random one # tss (terminal screen saver) - start a random one
tss() { #tss() {
# https://unix.stackexchange.com/questions/118714/how-can-i-get-cacafire-to-show-up-in-the-original-gnome-terminal-instead-of-a # # https://unix.stackexchange.com/questions/118714/how-can-i-get-cacafire-to-show-up-in-the-original-gnome-terminal-instead-of-a
OLD_DISPAY=$(echo $DISPLAY) # OLD_DISPAY=$(echo $DISPLAY)
export DISPLAY= # export DISPLAY=
commands=("aafire -driver curses" "cacafire" "cmatrix -a -b -s -u 5" "unimatrix.py") # commands=("aafire -driver curses" "cacafire" "cmatrix -a -b -s -u 5" "unimatrix.py")
random_command="${commands[ $RANDOM % ${#commands[@]} ]}" # random_command="${commands[ $RANDOM % ${#commands[@]} ]}"
$random_command # $random_command
export DISPLAY=${OLD_DISPAY} # export DISPLAY=${OLD_DISPAY}
} #}
#
alias tbt="printf '\x1b]10;red\x1b\\'; printf '\x1b]11;#000\x1b\\'" # tbt (terminal black theme) | https://sw.kovidgoyal.net/kitty/faq/#how-do-i-change-the-colors-in-a-running-kitty-instance #alias tbt="printf '\x1b]10;red\x1b\\'; printf '\x1b]11;#000\x1b\\'" # tbt (terminal black theme) | https://sw.kovidgoyal.net/kitty/faq/#how-do-i-change-the-colors-in-a-running-kitty-instance
alias tdt="printf '\x1b]10;#00ffff\x1b\\'; printf '\x1b]11;#161021\x1b\\';" # tdt (terminal default theme) #alias tdt="printf '\x1b]10;#00ffff\x1b\\'; printf '\x1b]11;#161021\x1b\\';" # tdt (terminal default theme)
# --- # ---
@@ -114,9 +107,9 @@ alias tdt="printf '\x1b]10;#00ffff\x1b\\'; printf '\x1b]11;#161021\x1b\\';" # td
# --- # ---
# https://serverfault.com/questions/170706/easy-way-to-get-ip-address-from-hostname-using-a-unix-shell # https://serverfault.com/questions/170706/easy-way-to-get-ip-address-from-hostname-using-a-unix-shell
function hostip() { #function hostip() {
python -c "import sys, socket; print (socket.gethostbyname('$1'))" # python -c "import sys, socket; print (socket.gethostbyname('$1'))"
} #}
nmrestart() { nmrestart() {
systemctl restart NetworkManager systemctl restart NetworkManager
@@ -124,49 +117,49 @@ nmrestart() {
} }
# https://wiki.archlinux.org/title/Proxy_server # https://wiki.archlinux.org/title/Proxy_server
function proxy_on() { #function proxy_on() {
export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" # export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
#
if (( $# > 0 )); then # if (( $# > 0 )); then
valid=$(echo $@ | sed -n 's/\([0-9]\{1,3\}.\?\)\{4\}:\([0-9]\+\)/&/p') # valid=$(echo $@ | sed -n 's/\([0-9]\{1,3\}.\?\)\{4\}:\([0-9]\+\)/&/p')
if [[ $valid != $@ ]]; then # if [[ $valid != $@ ]]; then
>&2 echo "Invalid address" # >&2 echo "Invalid address"
return 1 # return 1
fi # fi
local proxy=$1 # local proxy=$1
export http_proxy="$proxy" \ # export http_proxy="$proxy" \
https_proxy=$proxy \ # https_proxy=$proxy \
ftp_proxy=$proxy \ # ftp_proxy=$proxy \
rsync_proxy=$proxy # rsync_proxy=$proxy
echo "Proxy environment variable set." # echo "Proxy environment variable set."
return 0 # return 0
fi # fi
#
echo -n "username: "; read username # echo -n "username: "; read username
if [[ $username != "" ]]; then # if [[ $username != "" ]]; then
echo -n "password: " # echo -n "password: "
read -es password # read -es password
local pre="$username:$password@" # local pre="$username:$password@"
fi # fi
#
echo -n "server: "; read server # echo -n "server: "; read server
echo -n "port: "; read port # echo -n "port: "; read port
local proxy=$pre$server:$port # local proxy=$pre$server:$port
export http_proxy="$proxy" \ # export http_proxy="$proxy" \
https_proxy=$proxy \ # https_proxy=$proxy \
ftp_proxy=$proxy \ # ftp_proxy=$proxy \
rsync_proxy=$proxy \ # rsync_proxy=$proxy \
HTTP_PROXY=$proxy \ # HTTP_PROXY=$proxy \
HTTPS_PROXY=$proxy \ # HTTPS_PROXY=$proxy \
FTP_PROXY=$proxy \ # FTP_PROXY=$proxy \
RSYNC_PROXY=$proxy # RSYNC_PROXY=$proxy
} #}
#
function proxy_off(){ #function proxy_off(){
unset http_proxy https_proxy ftp_proxy rsync_proxy \ # unset http_proxy https_proxy ftp_proxy rsync_proxy \
HTTP_PROXY HTTPS_PROXY FTP_PROXY RSYNC_PROXY # HTTP_PROXY HTTPS_PROXY FTP_PROXY RSYNC_PROXY
echo -e "Proxy environment variable removed." # echo -e "Proxy environment variable removed."
} #}
# --- # ---
@@ -174,187 +167,187 @@ function proxy_off(){
# --- # ---
# https://en.wikipedia.org/wiki/List_of_common_resolutions # https://en.wikipedia.org/wiki/List_of_common_resolutions
alias res-low="xrandr -s 1920x1080" #alias res-low="xrandr -s 1920x1080"
alias res-med="xrandr -s 2560x1440" #alias res-med="xrandr -s 2560x1440"
alias res-high="xrandr -s 3840x2160" #alias res-high="xrandr -s 3840x2160"
#
#monitor() {
# cmd="info"
# if [[ -n $1 ]]; then
# cmd=$1
# fi
#
# if [ ${cmd} == "on" ] ; then
# # (standby) (suspend) (off)
# # 18.2 hours | https://superuser.com/questions/1876254/how-to-turn-off-monitor-and-dont-enable-screen-blanking-in-arch-linux
# xset dpms 65535 65535 65535
# # disable screensaver
# xautolock -disable # disable screen locker
# elif [ ${cmd} == "off" ] ; then
# sleep 3 # sleep, to prevent mouse movement and immediate wake up
# xset dpms 0 0 600 # 10 min timout will be active after monitor wakes up
# xset dpms force off # shut off the monitor
# xautolock -enable # turns on screen locker again
# elif [ ${cmd} == "info" ] ; then
# xset -q
# else
# echo "error: unknown command \"${cmd}\""
# fi
#}
#
#screensaver() {
# cmd="info"
# if [[ -n $1 ]]; then
# cmd=$1
# fi
#
# if [ ${cmd} == "on" ] ; then
# xset dpms
# xautolock -enable
# # tmp file used by i3status - by default screensaver is on, so no need for "screensaver_on.tmp"
# trash-put "/tmp/screensaver_off.tmp"
# elif [ ${cmd} == "off" ] ; then
# xset -dpms
# xautolock -disable
# touch "/tmp/screensaver_off.tmp"
# elif [ ${cmd} == "reset" ] ; then
# if xset -q | grep -q 'DPMS is Enabled' ; then
# xset -dpms
# xset dpms
# xautolock -restart
# fi
# elif [ ${cmd} == "set" ] ; then
# minutes=15
# if [[ -n $2 ]]; then
# minutes=$2
# fi
# xautolock -time ${minutes} -locker i3lock_fk.sh
# elif [ ${cmd} == "info" ] ; then
# xset -q
# else
# echo "error: unknown command \"${cmd}\""
# fi
#}
monitor() { #rshift() {
cmd="info" # cmd="info"
if [[ -n $1 ]]; then # if [[ -n $1 ]]; then
cmd=$1 # cmd=$1
fi # fi
#
if [ ${cmd} == "on" ] ; then # temperature_file="/tmp/temperature.txt"
# (standby) (suspend) (off) #
# 18.2 hours | https://superuser.com/questions/1876254/how-to-turn-off-monitor-and-dont-enable-screen-blanking-in-arch-linux # if [ ${cmd} == "info" ] ; then
xset dpms 65535 65535 65535 # echo "{morning, day, evening, night, bedtime, off}"
# disable screensaver # return 1
xautolock -disable # disable screen locker # elif
elif [ ${cmd} == "off" ] ; then # [ ${cmd} == "status" ] ||
sleep 3 # sleep, to prevent mouse movement and immediate wake up # [ ${cmd} == "show" ] ||
xset dpms 0 0 600 # 10 min timout will be active after monitor wakes up # [ ${cmd} == "display" ] ; then
xset dpms force off # shut off the monitor # if [ -f "${temperature_file}" ] ; then
xautolock -enable # turns on screen locker again # temperature=$(cat /tmp/temperature.txt)
elif [ ${cmd} == "info" ] ; then # echo "${temperature}K"
xset -q # else
else # echo "unknown temperature value"
echo "error: unknown command \"${cmd}\"" # fi
fi # return 1
} # elif
# [ ${cmd} == "disable" ] ||
screensaver() { # [ ${cmd} == "off" ] ; then
cmd="info" # redshift -x
if [[ -n $1 ]]; then # return 1
cmd=$1 # elif [ ${cmd} == "morning" ] ; then
fi # temperature=4500
# elif [ ${cmd} == "day" ] ; then
if [ ${cmd} == "on" ] ; then # temperature=6500
xset dpms # elif [ ${cmd} == "evening" ] ; then
xautolock -enable # temperature=3500
# tmp file used by i3status - by default screensaver is on, so no need for "screensaver_on.tmp" # elif [ ${cmd} == "night" ] ; then
trash-put "/tmp/screensaver_off.tmp" # temperature=2500
elif [ ${cmd} == "off" ] ; then # elif [ ${cmd} == "bedtime" ] ; then
xset -dpms # temperature=1200
xautolock -disable # else
touch "/tmp/screensaver_off.tmp" # temperature=${cmd}
elif [ ${cmd} == "reset" ] ; then # fi
if xset -q | grep -q 'DPMS is Enabled' ; then #
xset -dpms # echo "setting temperature to ${temperature}K"
xset dpms # echo ${temperature} > ${temperature_file}
xautolock -restart # redshift -P -O ${temperature}
fi #}
elif [ ${cmd} == "set" ] ; then
minutes=15
if [[ -n $2 ]]; then
minutes=$2
fi
xautolock -time ${minutes} -locker i3lock_fk.sh
elif [ ${cmd} == "info" ] ; then
xset -q
else
echo "error: unknown command \"${cmd}\""
fi
}
rshift() {
cmd="info"
if [[ -n $1 ]]; then
cmd=$1
fi
temperature_file="/tmp/temperature.txt"
if [ ${cmd} == "info" ] ; then
echo "{morning, day, evening, night, bedtime, off}"
return 1
elif
[ ${cmd} == "status" ] ||
[ ${cmd} == "show" ] ||
[ ${cmd} == "display" ] ; then
if [ -f "${temperature_file}" ] ; then
temperature=$(cat /tmp/temperature.txt)
echo "${temperature}K"
else
echo "unknown temperature value"
fi
return 1
elif
[ ${cmd} == "disable" ] ||
[ ${cmd} == "off" ] ; then
redshift -x
return 1
elif [ ${cmd} == "morning" ] ; then
temperature=4500
elif [ ${cmd} == "day" ] ; then
temperature=6500
elif [ ${cmd} == "evening" ] ; then
temperature=3500
elif [ ${cmd} == "night" ] ; then
temperature=2500
elif [ ${cmd} == "bedtime" ] ; then
temperature=1200
else
temperature=${cmd}
fi
echo "setting temperature to ${temperature}K"
echo ${temperature} > ${temperature_file}
redshift -P -O ${temperature}
}
# --- # ---
# misc # misc
# --- # ---
ascii() { #ascii() {
if [[ -n $1 ]] ; then # if [[ -n $1 ]] ; then
if [[ $1 == "banner" ]] && [[ -n $2 ]] ; then # if [[ $1 == "banner" ]] && [[ -n $2 ]] ; then
figlet -w 200 -f ANSI\ Shadow $2 # figlet -w 200 -f ANSI\ Shadow $2
elif [[ $1 == "date" ]] ; then # elif [[ $1 == "date" ]] ; then
date | figlet -w 200 -f future # date | figlet -w 200 -f future
elif [[ $1 == "info" ]] ; then # elif [[ $1 == "info" ]] ; then
echo "toilet -f future Hello, World!" # echo "toilet -f future Hello, World!"
echo "figlet -f future Hello, World!" # echo "figlet -f future Hello, World!"
elif [[ $1 == "fav" ]] || [[ $1 == "favs" ]] || [[ $1 == "favorites" ]] ; then # elif [[ $1 == "fav" ]] || [[ $1 == "favs" ]] || [[ $1 == "favorites" ]] ; then
text="Klevstul" # text="Klevstul"
if [[ -n $2 ]]; then # if [[ -n $2 ]]; then
text=$2 # text=$2
fi # fi
echo # echo
echo "3D-ASCII" # echo "3D-ASCII"
figlet -w 200 -f 3D-ASCII ${text} # figlet -w 200 -f 3D-ASCII ${text}
echo # echo
echo "Alpha" # echo "Alpha"
figlet -w 200 -f Alpha ${text} # figlet -w 200 -f Alpha ${text}
echo # echo
echo "ANSI Regular" # echo "ANSI Regular"
figlet -w 200 -f ANSI\ Regular ${text} # figlet -w 200 -f ANSI\ Regular ${text}
echo # echo
echo "Banner3-D" # echo "Banner3-D"
figlet -w 200 -f Banner3-D ${text} # figlet -w 200 -f Banner3-D ${text}
echo # echo
echo "cyberlarge" # echo "cyberlarge"
figlet -w 200 -f cyberlarge ${text} # figlet -w 200 -f cyberlarge ${text}
echo # echo
echo "cybermedium" # echo "cybermedium"
figlet -w 200 -f cybermedium ${text} # figlet -w 200 -f cybermedium ${text}
echo # echo
echo "doh" # echo "doh"
figlet -w 200 -f doh ${text} # figlet -w 200 -f doh ${text}
echo # echo
echo "future" # echo "future"
figlet -w 200 -f future ${text} # figlet -w 200 -f future ${text}
echo # echo
echo "isometric1" # echo "isometric1"
figlet -w 200 -f isometric1 ${text} # figlet -w 200 -f isometric1 ${text}
echo # echo
echo "isometric2" # echo "isometric2"
figlet -w 200 -f isometric2 ${text} # figlet -w 200 -f isometric2 ${text}
echo # echo
echo "s-relief" # echo "s-relief"
figlet -w 200 -f s-relief ${text} # figlet -w 200 -f s-relief ${text}
echo # echo
echo "smbraille" # echo "smbraille"
figlet -w 200 -f smbraille ${text} # figlet -w 200 -f smbraille ${text}
echo # echo
echo "pagga" # echo "pagga"
figlet -w 200 -f pagga ${text} # figlet -w 200 -f pagga ${text}
elif [[ $1 == "figlets" ]] ; then # elif [[ $1 == "figlets" ]] ; then
figlets.sh # figlets.sh
elif [[ $1 == "fonts" ]] ; then # elif [[ $1 == "fonts" ]] ; then
tree /usr/share/figlet/ # tree /usr/share/figlet/
elif [[ $1 == "help" ]] ; then # elif [[ $1 == "help" ]] ; then
echo "ascii {banner [text], info, fav [text], figlets, fonts, help, toilets}" # echo "ascii {banner [text], info, fav [text], figlets, fonts, help, toilets}"
elif [[ $1 == "toilets" ]] ; then # elif [[ $1 == "toilets" ]] ; then
toilets.sh # toilets.sh
else # else
toilet -f smbraille Try something else... # toilet -f smbraille Try something else...
fi # fi
else # else
toilet -f future --rainbow ASCII # toilet -f future --rainbow ASCII
fi # fi
} #}
# https://boulderappsco.postach.io/post/convert-decimal-to-base-36-alpha-numeric-in-bash-linux # https://boulderappsco.postach.io/post/convert-decimal-to-base-36-alpha-numeric-in-bash-linux
function decimal_to_base36(){ function decimal_to_base36(){
@@ -592,14 +585,14 @@ nas() {
# fi # fi
# ffmpeg -i "$1" -c copy -bsf:a aac_adtstoasc "/home/poq/syncDir/0_downloads/${output}" # ffmpeg -i "$1" -c copy -bsf:a aac_adtstoasc "/home/poq/syncDir/0_downloads/${output}"
# } # }
alias videoCompressor="/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2104_videoCompressor/src/vc_v2.sh" #alias videoCompressor="/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2104_videoCompressor/src/vc_v2.sh"
# alias videoWatermark="/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2104_videoCompressor/src/vcwm_v1.sh" # alias videoWatermark="/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2104_videoCompressor/src/vcwm_v1.sh"
alias notesArchiver='/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2306_notesArchiver/notesArchiver.sh' #alias notesArchiver='/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2306_notesArchiver/notesArchiver.sh'
alias toJpg='/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2306_toJpg/toJpg.sh' #alias toJpg='/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2306_toJpg/toJpg.sh'
imgResize() { #imgResize() {
/home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2305_imgResizer/resize.sh 1200 "$1" jpg # /home/poq/syncDir/gitRepos/gi.op.fo/miniProjects/2305_imgResizer/resize.sh 1200 "$1" jpg
} #}
# https://itsfoss.com/compress-pdf-linux/ # https://itsfoss.com/compress-pdf-linux/
pdfCompress() { pdfCompress() {
@@ -630,25 +623,6 @@ podigy() {
# podigy # podigy
# /home/poq/syncDir/gitRepos/gi.op.fo/pyws/deploy/deployToBuildServer.sh db # /home/poq/syncDir/gitRepos/gi.op.fo/pyws/deploy/deployToBuildServer.sh db
# } # }
#
# # ---
# # c19vaxno
# # ---
# #alias c19vaxno-deploy="/home/poq/syncDir/gitRepos/gitlab.com/c19vaxno/helperScripts/deployToGitlab.sh"
# ---
# hummed
# ---
#hummed-activate() {
# cd /home/poq/syncDir/gitRepos/gi.op.fo/hummed/src
# source venv/bin/activate
#}
#hummed() {
# hummed-activate
# python /home/poq/syncDir/gitRepos/gi.op.fo/hummed/src/archi.py "$@"
# deactivate
# jump-to-downloads
#}
# --- # ---
@@ -791,29 +765,3 @@ klevstul.com-build-all() {
jump-to-downloads jump-to-downloads
} }
alias klevstul.com-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/klevstul.com/jongleur/html_export/ usr@178.156.192.201:/var/www/klevstul.com/jongleur/" alias klevstul.com-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/klevstul.com/jongleur/html_export/ usr@178.156.192.201:/var/www/klevstul.com/jongleur/"
noctur.no-build() {
jongleur-activate
/home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/run.sh
deactivate
jump-to-downloads
}
noctur.no-build-all() {
jongleur-activate
/home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/runAll.sh
deactivate
jump-to-downloads
}
alias noctur.no-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/html_export/ usr@178.156.192.201:/var/www/noctur.no/jongleur/"
christcast.org-build() {
jongleur-activate
/home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/run.sh
deactivate
jump-to-downloads
}
christcast.org-build-all() {
jongleur-activate
/home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/runAll.sh
deactivate
jump-to-downloads
}
alias christcast.org-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/html_export/ usr@178.156.192.201:/var/www/christcast.org/jongleur/"

View File

@@ -1,3 +1,7 @@
#######################################################
### MOST RECENT REMOVALS AT THE BOTTOM OF THIS PAGE ###
#######################################################
#alias dpi="xrandr --dpi" #alias dpi="xrandr --dpi"
#alias free='free -m' # show sizes in MB #alias free='free -m' # show sizes in MB
#alias np='nano -w PKGBUILD' #alias np='nano -w PKGBUILD'
@@ -40,3 +44,61 @@
# frodr.com-build-all # frodr.com-build-all
# } # }
---
#alias aafire="aafire -driver curses" # terminal idle "screensaver"
#alias cacafire="DISPLAY= cacafire" # terminal idle "screensaver"
#alias cmatrix="cmatrix -a -b -s -u 5" # terminal idle "screensaver"
#alias mapscii='telnet mapscii.me'
#alias nr="nitrogen --restore"
#alias starwars="telnet towel.blinkenlights.nl"
#alias unimatrix="unimatrix.py" # terminal idle "screensaver"
#alias weba-connect="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'"
#alias dbgate="/home/poq/syncDir/quick/swas/installationFiles/dbGate/dbgate-latest.AppImage"
#
# # ---
# # c19vaxno
# # ---
# #alias c19vaxno-deploy="/home/poq/syncDir/gitRepos/gitlab.com/c19vaxno/helperScripts/deployToGitlab.sh"
# ---
# hummed
# ---
#hummed-activate() {
# cd /home/poq/syncDir/gitRepos/gi.op.fo/hummed/src
# source venv/bin/activate
#}
#hummed() {
# hummed-activate
# python /home/poq/syncDir/gitRepos/gi.op.fo/hummed/src/archi.py "$@"
# deactivate
# jump-to-downloads
#}
#noctur.no-build() {
# jongleur-activate
# /home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/run.sh
# deactivate
# jump-to-downloads
#}
#noctur.no-build-all() {
# jongleur-activate
# /home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/runAll.sh
# deactivate
# jump-to-downloads
#}
#alias noctur.no-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/noctur.no/jongleur/html_export/ usr@178.156.192.201:/var/www/noctur.no/jongleur/"
#christcast.org-build() {
# jongleur-activate
# /home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/run.sh
# deactivate
# jump-to-downloads
#}
#christcast.org-build-all() {
# jongleur-activate
# /home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/runAll.sh
# deactivate
# jump-to-downloads
#}
#alias christcast.org-deploy="rsync -v -a --progress --stats --delete-delay -e 'ssh -p 1808' /home/poq/syncDir/gitRepos/gi.op.fo/christcast.org/jongleur/html_export/ usr@178.156.192.201:/var/www/christcast.org/jongleur/"

View File

@@ -20,23 +20,24 @@ fi
if ! [[ -d "$trg_ssh_dir" ]]; then if ! [[ -d "$trg_ssh_dir" ]]; then
echo "creating non-existing target dir '${trg_ssh_dir}'." echo "creating non-existing target dir '${trg_ssh_dir}'."
mkdir -p ${trg_ssh_dir} mkdir -p ${trg_ssh_dir}
chmod 0700 ${trg_ssh_dir}
fi fi
files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.pub) files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.pub)
if (( ${#files} )) if (( ${#files} ))
then then
echo "*.pub already exist in ${trg_ssh_dir}" echo "*.pub file(s) already exist in ${trg_ssh_dir}"
else else
echo "deploy .pub file" echo "deploy .pub file(s)"
cp ${src_ssh_dir}/*.pub ${trg_ssh_dir} cp ${src_ssh_dir}/*.pub ${trg_ssh_dir}
fi fi
files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.gpg) files=$(shopt -s nullglob dotglob; echo ${trg_ssh_dir}/*.gpg)
if (( ${#files} )) if (( ${#files} ))
then then
echo "*.gpg already exist in ${trg_ssh_dir}" echo "*.gpg file(s) already exist in ${trg_ssh_dir}"
else else
echo "deploy .gpg file" echo "deploy .gpg file(s)"
cp ${src_ssh_dir}/*.gpg ${trg_ssh_dir} cp ${src_ssh_dir}/*.gpg ${trg_ssh_dir}
fi fi
@@ -55,6 +56,7 @@ if [[ ${user_input} == "y" ]]; then
gpg -d ${trg_ssh_dir}/${filename}.gpg > ${trg_ssh_dir}/${filename} gpg -d ${trg_ssh_dir}/${filename}.gpg > ${trg_ssh_dir}/${filename}
chmod 0600 ${trg_ssh_dir}/${filename} # id_rsa can not be accessible by other users chmod 0600 ${trg_ssh_dir}/${filename} # id_rsa can not be accessible by other users
trash-put ${trg_ssh_dir}/${filename}.gpg
done done
else else

View File

@@ -5,10 +5,6 @@
# User differentusername # User differentusername
# IdentityFile ~/.ssh/identity_file2 # IdentityFile ~/.ssh/identity_file2
Host quickSilver
HostName 46.62.245.126
IdentityFile ~/.ssh/251110_quickSystems
Host weba Host weba
HostName 178.156.192.201 HostName 178.156.192.201
IdentityFile ~/.ssh/251110_ed25519_klevstul IdentityFile ~/.ssh/2024_id_rsa