Skip to content

Instantly share code, notes, and snippets.

View terrehbyte's full-sized avatar
Keqing Story Quest When?

Terry Nguyen terrehbyte

Keqing Story Quest When?
View GitHub Profile
@Saren-Arterius
Saren-Arterius / Waydroid.sh
Last active January 21, 2025 16:05
Install Waydroid on Steam Deck (As of 2024-03-16)
#!/bin/sh
cage -- bash -c 'wlr-randr --output X11-1 --custom-mode 1280x800; sleep 1; sudo /usr/local/bin/waydroid-helper & waydroid show-full-ui'
@cdleveille
cdleveille / Install⁄Update Xone
Last active February 11, 2025 04:58
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=bash $HOME/xone_install_or_update.sh
GenericName[en_US]=
GenericName=
Icon=preferences-desktop-gaming
MimeType=
Name[en_US]=Install⁄Update Xone
Name=Install⁄Update Xone
@stonstad
stonstad / UnityUtils.cs
Created September 22, 2020 17:15
Locate Unity Assets Which Contain Broken References
using System;
using System.IO;
using UnityEditor;
using UnityEngine;
using System.Linq;
using System.Threading.Tasks;
public class UnityUtils: MonoBehaviour
{
[MenuItem("Tools/Find Broken GUIDs")]

how to build the super mario 64 pc port

the binary will be in build/sm64.us.f3dex2e

PC Port - Before Building

  • get the sm64 US rom in z64 format, rename to baserom.us.z64 and put it in the sm64pc root folder
  • you can also use the japanese rom (except rename to .jp instead of .us) and when you run make you would pass VERSION=jp
@LotteMakesStuff
LotteMakesStuff / NetworkingTools.cs
Last active April 28, 2023 09:49
Since Unity 2018.3 we've had this cool new tool called [SettingsProvider] that we can use to add custom settings menu into Unitys settings screens. This short example shows how i use [SettingsProvider] and some [MenuItems] to help build and run test clients when im developing a multiplayer game. My usecase is that i want a quick way to build and…
using System.Collections.Generic;
using System.Diagnostics;
using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
using Debug = UnityEngine.Debug;
public static class NetworkingTools
{
@LotteMakesStuff
LotteMakesStuff / LayoutUtils.cs
Last active November 2, 2023 21:04
Simple tool for importing editor layout files (.wlt files) from the asset folder. this is cool cos you can then share layouts with your team via source control
// put me in an Editor folder
using System.IO;
using UnityEditor;
using UnityEditorInternal;
using UnityEngine;
public static class LayoutUtils
{
// unity stores layouts in a path referenced in WindowLayout.LayoutsPreferencesPath.
// Unfortunately, thats internal - well just creat the path in the same way they do!
@Beefster09
Beefster09 / scale.frag
Last active June 30, 2024 22:32
GLSL: smooth pixel scaling
#version 330 core
in vec2 frag_uv;
uniform sampler2D virtual_screen;
uniform float sharpness = 2.0;
out vec4 frag_color;
float sharpen(float pix_coord) {
@QuantumCalzone
QuantumCalzone / LayoutElementExtended.cs
Last active April 1, 2021 23:08
An extension of Unity's LayoutElement script that enable more flexible adaptation such as matching another RecTransform's dimensions or setting maximum preferred values. Put the Inspector and Property Drawer scripts in an Editor folder. Also available as a package at https://github.com/QuantumCalzone/UnityLayoutElementExtended
using UnityEngine;
using UnityEngine.UI;
namespace QuantumCalzone
{
[AddComponentMenu("Layout/Extended/Layout Element Extended")]
[RequireComponent(typeof(RectTransform))]
public class LayoutElementExtended : LayoutElement
{
public LayoutElementExtendedValue MinWidthExtended = new LayoutElementExtendedValue();
@aras-p
aras-p / rebuild_postmortem.md
Last active July 20, 2017 05:20
2017 end of June "rebuilds too much" regression postmortem

Basically throughout 2017 June, Unity trunk had a problem where all C++ source files would be recompiled if you just did an Editor build followed by Standalone build, and were doing an Editor build again. Most of the build team was away (vacations/conferences), so it wasn't fixed ASAP :(

This is the fix: <url_removed>

I have spent close to three days tracking in down; in retrospect should have found it way sooner. Not quite sure why I didn’t :(

Summary of the issue

@nicolasdao
nicolasdao / open_source_licenses.md
Last active April 29, 2025 00:59
What you need to know to choose an open source license.