Skip to content

Instantly share code, notes, and snippets.

View fadookie's full-sized avatar
🕹️
😹

Eliot Lash fadookie

🕹️
😹
View GitHub Profile
@fadookie
fadookie / 0-README.md
Last active October 21, 2024 23:25
GitHub License Query Tool

This tool helps query your own GitHub repos to see which licenses you've used. It would be pretty easy to adapt this to query any user or organization's public repos, but I'll leave that as an exercise for the reader.

Open the GitHub GraphQL Explorer (or any GraphQL client) and run the provided query. If pageInfo.hasNextPage is true, use the provided cursor to query for the next page, see Using pagination in the GraphQL API for more info. Merging multiple pages for use by the JS collator script is also left as an exercise for the reader.

Then, run the JS code to collate the results, it's probably easiest to do in your browser's JS console but any JS REPL such as Node.JS will do.

@fadookie
fadookie / vimcheatsheet.txt
Created October 1, 2024 19:54
Eliot's Vim Cheat Sheet
vimcheatsheet.txt
Eliot's Vim Cheat Sheet
Last Updated 2011-08-11
Pick up on vimtutor line 805.
[#] is a placeholder for a number, so an example of [#]w is 2w
[CHAR] is a placeholder for a character, so and example of t[CHAR] is te
invoking vim from the shell:
@fadookie
fadookie / RivenQuestReview.md
Last active July 2, 2024 21:25
My Riven Meta Quest Review

In the 90's I was obsessed with the original Myst and Riven. I wanted nothing more than to visit them for real. This is as close as I am going to get to that, and I am very grateful for it.

I am several hours into the game at this time of writing. Cyan has done an amazing job getting a graphically demanding game to run decently well on Quest standalone (I am using a Quest 3.) I've noticed a few issues such as visible LOD mesh and particle effect pop-in, the water looks pretty bad compared to the PC version, and there's occasional stuttering when moving quickly, but nothing has really broken my immersion too badly. But the extreme draw distance with the level of detail they've achieved is incredible.

I think the CG humans are much improved over Myst (2021), they still look a bit videogame-y but so far have been good enough. It's a shame, but necessary, to lose the original FMV performances, and I think the new actors and mocap performance matching to original audio has worked pretty well, although I haven't

@fadookie
fadookie / decky-plugin-template-errors.txt
Last active February 19, 2024 22:10
Error output from decky-plugin-template builddeploy step.
Error: the task 'depsetup' neither specifies a command nor a dependsOn property. The task will be ignored. Its definition is:
{
"label": "depsetup",
"type": "shell",
"group": "none",
"detail": "Install depedencies for basic setup",
"linux": {
"command": "${workspaceFolder}/.vscode/setup.sh"
},
"problemMatcher": []
@fadookie
fadookie / yagpdb-sendMessage.awk
Created August 29, 2023 01:13
YAGPDB Custom Command to send a message to a channel without an embed.
{{/* ACTUAL CODE DONT TOUCH */}}
{{$hasContent := false}} {{$content := false}} {{$contentV := ""}} {{$channel := false}} {{$channelV := .Channel.ID}}
{{$flags := cslice "-channel" "-content"}}
{{- range $k, $v := .CmdArgs -}}
{{- if eq . "-content"}} {{$content = true}} {{else if in $flags .}} {{$content = false}} {{end -}}
{{- if and ($content) (not (eq . "-content"))}} {{$hasContent = true}} {{$contentV = joinStr " " $contentV .}} {{end -}}
{{- if eq . "-channel"}} {{$channel = true}} {{else if in $flags .}} {{$channel = false}} {{end -}}
{{- if and ($channel) (not (eq . "-channel"))}} {{$checkChannel := reReplace `<|>|#` . ""}} {{with getChannelOrThread $checkChannel}} {{$channelV = .ID}} {{end}} {{end -}}
{{- end -}}
# The Davar Sisters - Parody of The Schuyler Sisters from Hamilton
[ADOLIN]
There’s nothing lighteyes love more
Than going to the shattered plains and slummin’ it with the poor
They pull up in their carriages and gawk
At the soldiers in the common
Just to watch them talk
Take Lin Davar: the man was loaded
Uh-oh, but little did he know that
@fadookie
fadookie / rules.yaml
Created January 10, 2021 21:18
"Ohio" Sub Example for OpenRA Modding
OHIOSUB:
Inherits: ^Ship
Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove
Buildable:
Queue: Ship
BuildAtProductionType: Submarine
BuildPaletteOrder: 60
Prerequisites: ~syrd, atek, ~techlevel.unrestricted
Description: Submerged anti-ground siege unit\nwith anti-air capabilities.\nCan detect other submarines.\n Strong vs Buildings, Ground units, Aircraft\n Weak vs Naval units\n Special Ability: Submerge
Valued:
@fadookie
fadookie / README.md
Last active August 19, 2020 20:30
Proof-of-concept plugin to export blockbench entity models for Fabric mods

Moved to official plugins repo!

Good news, this plugin has graduated to the official repo. Please see below for install and usage instructions.

@fadookie
fadookie / spren1.java
Last active June 15, 2020 03:57
Blockbench to fabric export
package com.eliotlash.stormlight;
// Made with Blockbench 3.5.4
// Exported for Minecraft version 1.15
// Paste this class into your mod and generate all required imports
import net.minecraft.client.model.ModelPart;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.render.entity.model.EntityModel;
import net.minecraft.client.util.math.MatrixStack;
@Mixin(ServerWorld.class)
public class ServerWorldMixin extends World {
// I had to implement this to make the compiler happy but I'm hoping it's not actually going to be called
private ServerWorldMixin() {
super(null, null, null, null, false);
}
// This was working before I tried to access this.dimension
@Inject(at = @At("RETURN"), method = "<init>(Lnet/minecraft/server/MinecraftServer;Ljava/util/concurrent/Executor;Lnet/minecraft/world/WorldSaveHandler;Lnet/minecraft/world/level/LevelProperties;Lnet/minecraft/world/dimension/DimensionType;Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/server/WorldGenerationProgressListener;)V")
private void constructor(MinecraftServer server, Executor workerExecutor, WorldSaveHandler worldSaveHandler, LevelProperties properties, DimensionType dimensionType, Profiler profiler, WorldGenerationProgressListener worldGenerationProgressListener, CallbackInfo info) {