Skip to content

Instantly share code, notes, and snippets.

View charlietran's full-sized avatar
💭
hoolie doolie

Charlie Tran charlietran

💭
hoolie doolie
View GitHub Profile
@wtrebella
wtrebella / SceneHierarchyWindow.cs
Last active April 28, 2025 22:06
Scene Hierarchy Window is a Unity window that simplifies and speeds up the management of scenes that are loaded/unloaded/active in the hierarchy
// Created using Unity 2023.2, but if I'm not mistaken, this should work in older versions of Unity too
using System.Linq;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace Whitakr.Utils.Editor
{
@bps
bps / moaan-inkpalm-plus-setup.md
Last active December 26, 2025 03:23
Moaan InkPalm Plus setup

Moaan InkPalm Plus setup

I got this device set up nearly as I like, but then flew too close to the sun while experimenting with setting lock screen wallpaper and enabled a lock screen PIN which was then never accepted. After a reboot recovery in adb, if you hold the top button and press the volume up button, you can get to a menu where you can do a factory reset.

After I did that, I decided to write this down.

The firmware version this has now is: MAS_EPD305_L81B804_T44_V09.

Setup from factory reset

@AviDuda
AviDuda / gamediscoverco.user.js
Last active November 25, 2025 19:09
GameDiscoverCo userscript
// ==UserScript==
// @name GameDiscoverCo Steam utils
// @description Links to GameDiscoverCo Plus
// @namespace GameDiscoverCo
// @match https://store.steampowered.com/app/*
// @grant none
// @version 1.0
// @author Avi Duda <avi@gamediscover.co>
// @homepageURL https://gamediscover.co/
// @updateURL https://gist.github.com/AviDuda/8831316b2f20fdd4bbea375e2bed3416/raw/gamediscoverco.user.js
@fxposter
fxposter / bash.sh
Last active February 3, 2023 20:12
Docker with docker-compose for lima-vm
# now you can do
# alias docker="limactl shell docker docker"
# and run
# docker run --rm ubuntu
# port forwarding and volume mounting would work out out of the box
# docker run --rm -p 8080:80 -v `pwd`:/usr/share/nginx/html nginx
@lizthegrey
lizthegrey / attributes.rb
Last active August 29, 2025 15:40
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@steven2358
steven2358 / ffmpeg.md
Last active December 25, 2025 16:52
FFmpeg cheat sheet
@FlaShG
FlaShG / MyStaticCode.cs
Last active January 25, 2022 15:29
Execute any code based on Unity events without having to drag a component into a scene.
using UnityEngine;
/// <summary>
/// This template allows to define code that runs independently of any GameObjects or Components created in the editor, even though using Unity events.
/// It can be used for any Scene-independent code, including coroutines, without having to manually add a component to a scene.
/// </summary>
public static class MyStaticCode
{
[RuntimeInitializeOnLoadMethod]
private static void Initialize()
@yossorion
yossorion / what-i-wish-id-known-about-equity-before-joining-a-unicorn.md
Last active September 4, 2025 01:33
What I Wish I'd Known About Equity Before Joining A Unicorn

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active December 29, 2025 13:25
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.