This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e # Exit on error | |
set -o pipefail | |
set -x | |
# bash -c "$(curl https://gist.githubusercontent.com/patthomasrick/7683242a1af0485e3f550d34834a8bff/raw/6140e381be5e3b5d4e89fd3b596f9e68b07ee6f3/ansible-install.sh)" | |
function install_ansible_linux() { | |
OS_DISTRO=$(awk -F'=' '/^ID=/ {print $2}' /etc/os-release | tr -d '"') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# bash <(curl -s https://gist.githubusercontent.com/patthomasrick/6675348ff944fb17dca68dd7f33892e7/raw/d402a9f20dae700a8ba7a5708081574bbd421ae6/pve-unattended-upgrades.sh) | |
sudo apt update | |
sudo apt install unattended-upgrades -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A template to run ubuntu using vmType: vz instead of qemu (Default) | |
# This template requires Lima v0.14.0 or later and macOS 13. | |
vmType: "vz" | |
rosetta: | |
# Enable Rosetta for Linux. | |
# Hint: try `softwareupdate --install-rosetta` if Lima gets stuck at `Installing rosetta...` | |
enabled: true | |
# Register rosetta to /proc/sys/fs/binfmt_misc | |
binfmt: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function _g {git $args} | |
Set-Alias -Force -Name 'g' -Value _g | |
Function _ga {git add $args} | |
Set-Alias -Force -Name 'ga' -Value _ga | |
Function _gaa {git add --all $args} | |
Set-Alias -Force -Name 'gaa' -Value _gaa | |
Function _gapa {git add --patch $args} |