Skip to content

Instantly share code, notes, and snippets.

View rveachkc's full-sized avatar

rveachkc

View GitHub Profile
@rveachkc
rveachkc / airsonic_playlist_mover.sh
Last active February 9, 2018 23:00
Search for playlists, and move them all into an import directory.
#! /bin/bash
# This is a script I'm using to copy m3u playlist files from my music library into an import directory for Airsonic.
# This will flatten out the directory structure and also remove files in the destination that are no longer in the source.
# please test the configurable variables with rsync's --dry-run.
# configurables
## Location to search for m3u playlists recursively
PLAYLIST_EXPORT_DIR=/<path>/<to>/<search>/<for>/<playlists>
PLAYLIST_DESTINATION=/<path>/<to>/<save>/<playlists>
@rveachkc
rveachkc / acme-cert-dump.py
Created January 30, 2019 06:30 — forked from JayH5/acme-cert-dump.py
Dump certificates from Traefik's acme.json
#!/usr/bin/env python
import argparse
import base64
import json
import os
import shlex
import subprocess
import sys
@rveachkc
rveachkc / zwave-js-keygen.py
Created February 5, 2021 02:42
zwave key generator for zwave-js
#! /usr/bin/env python
"""
This quick script will generate a random key for use in zwave-js
"""
import random
bit_choices = ["0x{:02d}".format(x) for x in range(0,16)]
key = ", ".join([random.choice(bit_choices) for x in range(0,16)])
@rveachkc
rveachkc / zwave-js_docker.md
Last active September 9, 2024 06:35
Getting zwave-js running in docker

Update: Just run ZwaveJS2Mqtt

Shortly after writing this, I realized that ZwaveJS2Mqtt can be used with a websocket connection instead of the mqtt. I've had a great experience with it, so there's really no good reason to use what is below.

Documentation: https://zwave-js.github.io/zwavejs2mqtt/#/

I'll leave the text below, because somebody might find it useful.

Getting zwave-js running in docker