Skip to content

Instantly share code, notes, and snippets.

View wiverson's full-sized avatar

Will Iverson wiverson

View GitHub Profile
Odin 3 Max
GameNative
Graphics Driver - Wrapper
Graphics Driver Version - 8eGen5-842.8 ([GameHub Adreno 8xx] 842.8)
Wine: Renderer NVIDIA GeForce GTX 1060
Video Memory: 4096MB
Win Components: Direct3D DirectX Native (Windows)
DirectSound DirectX Native (Windows)
@wiverson
wiverson / frame-desktop-htpc.md
Last active February 8, 2026 15:52
Setting up a Frame Desktop as a HTPC

HDMI CEC TV Control on Bazzite Linux with UGREEN DP-to-HDMI Adapter

Automatically turn on your TV and switch to the correct HDMI input when:

  • Your PC boots
  • Your display wakes from blanking
  • You press the Xbox button on your controller

Tested on Bazzite (KDE Plasma) with an LG TV.

Requirements

@wiverson
wiverson / SupabaseManager.cs
Created August 28, 2023 23:17
SupabaseManager.cs - example of bootstrapping Supabase in Unity
using System;
using io.notification;
using Supabase;
using Supabase.Gotrue;
using Supabase.Gotrue.Interfaces;
using TMPro;
using UnityEngine;
using static io.notification.NotificationManager;
using static io.notification.NotificationManager.NotificationType;
using Client = Supabase.Client;
using System;
using System.IO;
using io.notification;
using Newtonsoft.Json;
using Supabase.Gotrue;
using Supabase.Gotrue.Interfaces;
using UnityEngine;
using static io.notification.NotificationManager.NotificationType;
namespace io.supabase

Some of my favorite tools for dev on macOS in 2023.

  • Powerlevel10k. Adds much nicer prompts/themes. Particularly like being able to see what Git repo & branch I am currently in.
  • Fig Adds much nicer auto-complete to the Terminal.
  • 1Password Adds SSH key management at the CLI.
  • GitHub Desktop Because 99% of the time this is better. Diffs, commits, branches, PRs...
  • SDKMan Install and manage JDKs and Maven installs.
  • JetBrains Absolutely invaluable for Java (Intelli/J) and C# (Rider).
  • DBSchema One of the best tools for roundtrip visual design for RDBMS.

To center something with a maximum width:

  1. Parent GameObject
    1. Add Horizontal or Vertical Layout Group
    2. Enable 'Control Child Size' and Disable 'Child Force Expand'
  2. Child GameObject
    1. Add 'Layout Element'
  3. Set Preferred Height and/or Width
@wiverson
wiverson / build.sh
Created May 11, 2023 18:38
Build script to download both the latest supabase-csharp libs as well as the current source.
#!/bin/bash
rm -rf target
rm -rf nuget
rm -rf unpack
mkdir nuget
mkdir target
mkdir unpack
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "supabase-csharp@0.9.1" --targetFrameworks ".NETStandard@2.0" --cacheDir "nuget"
./bin/nusave-3.1.1-dawrin-x64/nusave cache package "Websocket.Client@4.6.1" --targetFrameworks ".NETStandard@2.0" --cacheDir "nuget"
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
@wiverson
wiverson / AppleSignIn.cs
Created April 28, 2023 23:20
Demo of using Apple Sign in with Supabase and Unity
using System;
using System.Text;
using AppleAuth;
using AppleAuth.Enums;
using AppleAuth.Extensions;
using AppleAuth.Interfaces;
using AppleAuth.Native;
using TMPro;
using UnityEngine;
@wiverson
wiverson / SupabaseStuff.cs
Created April 28, 2023 23:19
Demo illustrating connecting Supabase to Unity
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Cysharp.Threading.Tasks;
using Postgrest.Responses;
using Supabase.Gotrue;
using Supabase.Gotrue.Exceptions;
using TMPro;
using UnityEngine;
using Client = Supabase.Client;