Skip to content

Instantly share code, notes, and snippets.

View quonic's full-sized avatar

Spyingwind quonic

  • Dallas
View GitHub Profile
@quonic
quonic / dvd.odin
Last active June 13, 2026 06:51
"DVD" bouncing logo in the Linux terminal using alt mode and checking for SIGINT to quit cleanly
package main
import "core:fmt"
import "core:sync"
import "core:sys/linux"
import "core:time"
running := true
sigint_caught: b32
@quonic
quonic / dune-admin-systemd.md
Last active June 3, 2026 20:45
My dune-admin setup for systemd and update script

My dune-admin Setup for AMP

This all assumes that your AMP install is under the amp user.

Install dune-admin

cd ~/
# Install Git: Pick the one that suite your system
#sudo apt install git
@quonic
quonic / AGENTS.md
Created May 5, 2026 15:25
Project level AGENTS.md file for Odin-lang. Fixes common problems with LLM's thinking it is Go-lang. Customize and change as needed, especially where you have installed Odin.

Agents.md

Project Status - Unreleased

Making breaking changes to the project is currently allowed, but it is recommended to avoid doing so unless necessary. If breaking changes are made, they should be clearly documented in the commit messages and in the documentation to ensure that users are aware of the changes and can update their code accordingly. It is important to maintain clear communication with users and contributors about any changes that may affect them, especially if those changes are breaking.

Odin Programming Language

@quonic
quonic / ring_reset_fix.txt
Created March 25, 2026 15:19
One possible fix for ring reset with AMDGPU's on Linux with Unreal Engine based games.
RADV_PERFTEST=nosched VKD3D_CONFIG=no_upload_hvv %command%
@quonic
quonic / FuelingControls.ic10
Created October 23, 2025 09:16
Rocket Fueling Controls for Stationeers with the Modular Consoles mod
# This script will allow a console to control the
# pumping of V and NO2 from their respective tanks
# into the rocket. It reads pressures from the
# tanks(via pipe analyzers) and rocket, and allows
# the user to control pumps and valves via
# console switches.
# Device Definitions
define TurboPump 1310794736
define PipeAnalyzer 435685051
@quonic
quonic / InventoryComponent.cpp
Last active September 3, 2025 20:19
Unreal Engine Inventory system example
// InventoryComponent.cpp
#include "InventoryComponent.h"
UInventoryComponent::UInventoryComponent()
{
PrimaryComponentTick.bCanEverTick = false;
}
void UInventoryComponent::BeginPlay()
@quonic
quonic / Get-KernelTaint.sh
Last active May 12, 2025 10:02
Get the reasons for a tainted Linux kernel
#!/usr/bin/env bash
# Get-KernelTaint.sh
#
# This script checks the kernel taint status by reading the value from
# /proc/sys/kernel/tainted. It interprets the taint flags and prints
# corresponding messages to indicate the reason for the taint.
# It also provides a summary of the taint status.
#
# License: MIT
@quonic
quonic / update_discord.sh
Last active September 22, 2025 17:00
My Update Discord script for Linux
#!/bin/bash
# License: MIT
# Author: Quonic/Spyingwind
# Description: This script installs or updates Discord on Linux.
# Version: 1.1
# Usage: ./update_discord.sh
# Dependencies: wget, tar
# Script to install or update Discord on Linux
@quonic
quonic / 00-rodecaster-duo-rename.conf
Last active February 20, 2025 21:48
RODECaster Duo ALSA Audio Position mappings
{
"monitor.alsa.rules": [
{
"actions": {
"update-props": {
"alsa.card_name": "RODECaster Duo Chat",
"alsa.long_card_name": "RODECaster Duo Chat",
"device.description": "RODECaster Duo Chat",
"device.name": "RODECaster Duo Chat",
"node.description": "RODECaster Duo Chat",
@quonic
quonic / update-factorio.sh
Last active October 27, 2024 23:04
Updates Factorio Linux server along with any mods added via git.
#!/usr/bin/env bash
# This script will update a Factorio server mods that where installed via git
# and update the Factorio server via LinuxGSM if updates are available
# Requirements:
# * jq, git, and curl packages
# * Factorio server installed via LinuxGSM or web-lgsm
# * Change the factorio_dir variable to your Factorio server directory
# * Run as the same user that runs the Factorio server