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.py
Created July 20, 2024 03:14
Shitty code to compare 2 videos by alternating them with a divider bar. Barely functional, YMMV.
#!/usr/bin/env python3
import sys
import os
import subprocess
import json
import argparse
def get_video_info(video_path):
cmd = [
@SharkWipf
SharkWipf / Nerfstudio-WSL2.md
Last active July 26, 2024 22:12
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.

Tested working on Windows 11 Enterprise on 2024-05-31 (should work on all mainstream up-to-date Windows 10/11 versions).
Warning: Deviates from official installation instructions (Both Windows and Linux) in several areas. YMMV.

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.

@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