Skip to content

Instantly share code, notes, and snippets.

View SharkWipf's full-sized avatar

Sebastiaan SharkWipf

View GitHub Profile
@SharkWipf
SharkWipf / create_video_comparison.md
Last active August 23, 2024 22:23
Shitty code to compare 2 videos by alternating them with a divider bar. Barely functional, YMMV. MOVED TO PROPER REPO
@SharkWipf
SharkWipf / Nerfstudio-WSL2.md
Last active November 3, 2024 13:48
Nerfstudio (with COLMAP + HLOC + FFMPEG) on Windows via WSL2

Nerfstudio (with COLMAP* + HLOC* + FFMPEG*) on Windows via WSL2

* Via Pixi

Old instructions stopped working on Gsplat 1.0.0+. Updated and simplified on 2024-07-09. Now no longer deviates from official installation instructions.

2024-11-03: Microsoft updated the default WSL2 distro to Ubuntu 24.04. One extra command is needed to make it work now.

For native Linux start-to-finish installation instructions, see this document instead.

For context: WSL2 is a Windows built-in way to run Linux applications on Windows, in a tightly integrated virtual machine.
This, in theory, lets you run Linux applications without the complexity and trouble of actually having to run Linux.
In practice, there are still a few caveats, most notably the complex custom CUDA implementation Windows uses to make this work.

@SharkWipf
SharkWipf / nerfstudio install.md
Last active May 31, 2024 02:38
Unofficial start-to-finish instructions on how to install cuda & nerfstudio on AlmaLinux/Rocky Linux/Oracle Linux/RHEL

Unofficial Installation Instructions for NerfStudio on RHEL/AlmaLinux/Rocky Linux/Oracle Linux 9.2+

Tested on AlmaLinux. Should allow you to install NerfStudio on either a squeaky clean install or an existing install. Will not work for Fedora, may work for CentOS (untested), but I wouldn't risk it. Will not work for non-RHEL-based distros.

NerfStudio evolves quickly, and Nvidia is a pain. Instructions work today, they may not work tomorrow. Use at your own risk.

For instructions on how to install Nerfstudio under WSL2 on Windows, see this document instead.

Initial Setup

@SharkWipf
SharkWipf / Malyan.md
Last active March 6, 2023 23:44
What I've learned messing around with a 2nd hand Malyan M200, documented for my and others' future reference.

What I've learned messing around with a 2nd hand Malyan M200, documented for my and others' future reference.

This is a simple brain dump after I spent a day and a half figuring out the 2nd hand printer my brother bought, I figured it might be useful to others as well.

First off, beware of the cables. This model is notorious for the Y axis eating the bed heater cables, which will, sooner than later, make the bed heater or thermistor stop working.

Our printer seems to have the exterior of the Malyan M200 v1, but seems to only run the Malyan M200 v2 firmware. This conflicts with the information available on how to recognize what version you have. Well, you figure it out fast enough when you start flashing firmware, only one works properly.

Malyan M200 series is one-to-one compatible with the MonoPrice Select Mini (MPSM or mpselectmini for short) series, white-label rebrand.

@SharkWipf
SharkWipf / start.sh
Created June 11, 2022 23:21
Modified ftb server startup script, because theirs is broken af. Will get overwritten on updates if you don't rename it.
#!/bin/bash
cd "$(dirname "$0")"
if ! grep -q "eula=true" eula.txt; then
echo "Do you agree to the Mojang EULA available at https://account.mojang.com/documents/minecraft_eula ?"
read -N 1 -p "[y/n] " EULA
if [ "$EULA" = "y" ]; then
echo "eula=true" > eula.txt
echo
---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.
Time: 4/12/21, 11:37 PM
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) ~[?:?] {re:classloading}
at net.minecraftforge.fml.server.ServerModLoader.load(ServerModLoader.java:51) ~[?:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:95) ~[?:?] {re:classloading}
---- Minecraft Crash Report ----
// Don't be sad. I'll do better next time, I promise!
Time: 4/12/21, 11:36 PM
Description: Mod loading error has occurred
java.lang.Exception: Mod Loading has failed
at net.minecraftforge.fml.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:85) ~[?:?] {re:classloading}
at net.minecraftforge.fml.server.ServerModLoader.load(ServerModLoader.java:51) ~[?:?] {re:classloading}
at net.minecraft.server.Main.main(Main.java:95) ~[?:?] {re:classloading}
@SharkWipf
SharkWipf / ansible_helpers.sh
Created March 23, 2019 03:34
Ansible skeleton project helper functions
# Ansible helper functions
# Source this file with Bash to load the functions (or put it in your .bashrc)
# Create a skeleton for a new role
ansible-skeleton-role() {
if [ "$1" = '' ]; then role="common"; else role="$1"; fi
mkdir -p "${role}"/{tasks,handlers,templates,files,vars,defaults,meta,library,module_utils,lookup_plugins}
}
# Create a new project skeleton