Skip to content

Instantly share code, notes, and snippets.

View x86-39's full-sized avatar

Jasmijn Emilia Rosalina Knoope 🌸 x86-39

View GitHub Profile
@x86-39
x86-39 / Pterodactyl setup CentOS Stream 9.md
Last active June 19, 2024 21:21
random notes on Pterodactyl install on CentOS 9

i was taking notes on this on the expectation to like the app

i did not

i hate it

rough draft of everything i dont want to just delete:

Pterodactyl setup CentOS Stream 9

@x86-39
x86-39 / RHEL in Vagrant with Libvirt.md
Last active September 11, 2022 21:06
Red Hat Enterprise Linux create Libvirt Vagrant Box for local testing

Steps

Replace X with major version and Y with minor version in this guide
  1. Register for a no-cost Red Hat Developer subscription
  2. Download RHEL DVD Image (Tested with 8.6 and 7.9)
  3. Create a QEMU/KVM libvirt VM (I use virt-manager) Attach this boot image as boot disk. I used 20GB as the disk size. Name this VM rhelX.Y
  4. Set installation destination to the local drive
  5. configure networking so that you have internet access (Should work out of the box with DHCP)
@x86-39
x86-39 / GitLab Container Helm Chart Fix.md
Last active November 2, 2022 23:41
GitLab Container/Helm Chart Fix

The problem

Postgres seems to not work correctly at the moment. The first deploy will fail since the btree_gist extension requires root to create.

Solution

This can be done manually with the following:

  1. kubectl describe pod gitlab-postgres-0 Get the node this pod is running on, SSH to it
  2. On the worker node, run runc --root /run/containerd/runc/k8s.io/ exec -t --user 0 <CONTAINER ID> psql --user postgres It will prompt for a password, get this password by running:
@x86-39
x86-39 / Fedora in Vagrant with Libvirt.md
Last active October 30, 2022 21:11
Fedora in Vagrant with GUI

Steps

Replace X with major version in this guide
  1. Download Fedora DVD Image (Tested with 36 KDE)
  2. Create a QEMU/KVM libvirt VM (I use virt-manager) Attach this boot image as boot disk. I used 20GB as the disk size. Name this VM fedoraX
  3. Set installation destination to the local drive
  4. configure networking so that you have internet access (Should work out of the box with DHCP)
  5. Create a user "vagrant" with password "vagrant"
@x86-39
x86-39 / deploy-argocd.yml
Last active January 22, 2023 19:45
Deploy ArgoCD Ansible Playbook
---
- name: Set up ArgoCD
hosts: kubernetes_master
tasks:
- name: Set up ArgoCD
environment:
KUBECONFIG: "{{ kubeconfig | default('~/.kube/config') }}"
block:
- name: Install Python Kubernetes module
become: true
@x86-39
x86-39 / patch-argocd-ksops.yml
Last active April 16, 2023 03:37
Patch ArgoCD for use with KSOPS
---
- name: Set up ArgoCD
hosts: kubernetes_master
vars_prompt:
- name: "agekey"
prompt: "Enter the SECRET age key to use for SOPS"
private: true
tasks:
- name: Set up ArgoCD
environment:
@x86-39
x86-39 / printer.cfg
Created August 14, 2023 11:15
3D printer configs
# This file contains pin mappings for the stock 2020 Creality Ender 3
# V2. To use this config, during "make menuconfig" select the
# STM32F103 with a "28KiB bootloader" and serial (on USART1 PA10/PA9)
# communication.
# If you prefer a direct serial connection, in "make menuconfig"
# select "Enable extra low-level configuration options" and select
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC
# cable used for the LCD module as follows:
# 3: Tx, 4: Rx, 9: GND, 10: VCC
@x86-39
x86-39 / configuration.yaml
Last active May 18, 2024 16:56
Home Assistant Klipper (Moonraker) integrations
# Replace 192.168.1.1 with your Moonraker IP
# I suffix "_ender3" in these, feel free to replace that too
sensor:
- platform: rest
name: klipper_ender3
resource: "http://192.168.1.1:7125/printer/objects/query?heater_bed&extruder&print_stats&toolhead&display_status&virtual_sdcard&gcode_move&webhooks&temperature_sensor mcu_temp&temperature_sensor pi_temp&filament_switch_sensor Filament"
json_attributes_path: "$.result.status"
json_attributes:
- heater_bed
@x86-39
x86-39 / build-vyos-image.yml
Last active September 26, 2023 09:35
Build VyOS image with modern Ansible.
---
###
# This play builds a VyOS qcow2 image
###
- name: Set up vyos-vm-images repo
hosts: localhost
tags: vyos, prepare-build, build
gather_facts: false
tasks:
- name: Clone vyos-vm-images repo
@x86-39
x86-39 / day1.yml
Last active December 29, 2023 23:03
Ansible Advent of Code 2023, Day 1
---
# Set the input
- name: Set example input
ansible.builtin.set_fact:
day1_input: |-
1abc2
pqr3stu8vwx
a1b2c3d4e5f
treb7uchet
when: day1_input is not defined