new software and format of alias

This commit is contained in:
Rick van Lieshout 2022-05-16 17:00:57 +02:00
parent 654a6f70a8
commit 7a1b90c470
4 changed files with 73 additions and 70 deletions

View File

@ -3,7 +3,7 @@ alias phpserver='docker run --rm -p 2000:80 -v "$PWD":/var/www/html mastermindzh
alias nodeserver='docker run --rm -p 3000:3000 -v "$PWD":/app mastermindzh/generic_node' alias nodeserver='docker run --rm -p 3000:3000 -v "$PWD":/app mastermindzh/generic_node'
alias reactserver='docker run --rm -p 8080:8080 -v "$PWD":/app mastermindzh/generic_node' alias reactserver='docker run --rm -p 8080:8080 -v "$PWD":/app mastermindzh/generic_node'
alias mongoserver='docker run -d --rm -p 27017:27017 --name mongo-server -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=123 -v ~/.db/mongo:/data/db mongo' alias mongoserver='docker run -d --rm -p 27017:27017 --name mongo-server -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=123 -v ~/.db/mongo:/data/db mongo'
alias sqlserver='docker run -d --rm --name sql-server -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Your_Password123" -p 1433:1433 -v ~/.db/mssql:/var/opt/mssql microsoft/mssql-server-linux' alias sqlserver='docker run --rm --name sql-server -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=Your_Password123" -p 1433:1433 -v ~/.db/mssql:/var/opt/mssql mcr.microsoft.com/mssql/server'
# useful docker commands # useful docker commands
alias stop-dockers='docker stop $(docker ps -aq)' alias stop-dockers='docker stop $(docker ps -aq)'
@ -108,7 +108,7 @@ alias tree='tree --dirsfirst'
alias handbrake='ghb' alias handbrake='ghb'
alias cal='cal -mw --color' alias cal='cal -mw --color'
alias chrome='google-chrome-stable' alias chrome='google-chrome-stable'
alias teams='teams-insiders --disable-seccomp-filter-sandbox' alias teams='teams-nativefier'
# grub # grub
alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg' alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
@ -118,11 +118,11 @@ alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
# function to cd up a couple of times # function to cd up a couple of times
# USAGE: up 3 (goes up 3 directories) # USAGE: up 3 (goes up 3 directories)
up() { up() {
DEEP=$1; DEEP=$1
[ -z "${DEEP}" ] && { DEEP=1; }; [ -z "${DEEP}" ] && { DEEP=1; }
for i in $(seq 1 ${DEEP}); do for i in $(seq 1 ${DEEP}); do
cd ../; cd ../
done; done
} }
# function to extract ... well anything really # function to extract ... well anything really
extract() { extract() {
@ -149,7 +149,7 @@ extract () {
# function to return uptime in a human readable format # function to return uptime in a human readable format
myuptime() { myuptime() {
uptime | awk '{ print "Uptime:", $3, $4, $5 }' | sed 's/,//g' uptime | awk '{ print "Uptime:", $3, $4, $5 }' | sed 's/,//g'
return; return
} }
# function to check whether a specific host is up # function to check whether a specific host is up
@ -157,9 +157,9 @@ isup(){
if ! [ -z "$1" ]; then if ! [ -z "$1" ]; then
ping -c 3 $1 >/dev/null 2>&1 ping -c 3 $1 >/dev/null 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "$1 seems to be offline"; echo "$1 seems to be offline"
else else
echo "$1 seems to be online"; echo "$1 seems to be online"
fi fi
fi fi
} }

View File

@ -1,3 +1,3 @@
{ {
"segments": ["virtual_env", "ssh", "cwd", "git", "hg", "jobs", "root"] "segments": ["virtual_env", "ssh", "cwd", "git", "jobs", "root"]
} }

View File

@ -19,3 +19,5 @@ sysmontask
keychain keychain
nomachine nomachine
chili-sddm-theme chili-sddm-theme
robo3t-bin
dive

View File

@ -90,3 +90,4 @@ polkit-gnome
gnome-keyring gnome-keyring
libsecret libsecret
seahorse seahorse
mpv