Backup a Docker volume to tar archive:
$ ./docker-volume-backup.sh \
DOCKER_VOLUME_NAME \
ARCHIVE_NAME.tgz| #!/bin/bash | |
| # Make this file executable and run with sudo | |
| # chmod +x ./fix-docker-desktop-apparmor-allow-ubuntu-24.04.sh | |
| # sudo ./fix-docker-desktop-apparmor-allow-ubuntu-24.04.sh | |
| # | |
| # References https://github.com/docker/docs/issues/20383#issue-2397592123 | |
| # https://askubuntu.com/questions/1511725/ubuntu-24-04-docker-desktop-is-not-starting/1519662#1519662 | |
| echo "Creating AppArmor profile to allow docker desktop" |
| #!bin/bash | |
| # Install basic utils | |
| sudo apt-get install curl git htop tmux -y | |
| # Install build tools | |
| sudo apt-get install binutils bison gcc make -y | |
| # Install golang verison manager. Don't use gvm. Better to install directly from offical website to avoid pkg broken issue. | |
| # zsh < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) |
| #!/usr/bin/env bash | |
| # Save this script as /usr/local/bin/xdg-open and make script executable using chmod +x /usr/local/bin/xdg-open | |
| if [[ "${1:-}" = slack://* ]]; then | |
| # Slack binary path can be anything depending on installation method and Linux version. | |
| # Execute in shell/bash & check: | |
| # $ whereis slack | |
| # Possible outputs: |
| #!/bin/bash | |
| # Install zsh | |
| sudo apt install zsh -y | |
| # Show version | |
| zsh --version | |
| # Set zsh as default shell | |
| chsh -s /usr/bin/zsh |
| Prefix | Description | Notes | |
|---|---|---|---|
| ac_ | Platform Client ID | Identifier for an auth code/client id. | |
| acct_ | Account ID | Identifier for an Account object. | |
| aliacc_ | Alipay Account ID | Identifier for an Alipay account. | |
| ba_ | Bank Account ID | Identifier for a Bank Account object. | |
| btok_ | Bank Token ID | Identifier for a Bank Token object. | |
| card_ | Card ID | Identifier for a Card object. | |
| cbtxn_ | Customer Balance Transaction ID | Identifier for a Customer Balance Transaction object. | |
| ch_ | Charge ID | Identifier for a Charge object. | |
| cn_ | Credit Note ID | Identifier for a Credit Note object. |
| #!/bin/bash | |
| defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes | |
| echo "Successfully patched!" | |
| echo "Now restart MySQL Workbench to see the Workbench in light theme." | |
| #Restart MySQL Workbench after executing this. |
| #!/bin/sh | |
| # Backup your data | |
| # Use at your own risk | |
| # Usage ./extended-cleanup-rancher2.sh | |
| # Include clearing all iptables: ./extended-cleanup-rancher2.sh flush | |
| docker rm -f $(docker ps -qa) | |
| docker rmi -f $(docker images -q) | |
| docker volume rm $(docker volume ls -q) | |
| for mount in $(mount | grep tmpfs | grep '/var/lib/kubelet' | awk '{ print $3 }') /var/lib/kubelet /var/lib/rancher; do umount $mount; done | |
| cleanupdirs="/etc/ceph /etc/cni /etc/kubernetes /opt/cni /opt/rke /run/secrets/kubernetes.io /run/calico /run/flannel /var/lib/calico /var/lib/etcd /var/lib/cni /var/lib/kubelet /var/lib/rancher/rke/log /var/log/containers /var/log/pods /var/run/calico" |
These are generic npm scripts that you can copy & paste into your package.json file as-is and get access to convinience scripts to manage your Docker images all in one place.
npm i -g mrm-task-npm-docker
npx mrm npm-docker
Here's the code repository https://github.com/expertly-simple/mrm-task-npm-docker