Skip to content

Instantly share code, notes, and snippets.

View mathias-bevers's full-sized avatar

Mathias Bevers mathias-bevers

View GitHub Profile
@mathias-bevers
mathias-bevers / fix-unity-ndk-path.sh
Last active March 31, 2026 14:30 — forked from foriequal0/fix-unity-ndk-path.sh
Fix Unity NDK Path
#!/usr/bin/env bash
UNITY_HUB_EDITOR=${1:-$HOME/Unity/Hub/Editor}
pushd "$UNITY_HUB_EDITOR" > /dev/null
for UNITY in *; do
echo "Checking: $UNITY"
CLANGPP="$UNITY_HUB_EDITOR/$UNITY/Editor/Data/PlaybackEngines/AndroidPlayer/NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++"
if ! [ -f "$CLANGPP" ]; then
echo " Android Build Support is not installed"
@mathias-bevers
mathias-bevers / prompt.sh
Last active May 16, 2025 13:39
my take for a simple shell prompt
# run the prompt after every command.
PROMPT_COMMAND=prompt_command_hook
function prompt_command_hook()
{
# get the current branch in the format (branch)
GIT_BRANCH=$(__git_ps1 "(%s)")
# if the branch is null, only display user, pwd
# else add an @ and the branch
@mathias-bevers
mathias-bevers / Debug.cs
Last active December 6, 2022 21:40
C#-console debug class. Basic console logs with some extra tags ang colors to make debugging a bit easier on the eyes.
using System.Runtime.CompilerServices;
using System.Linq;
using System;
#pragma warning disable CS8625
namespace Mathias
{
/// <summary>
/// A helper class to make logging information to the console easier.
/// <see href="https://gist.github.com/mathias-bevers/6579c5a397c70ba061e57c1f90ffbc9f">Source</see>