Skip to content

Instantly share code, notes, and snippets.

View tofi86's full-sized avatar

Tobias Fischer tofi86

View GitHub Profile
@Naikless
Naikless / enable_webdav.sh
Last active October 3, 2026 21:40
Re-enable WebDAV on WD MyCloudEX2Ultra for OS 5
#!/bin/sh
# Define key paths as variables
SETUP_DIR="/usr/local/config/setup_webdav"
APACHE_CONF_DIR="/usr/local/apache2/conf"
SYSTEM_CONF="/usr/local/config/system.conf"
TARGET_HTTPD_CONF="$SETUP_DIR/httpd.conf"
MODS_ENABLED_DIR="$SETUP_DIR/mods-enabled"
# Create necessary directories
@OrionReed
OrionReed / dom3d.js
Last active August 17, 2026 20:05
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@tgp-2
tgp-2 / Plexamp-headless-install.md
Last active October 9, 2026 23:23
install and set up Plexamp headless on Raspberry Pi

Plexamp headless install

NOTE: As of June 2026, Plexamp headless is no longer supported, recommend switching to its replacement Caldera headless

install and setup guide for Plexamp headless on the Raspberry Pi

  • installs Plexamp version 4.13.2 and prepares systemd service (to auto-start Plexamp at power up)
  • installs node 20 using nvm for version management
  • NEW option to setup --user service (for use with pipewire, a desktop, etc)
  • NEW option to uninstall
@jenningsb2
jenningsb2 / custom.css
Last active October 30, 2023 07:13
My current CSS theme for Logseq
@import url("https://fonts.rcvd.io/iA Writer/stylesheet.css");
:root {
--highlight-color: #ffdb8a;
}
a.tag[data-ref="important"] {
border: 1px solid currentColor;
background-color: var(--ct-block-reference-background);
padding: 0 4px;
@marco79cgn
marco79cgn / schnelltest-availability.js
Last active September 28, 2024 12:57
Shows the available amount of Covid Tests in your local drug store and online
let country = "de"; // replace with 'at' for shops in Austria
let storeId = 251;
let param = args.widgetParameter;
if (param != null && param.length > 0) {
if (param.indexOf(";") > 0) {
const paramSplit = param.split(";");
storeId = paramSplit[0];
country = paramSplit[1].toLowerCase();
} else {
storeId = param;
@marcusraitner
marcusraitner / covid-19-7-day-incidence-county.js
Last active June 6, 2023 18:12 — forked from MatzeKitt/covid-19-chart-county.js
Script for ScriptableApp displaying the 7-Day-Incidence in your county in Germany
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-gray; icon-glyph: magic;
// Licence: GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007
// Author: Marcus Raitner (https://fuehrung-erfahren.de)
// Source: https://github.com/marcusraitner/COVID-19-Dashboard
// ## Changelog
// * 1.0.1: Correction of layout of label for covid-beds
// * 1.0.2: Bug-Fix for Saar-Pfalz-Kreis (using GEN instead of county for join)
// * 1.0.3: Bug-Fix for Landsberg a. Lech (now using both GEN and county)
@marco79cgn
marco79cgn / vaccination-stats.js
Last active September 28, 2026 22:15
A Scriptable widget that shows the amount of people who have received the corona vaccination in Germany
// Version 1.3.0
// 27.11.2021
//
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: notes-medical;
// Mit Caching und Fallback
const cacheMinutes = 60; // 60 min
const today = new Date();
const neededTotalVaccinations = 83200000;
@ChristopherA
ChristopherA / brew-bundle-brewfile-tips.md
Last active November 9, 2026 22:20
Brew Bundle Brewfile Tips

Brew Bundle Brewfile Tips

Copyright & License

Unless otherwise noted (either in this file or in a file's copyright section) the contents of this gist are Copyright ©️2020 by Christopher Allen, and are shared under spdx:Creative Commons Attribution Share Alike 4.0 International (CC-BY-SA-4.) open-source license.

Sponsor

If you more tips and advice like these, you can become a monthly patron on my GitHub Sponsor Page for as little as $5 a month; and your contributions will be multipled, as GitHub is matching the first $5,000! This gist is all about Homebrew, so if you like it you can support it by donating to them or becoming one of their Github Sponsors.

@oktomus
oktomus / fork-custom-commands.md
Last active October 3, 2026 22:09
Fork custom commands

With custom commands, you are one shortcut away to run commands thanks to the Quick Launch (Ctrl+P, ⌘+P).

Custom commands can be configured in File > Preferences > Custom commands, or by editing the json file custom-commands.json located in AppData/Local/Fork on Windows and ~/Library/Application Support/com.DanPristupov.Fork/custom-commands.json on MacOS.

Please share your own custom commands :)

How to use

Fork commands are posted as comments on this gist. Press CTRL+F to search for commands.

@joewiz
joewiz / CompareTools.plist
Last active February 28, 2023 05:25
Add oXygen as Diff & Merge Tool for Git Tower
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>ApplicationIdentifier</key>
<string>ro.sync.exml.DiffDirs</string>
<key>ApplicationName</key>
<string>Diff Directories</string>