/images/avatar.png

Bitwarden_rs Traefik Docker Installation With GDrive Backup and Restore

Setting Up Docker Docker Compose Pre-requisites Make sure Docker and Docker compose is installed, if not use this script Creating required folders to use this setup as template for future changes. 1 mkdir -p ${HOME}/docker/traefik/letsencrypt Create required files 1 2 3 4 touch ${HOME}/docker/docker-compose.yml touch ${HOME}/docker/.env touch ${HOME}/docker/traefik/letsencrypt/acme.json sudo chmod 600 ${HOME}/docker/traefik/letsencrypt/acme.json create network 1 docker network create traefik_webgateway SetUp Traefik Update ${HOME}/docker/.

Testing remote TCP port

Update nodes.txt with the list of hosts or IP address Run the below snippet to check the open port 22 for the list in nodes.txt Change the port to check different port. 1 2 3 4 5 6 7 8 9 10 11 12 13 exec 3<nodes.txt while read -u3 host; do port=22 r=$(bash -c 'exec 3<> /dev/tcp/'$host'/'$port';echo $?' 2>/dev/null) if [ "$r" = "0" ]; then echo "$host$portis open" else echo "$host$portis closed" # exit 1 # To force fail result in ShellScript fi done

Clear Linux Buff Cache

Linux Buff/Cache Buffers Memory used by kernel buffers (Buffers in /proc/meminfo) Cache Memory used by the page cache and slabs (Cached and Reclaimable in /proc/meminfo) buff/cache Sum of buffers and cache Available Estimation of how much memory is available for starting new applications, without swapping. Unlike the data provided by the cache or free fields, this field takes into account page cache and also that not all reclaimable memory slabs will be reclaimed due to items being in use (MemAvailable in /proc/meminfo, available on kernels 3.

Git Change Author Name & Email for Existing Commits

Get Commits Author Name & Emails Using the following command, we can get the commit informations. 1 git log --pretty=format:"%h - %an - %ae , %ar : %s" Replace email and name for existing commits Using the following Command we can replace the email and name for existing commits 1 2 3 4 5 6 7 8 git filter-branch --commit-filter ' if [ "$GIT_AUTHOR_EMAIL" = "<OLD_EMAIL>" ]; then GIT_AUTHOR_NAME="<NEW_USER_NAME>" GIT_AUTHOR_EMAIL="<NEW_EMAIL>" git commit-tree "$@" else git commit-tree "$@" fi' HEAD