Skip to content

Instantly share code, notes, and snippets.

View AldeRoberge's full-sized avatar
💛
.

Alexandre D. Roberge AldeRoberge

💛
.
View GitHub Profile
@AldeRoberge
AldeRoberge / YouTubeFinder.cs
Created November 4, 2025 20:33
Allows to find a list of YouTube videos based on their titles.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text.Json;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
namespace YouTubeFinder
@AldeRoberge
AldeRoberge / Chocolatey.bat
Created October 25, 2025 00:47
List of great programs you can mass install with Chocolatey :)
@echo off
choco install googledrive --yes
choco install clickup-official --yes
choco install screentogif.install --version=2.35.2 --yes
choco install github-desktop --yes
choco install unity-hub --yes
choco install sublimetext4 --yes
choco install nvidia-broadcast --yes
@AldeRoberge
AldeRoberge / unity-webgl-local-server.bat
Created October 22, 2025 17:22
A local server with configurable port and folder to quickly get your WebGL build running on localhost.
import sys
from http.server import SimpleHTTPRequestHandler, HTTPServer
import os
class CompressedRequestHandler(SimpleHTTPRequestHandler):
"""HTTP handler that supports gzip (.gz) and Brotli (.br) files."""
def end_headers(self):
"""Set Content-Encoding header for compressed files."""
if self.path.endswith('.gz'):
@AldeRoberge
AldeRoberge / MovIntegrityChecker.cs
Last active October 17, 2025 14:03
MOV File Integrity Checker reads the last bytes of a .mov file and outputs error results. Useful for partially transferred files.
using System;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.Diagnostics;
using System.Globalization;
namespace MovFileIntegrityChecker
{
@AldeRoberge
AldeRoberge / github-issues-labels.md
Created October 9, 2025 20:23
A list of labels for issues in GitHub that might be useful. Inspired by Electron's way to label issues.

🐛 Bug & Error

Emoji Label Description
🐞 bug :beetle: General functional issue.
🔁 bug/regression :arrows_counterclockwise: Something that used to work, but doesn’t anymore.
💥 crash :boom: Causes the app to crash.

🪟 Platforms

| Emoji | Label | Description |

@AldeRoberge
AldeRoberge / AvatarCreateService.cs
Created October 2, 2025 15:03
Create images using Stable Diffusion API from C#
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
namespace SimpleAvatarGenerator
{
/// <summary>
@AldeRoberge
AldeRoberge / batchInvertColorPhotoshopScript.jsx
Created September 29, 2025 23:23
batchInvertColorPhotoshopScript.jsx
#target photoshop
// Ask the user to select a folder
var inputFolder = Folder.selectDialog("Select the folder containing PNG files to invert");
// Check if the user selected a folder
if (inputFolder != null) {
// Get all the PNG files in the selected folder
var pngFiles = inputFolder.getFiles("*.png");
@AldeRoberge
AldeRoberge / useful-ubuntu-tips.md
Created September 22, 2025 19:16
Useful Ubuntu Tips

Useful Ubuntu Tips

1. Check Open Ports

To see which ports are being used by your server:

sudo ss -tulnp
@AldeRoberge
AldeRoberge / ScaleOfThingsThatHappen.md
Created September 22, 2025 19:15
Scale of Things That Happen (or don't)

Scale of Things That Happen, from impossible fiction to real-life history.

Scale Description Examples
Impossible / Fictional Future Events or worlds that could never exist or are purely imagined. ???
Made-Up / Creative Fiction Imagined, but internally consistent within a story or game. Could exist in a fictional universe. Magical schools, dystopian societies, alternate history novels, role-playing game quests
Possible / Speculative Could happen, but hasn’t yet; relies on current science or trends. Colonizing Mars, AI achieving general intelligence, futuristic technology prototypes
Real-Life / Current Things that are actually happening today in the real world. Everyday events
Concrete History / Past Events that actually happened and are documented in history. World War II
@AldeRoberge
AldeRoberge / BackgroundScaler.cs
Created September 18, 2025 20:22
Scale a unity background to full size in portrait mode, and take about 1/3rd in landscape mode
using Sirenix.OdinInspector;
using UnityEngine;
namespace ADG.Scripts.Runtime
{
[ExecuteAlways]
[RequireComponent(typeof(RectTransform))]
public class BackgroundScaler : MonoBehaviour
{
[SerializeField, Required, BoxGroup("References")]