Skip to content

Instantly share code, notes, and snippets.

View ALameLlama's full-sized avatar
✍️
Writting Shitty Code

Nicholas Ciechanowski ALameLlama

✍️
Writting Shitty Code
View GitHub Profile
@ALameLlama
ALameLlama / wings-service.nix
Created September 30, 2025 11:06
Pterodactyl Wings NixOS Module
{ config, pkgs, ... }:
{
# Create the wings user and group
users.users.wings = {
isSystemUser = true;
home = "/var/lib/wings";
description = "Pterodactyl Wings User";
group = "wings";
shell = pkgs.bash;
@ALameLlama
ALameLlama / copy_published_md.py
Created November 25, 2024 14:13
Quick python script to copy publish files to mkdocs
import os
import shutil
import re
import git
from pathlib import Path
def extract_header(content):
"""
Extract the YAML header from a Markdown file.
Returns the header as a string or None if not found.
@ALameLlama
ALameLlama / readme.MD
Last active July 10, 2024 02:15
CA import

Install the plugin to allow running on the host shell

vagrant plugin install vagrant-host-shell

Add this to your vagrantFile

    # https://support.kerioconnect.gfi.com/hc/en-us/articles/360015200119-Adding-Trusted-Root-Certificates-to-the-Server
    config.vm.provision "Import CA", type: "host_shell" do |host_shell|
@ALameLlama
ALameLlama / .env.example
Created November 24, 2023 09:44
MaplistGenerator
MAP_SOURCE_FOLDER='/home/csgoserver/serverfiles/csgo/maps' # path to maps folder
MAP_LIST_EXPORT_FILE='/home/csgoserver/serverfiles/csgo/addons/sourcemod/configs/adminmenu_maplist.ini' # path to export location including file name
MAP_BLACKLIST='training1.bsp,lobby_mapveto.bsp' # comma separated list
INCLUDE_WORKSHOP=TRUE
@ALameLlama
ALameLlama / README.md
Created November 24, 2023 09:42
cPanels-DDNS-Update-Cron

cPanels-DDNS-Update-Cron

Python Script to update cPanel's DDNS if the HostIP and the CurrentIP are different

Totally not over engineered and I totally shouldn't just curl the URL over and over again since it would do the same thing

by default virtualbox will use vmdk instead of vdi, the reason you might want to swap over to vdi is because it supported "SSD mode". This allows for trimming the drive (and should be done automatucally) and should also prevent defragging it.

You'll need to update your vagrant install specfically the virtualbox driver.

Scoop e.g: C:\Users\NicholasCiechanowski\scoop\apps\vagrant\2.3.7\embedded\gems\gems\vagrant-2.3.7\plugins\providers\virtualbox\driver\version_6_0.rb

arch e.g: /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/virtualbox/driver/version_6_0.rb deb e.g

@ALameLlama
ALameLlama / octane.sh
Last active November 17, 2023 02:55
Vagrant Octane
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
echo '------------ Vagrant Octane 1.1 ------------'
# Functions to update apt-fast since this didn't seem to work: debconf apt-fast/maxdownloads string 16 | debconf-set-selections
update_apt_fast_config() {
local key="$1"
local value="$2"