Some time ago, I stumbled upon a Python IPMI fan control script that wrapped the ipmitool
. This script worked great for a long time, but I always had to set it up when rebooting my home NAS. A major OS upgrade gave me the opportunity to revisit, and I used a bit of "vibe" coding to convert the Python to straight Bash and add a systemd
service.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** 1. You should use hider plugin and hide additional items to look like whats in my reddit post | |
** 2. i also hided elements in settings which i dont remember what | |
** 3. enjoy! | |
*/ | |
body { | |
--background-primary: #000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Hacked from https://superuser.com/a/1586033 | |
set -e | |
GPG_PRESET_PASS="/usr/lib/gnupg/gpg-preset-passphrase" | |
SCRIPT="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
if [[ -z $1 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[localhost] TASK: install package (debug)> from jinja2 import Environment | |
[localhost] TASK: install package (debug)> e = Environment() | |
[localhost] TASK: install package (debug)> t = e.from_string(task.args['msg']) | |
[localhost] TASK: install package (debug)> t.render(task_vars) | |
'foo' | |
or | |
I wanted to convert my small-ish TiddlyWiki site to an Obsidian.md vault, and while the instructions I found on forums, et al, were immensely helpful, I still had to hack at the process a bit.
Note My TiddlyWiki installation is a Nodejs server running on Alpine (via a Docker container), but my Obsidian installation is running on Windows, iOS, and others. YMMV.
My journey ...
-
First, read this forum post and the original blog post to understand the basic workflow.
-
Copy the two Nodejs scripts,
safe-construct.js
andsafe-rename.js
NewerOlder