Skip to content

Instantly share code, notes, and snippets.

@julthon
julthon / .asoundrc
Created February 1, 2024 15:17
Alsa record audio output - Loopback - Visualizer (LedFx) - Raspberry Pi
# .asoundrc
# Define output for easier access by name, find card name with "aplay -l"
pcm.headphones {
type hw
card "Headphones"
}
# snd_aloop needs snd-aloop -> "sudo modprobe snd-aloop"
# Loopback device for input, routes to loopout
@julthon
julthon / deploy.sh
Created September 15, 2023 18:04
React static build as Azure Static Webapp
#!/bin/bash
DEPLOYMENT_TOKEN="put_your_token_here"
docker run -it -v ./build:/app mcr.microsoft.com/appsvc/staticappsclient:stable /bin/staticsites/StaticSitesClient upload --app "/app" --skipAppBuild true --skipApiBuild true --workdir /app --apiToken "$DEPLOYMENT_TOKEN"
@julthon
julthon / fluentuiv9withtailwind.js
Created September 8, 2023 01:21
Fluent UI v9 Colors with Tailwind CSS
module.exports = {
theme: {
extend: {
colors: {
"colorNeutralForeground1": "var(--colorNeutralForeground1)",
"colorNeutralForeground1Hover": "var(--colorNeutralForeground1Hover)",
"colorNeutralForeground1Pressed": "var(--colorNeutralForeground1Pressed)",
"colorNeutralForeground1Selected": "var(--colorNeutralForeground1Selected)",
"colorNeutralForeground2": "var(--colorNeutralForeground2)",
"colorNeutralForeground2Hover": "var(--colorNeutralForeground2Hover)",
@julthon
julthon / FPSCounter.cs
Created October 23, 2019 13:42
Simple Unity FPS Counter
using System.Collections;
using UnityEngine;
public class FramesPerSecond : MonoBehaviour
{
[SerializeField] private Color textColor = Color.red;
float deltaTime = 0.0f;
private Rect rect;