Skip to content

Instantly share code, notes, and snippets.

@Ryan1729
Ryan1729 / README.md
Last active December 11, 2025 12:01
VNyan Model Spinning

VNyan Model Spinning

This is a set of Vnyan nodes that when triggered, cause the model to spin for a short time, then stop and reset the rotation to 0.

You may want to adjust which model bone the rotation happens from by changing the Game Object Name fields on the two Object Rotation nodes. A hip bone may be a good choice!

Originally tested on VNyan 1.6

This work is marked CC0 1.0 Do what you like with it!

@Ryan1729
Ryan1729 / README.md
Created October 13, 2025 22:43
Using the .git-credentials file with github tokens

This gist describes a method to set up git to read your github token from a file and automatically allow you to use commands like git push without eeding to provide the token every time.

You should understand that storing the token in plaintext in a relatively standard location could allow a savy adversary to steal it, and wreak havoc with your github account. But, hopefully you'd have the opportunity to revoke the token before they managed to do any harm, say after stealing your laptop.

Step 1. Create a github token

Follow these official instructions This has so far on;y been shown to work with classic tokens.

Step 2. Create a ~/.git-credentials file

In your home directory make a plain text file called .git-credentials and give it the following content

@Ryan1729
Ryan1729 / zathurarc
Last active June 8, 2023 16:31
zathurarc
# zathurarc
# dark mode!
set recolor true
# Hide statusbar
set guioptions none
# Swap <C-d> and d, and change half-down to full down
map [normal] d scroll full-down
@Ryan1729
Ryan1729 / mathjax.html
Last active September 21, 2020 16:04
Mathjax on textarea keyup
<!DOCTYPE html>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style type="text/css">body{
margin:40px auto;
max-width:650px;
line-height:1.6;
font-size:18px;
color:#888;
background-color:#111;
padding:0 10px
@Ryan1729
Ryan1729 / README.md
Created August 8, 2020 01:39
An over-extended Programming Language analogy

Java is premade "enterpise-grade" coffee that comes in a disposable metal can with a plastic spigot. Just heat and serve. Unfortunately the mixture is very weak, so there's a bunch of products designed for you to add to it, but you ultimately you still taste the Java underneath.

C++ is soda with lots of additives, that only comes in packages containg 6 assorted flavours, and many people don't like many of the flavours. Some people disagree on which flavours are gross. Hoever, the cans are recyclable, so that's why games use it. Unfortunately easy to cut yourself on the packaging as well.

Golang is a smaller, Plan9-flavoured, fewer ingredient, less water, version of Java. Still comes in a disposable can with a spigot.

Rust is Haskell-flavoured soda with fewer additives that only comes in one flavour, like normal, geez. The packaging is specially designed to prevent you from cutting yourself, unless you purposely remove certain parts. The packaging is also recyclable, but you need to drive to a specific plac

@Ryan1729
Ryan1729 / README.md
Last active July 1, 2020 14:49
The nuclear option for when a page does not have a dark mode

Nuclear Dark Mode

Open the browser console and paste the contents of nuclearDarkMode.js inside it.

Known bugs

  • iframes apparently cannot have their styles set by the host page, and are instead removed entirely. Some pages have content in iframes.
  • pseudo-elements may still have bright background colors. Is there a reasonable way to fix this?
@Ryan1729
Ryan1729 / paste_at_the_bottom_of_world_gen.txt
Created May 15, 2020 02:03
A Dwarf fortress 0.47.04 worldgen preset with lots of volcanos
[WORLD_GEN]
[TITLE:VOLCANOS]
[DIM:129:129]
[EMBARK_POINTS:1504]
[END_YEAR:1050]
[BEAST_END_YEAR:200:80]
[REVEAL_ALL_HISTORY:1]
[CULL_HISTORICAL_FIGURES:0]
[ELEVATION:1:400:401:401]
[RAINFALL:0:100:200:200]
@Ryan1729
Ryan1729 / README.md
Last active September 26, 2024 22:51
I3 config
  • i3.config should be named /home/$USER/.config/i3/config

  • i3status.config should be named /home/$USER/.config/i3status/config

@Ryan1729
Ryan1729 / configuration.nix
Last active May 3, 2020 03:54
First attempt at a NixOS config
{ config, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
@Ryan1729
Ryan1729 / main.rs
Last active April 29, 2020 16:38
A toy program that uses two threads to test multi-threaded debugging
use std::thread;
use std::time::{Duration, Instant};
use std::sync::mpsc::channel;
fn main() {
let (in1, out1) = channel();
let (in2, out2) = channel();
thread::Builder::new()
.name("1st".into())