Skip to content

Instantly share code, notes, and snippets.

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

Brandon Jones (Eduardo Valencia) infinstarlight

🏠
Working from home
View GitHub Profile
@ktosiek
ktosiek / PA profile-set astro-a50-gen4.conf
Last active April 18, 2026 12:55
Astro A50 support on Linux - basic configuration for PulseAudio 13 (tested on Ubuntu's 13.99.1). Install the files and reboot, to make sure udev and PA reloaded :-)
; /usr/share/pulseaudio/alsa-mixer/profile-sets/astro-a50-gen4.conf
[General]
auto-profiles = yes
[Mapping analog-voice]
description = Voice
device-strings = hw:%f,0,0
channel-map = left,right
paths-output = steelseries-arctis-output-chat-common
@ariok
ariok / AAIControllerTeam.cpp
Last active June 19, 2025 15:12
UE4 Perception AI System: Detect By Affiliation
#include "AIControllerTeam.h"
// A Tutorial for this code is available here:
// https://www.thinkandbuild.it/ue4-ai-perception-system/
AAIControllerTeam::AAIControllerTeam()
{
SetGenericTeamId(FGenericTeamId(5));
}
@dustingraham
dustingraham / AutoSave.cs
Last active January 22, 2026 12:31
Auto-Save open unity scenes when launching play mode, or every five minutes.
#if UNITY_EDITOR
using System;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
[InitializeOnLoad]
public class AutoSave
{
private static DateTime nextSaveTime;