Skip to content

Instantly share code, notes, and snippets.

@Saturate
Saturate / README.md
Created October 4, 2022 16:56
Project Zomboid - Generate WorkshopItems from Steam Workshop Collection

Project Zomboid - Generate WorkshopItems from Steam Workshop Collection

This snippet will generate a list suited for the Project Zomboid config from a Steam Workshop Collection.

How to use:

  1. Navigate to your collection (eg. https://steamcommunity.com/sharedfiles/filedetails/?id=2871262277)
  2. Copy the code in console.js
  3. Open the devtools for your browser (F12)
  4. Paste and run the code
  5. Copy the output
  6. Paste the config line into your config.

This script leverages Pywal and OpenRGB to sync the lighting of your devices (RAM, keyboard, mouse, fans, etc) to your wallpaper. See https://imgur.com/a/3Vq5SpJ for examples!

To use this script, you need to have OpenRGB (https://gitlab.com/CalcProgrammer1/OpenRGB) installed and running in server mode. Refer to the OpenRGB wiki for setup instructions as and for a list of supported devices.

openrgb --server --startminimized

Next, install https://github.com/dylanaraps/pywal which generates a colour palette from your wallpaper (this palette data is stored then in .cache/wal/colors.json and used by wal.js when configuring your RGB devices).

@phiresky
phiresky / motioninterpolation.vpy
Last active June 4, 2024 05:19
Realtime motion interpolating 60fps playback in mpv
# vim: set ft=python:
# see the README at https://gist.github.com/phiresky/4bfcfbbd05b3c2ed8645
# source: https://github.com/mpv-player/mpv/issues/2149
# source: https://github.com/mpv-player/mpv/issues/566
# source: https://github.com/haasn/gentoo-conf/blob/nanodesu/home/nand/.mpv/filters/mvtools.vpy
import vapoursynth
core = vapoursynth.get_core()