Skip to content

Instantly share code, notes, and snippets.

View dsthedev's full-sized avatar

dsthedev dsthedev

  • dsthedev
  • Earth
View GitHub Profile
@dsthedev
dsthedev / everymod.html
Created August 31, 2025 18:41
A single page that uses datatables to search, filter, select, and export a selection of mods from the everymod.py script for Valheim + R2ModMan (Thunderstore)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Every Mod List</title>
<script src="https://cdn.jsdelivr.net/npm/js-yaml@4.1.0/dist/js-yaml.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
<style>
@dsthedev
dsthedev / everymod.yml
Created August 31, 2025 18:24
Place in ~/.config/r2modmanPlus-local/Valheim/profiles/ to scan all profiles to create a master list of every mod present across them.
# .config/r2modmanPlus-local/Valheim/profiles/everymod.yml
import os
import yaml # pip install pyyaml
import csv
# Path to profiles folder = current script location
PROFILES_DIR = os.path.dirname(os.path.abspath(__file__))
OUTPUT_YAML = os.path.join(PROFILES_DIR, "everymod.yml")
@dsthedev
dsthedev / all_pieces_and_recipes.json
Last active August 30, 2025 00:48
All Valheim buildable pieces and recipes combined into one json file for use in planalyzer project.
{
"stonemarble_2x2x2": {
"StoneChisel": "1",
"Stone": "4"
},
"piece_cauldron": {
"Tin": "10"
},
"wooden_fence_2": {
"Wood": "3"
@dsthedev
dsthedev / all_pieces.json
Created August 29, 2025 23:15
JSON list of all buildable pieces in Valheim. Used WackyDB to export, and python to parse yml files and merge into this.
{
"stonemarble_2x2x2": {
"StoneChisel": "1",
"Stone": "4"
},
"piece_cauldron": {
"Tin": "10"
},
"wooden_fence_2": {
"Wood": "3"
@dsthedev
dsthedev / dircrawl.sh
Last active January 18, 2023 07:42
Bash script to crawl a directory for images, move them to a dump folder renamed using a hash, strip all exif, and optimize with imagemagick.
#!/bin/bash
# The purpose of this little script is to scan the current folder recursively looking for image files and do one of the following:
# - [d] display the full list of all images found for review
# - [s] save a linked list in markdown of all files found including their original relative path for reference
# - [c] copy all files found to the dump folder
# - [m] move all files found to the dump folder
# - [e] run exiftool to strip all metadata in place, no backup!
@dsthedev
dsthedev / reset.css
Last active April 24, 2023 01:18 — forked from EllyLoel/reset.css
CSS Reset
/*
Original by Elly Loel - https://ellyloel.com/
With inspiration from:
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/
- Adam Argyle - https://unpkg.com/open-props@1.3.16/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE
Modified by/for - d11z
Notes:
- `:where()` is used to lower specificity for easy overriding.
@dsthedev
dsthedev / .ds_sh_profile.sh
Last active January 26, 2023 13:45
My personal shell / terminal profile helpers for macOS & linux machines.
# d11z; shell profile
# - https://gist.github.com/dsthedev/f1a54a3d2f9c245efe842b78b2fe1293
#
# if [ -f ~/.ds_sh_profile.sh ]; then
# . ~/.ds_sh_profile.sh
# fi
#
# On Windows the default file is ~/.bashrc
# Wifi