Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Lxss" -Recursewsl --export Ubuntu .\Ubuntu\ext4.vhdx --vhd
wsl --unregister Ubuntu
wsl --import-in-place Ubuntu .\Ubuntu\ext4.vhdxThis gist contains a create and destroy script to provision and cleanup custom domains and managed certficates assigned to Azure Container Apps.
This gist supports the following workflow:
Definition: Clarifies users’ legal terms and obligations.
Key Points:
| #!/bin/bash | |
| # Farbdefinitionen | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| YELLOW='\033[1;33m' | |
| BLUE='\033[0;34m' | |
| WHITE='\033[1;37m' | |
| NC='\033[0m' # Keine Farbe |
| #!/bin/bash | |
| # Exit immediately if a command exits with a non-zero status. | |
| set -e | |
| # Function to check for required utilities | |
| function check_utilities() { | |
| local utilities=("qm" "wget" "xz" "sha256sum" "ssh-keygen") | |
| for util in "${utilities[@]}"; do | |
| command -v "$util" >/dev/null 2>&1 || { echo "$util not found. Please install it."; exit 1; } |
Download a cloud image :
# Example: Download Ubuntu Cloud Image
curl -LO https://cloud-images.ubuntu.com/noble/current/noble-server-cloudimg-amd64.img| #!/bin/bash | |
| #distribute.sh | |
| #Joe Dillig - Check Point Software 2019 - [email protected] | |
| #Script used to distrubute custom dynamic object tracking scripts to managed gateways from the Check Point management server | |
| #Location to transfer files to on each gateway | |
| REMOTE_SCRIPT_DIR="/home/admin/scripts/dynobjs" | |
| #List of files to distribute |
| #!/bin/bash | |
| GUI_USER="admin" | |
| GUI_PASS="vpn123" | |
| API_USER="api_user" | |
| API_PASS="vpn123" | |
| config_system -s "install_security_gw=false&install_ppak=false&gateway_cluster_member=false&install_security_managment=true&install_mgmt_primary=true&install mgmt_secondary=false&mgmt_admin_name=$GUI_USER&mgmt_admin_passwd=$GUI_PASS&mgmt_gui_clients_radio=any" | |
| while true; | |
| do |
| # for string | |
| awk '$3 ~ /snow/ { print }' dummy_file | |
| # for numeric | |
| cpwd_admin list | awk '{if ($4==1) {print $1}}' | |
| # check if column contains a string and print it, will print just the columns containing the lines | |
| mpstat -P ALL 1 1 | awk '$12 ~ /idle/ {print $12}' | |
| # check if column contains a string and print it, if matched string, print all the values in this column |