Skip to content

Instantly share code, notes, and snippets.

View thimslugga's full-sized avatar
🏠
Working from home

adam kaminski thimslugga

🏠
Working from home
View GitHub Profile
@thimslugga
thimslugga / README.md
Created April 24, 2024 17:28 — forked from YOU54F/README.md
Apple Silicon and Virtual Machines: Beating the 2 VM Limit

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@thimslugga
thimslugga / asrock_rack_x470d4u2-2t.txt
Created April 11, 2024 16:15
iommu group output from X470D4U2-2T
# ./lsiommu
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 10 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 11 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
IOMMU Group 12 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
IOMMU Group 12 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 13 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 0 [1022:1440]
IOMMU Group 13 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Data Fabric: Device 18h; Function 1 [1022:1441]
IOMMU Group 13 00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse/Vermeer Da
@thimslugga
thimslugga / 01-ha_cluster_cheatsheet.md
Last active March 22, 2024 15:41
High Availability Cluster Cheatsheet i.e. Pacemaker and Corosync

High Availability Cluster Cheatsheet

Corosync

corosync-keygen
scp /etc/corosync/corosync.conf root@node02:/etc/corosync/
@thimslugga
thimslugga / 00-notes.md
Last active March 7, 2024 18:21
Ubuntu Snap of MSSQL Server 2022

Notes

Manual Installation

sudo su -

apt-get update -y && apt-get upgrade -qqy
snap refresh
@thimslugga
thimslugga / aws-ubuntu-ram-boot.yml
Created March 4, 2024 01:43
aws-ubuntu-ram-boot.yml
#cloud-config
bootcmd:
- |
/bin/bash <<-'EOS'
#!/bin/bash
exec > >(tee /root/log.txt)
exec 2>&1
set -x
set -e
if [ -e /new ]; then
@thimslugga
thimslugga / bash_clean_code.sh
Created March 4, 2024 01:27 — forked from polyakovin/bash_clean_code.sh
Clean code example using Bash language
#!/bin/bash
function process_script_request {
if [[ $# -eq 0 ]]; then
show_help
else
case $1 in
help) show_help;;
back) serve_backend;;
back:prod) serve_backend_production;;
front) update_and_watch_assets;;
@thimslugga
thimslugga / setup-fedora-silverblue-xps-9310.sh
Last active March 3, 2024 18:24
Setup Fedora Silverblue 39 on Dell XPS 9310
#!/bin/bash
### WARNING: This is a WIP ###
### ISO ###
#
# https://www.balena.io/etcher/
# https://www.ventoy.net/en/index.html
#
# Take a look at ublue-os/isogenerator on GitHub, which is an action
@thimslugga
thimslugga / install-soft-serve.sh
Last active March 2, 2024 18:06
Setup soft-serve on Linux
#!/bin/bash
# https://charm.sh/blog/self-hosted-soft-serve/
# https://github.com/charmbracelet/soft-serve/blob/main/README.md
# https://github.com/charmbracelet/soft-serve
# https://github.com/charmbracelet/soft-serve-action
sudo dnf install -y curl git git-lfs
# Fedora/RHEL