Skip to content

Instantly share code, notes, and snippets.

View patthomasrick's full-sized avatar
🐵

Patrick Thomas patthomasrick

🐵
View GitHub Profile
@patthomasrick
patthomasrick / ansible-install.sh
Last active November 24, 2024 15:45
ansible-install.sh
#!/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 '"')
@patthomasrick
patthomasrick / pve-unattended-upgrades.sh
Last active November 21, 2024 02:14
pve-unattended-upgrades.sh
#!/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
@patthomasrick
patthomasrick / vz-docker-rootful.yml
Created August 6, 2023 21:25
Lima + Rosetta + Docker
# 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
@patthomasrick
patthomasrick / profile.ps1
Created February 10, 2022 17:35
OhMyZsh Git plugin to Powershell - Incomplete
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}