Skip to content

Instantly share code, notes, and snippets.

@jrapoport
jrapoport / DarkTheme.cs
Last active December 20, 2020 02:40 — forked from instance-id/DarkTheme.cs
Legit/Legal Unity 2019.3.0bx beta automatic dark theme on load
// Automatically switches to dark theme on launch
// Create an "Editor" folder and stick this script there, then restart, profit.
// Based on: https://gist.github.com/instance-id/3046ad29bd8782a3b3398cd9ae48ca92
// Thanks to:
// --- instance.id ------------------------------------------------------------
// Thanks to TheZombieKiller and Peter77 for creating this
// https://forum.unity.com/threads/editor-skinning-thread.711059/#post-4785434
// Tested on Unity 2019.3.0b1 - 95% Dark mode Conversion
// Example Screenshot - https://i.imgur.com/9q5VPQk.png
// (Note - Once I ran this, I had to hit play and then it took effect)
@jrapoport
jrapoport / different-ssh-deploy-keys-multiple-private-repos-github-go-mod.md
Last active November 1, 2024 02:56
How to use different ssh deploy keys for multiple private github repositories with Golang Modules (go mod)

How to use different ssh deploy keys for multiple private github repositories with Go Modules

Let's assume you are using Go Modules and have a go.mod file that contains multiple private repos each with a different ssh key. How can you get go mod download to do the right thing -- i.e. use ssh key A with private repo A and ssh key B with private repo B?

Ok, here we go!

Let's assume you have some github.com user with multiple private repos:

https://github.com/someuser/private-repo-1

@jrapoport
jrapoport / abusing-docker-compose-environment-variables-for-fun-and-profit-env-file-env_file.md
Last active December 25, 2020 22:56
Abusing Docker Compose environment variables for fun and profit

Abusing Docker Compose environment variables for fun and profit

Are you using Docker Compose but annoyed at the convoluted management and maintenance of runtime environment variables for your containers? Then this is for you.

TLDR;

Easily manage env vars across environments and containers:

1. Update your docker-compose.yml: