Skip to content

Instantly share code, notes, and snippets.

View stephan-t's full-sized avatar

Stephan T stephan-t

View GitHub Profile
@stephan-t
stephan-t / scan-mbl.sh
Created October 29, 2021 03:41
Interactive script used to detect any newly added or modified files on a WD MyBook Live NAS
#!/bin/bash
# Interactive script used to detect any newly added or modified files on
# a WD MyBook Live NAS that may have been introduced by a malicious attacker.
# This is done by comparing files on root partition to original firmware.
# Set to root directory of MyBook Live root partition
MBL_DIR=''
# Set to root directory of original MyBook Live firmware
@stephan-t
stephan-t / copy-check.sh
Last active January 13, 2021 04:18
Check integrity of files after being copied and report results
#!/bin/bash
# Check integrity of files after being copied and report results.
set -e
print_usage() {
echo "Usage: $(basename $0) [options] <filename> <destination path>"
echo "Options:"
@stephan-t
stephan-t / README.md
Last active May 9, 2023 09:49
Toggle or manually set LibreOffice's theme / colour scheme to light or dark

Installation

Go to Tools > Macros > Organize Macros > Basic... > My Macros.

Click New to create a macro.

Copy all contents in libreoffice-theme.bas to the new macro file and save it.

Configuration

LibreOffice Theme

@stephan-t
stephan-t / vscode-fix.sh
Last active July 4, 2020 22:49
Fixes texture corruption in VS Code terminal after resuming from suspend
#!/bin/bash
# Fixes texture corruption in VS Code terminal after resuming from suspend.
#
# Place script in /lib/systemd/system-sleep/ so it can run after resuming.
#
# Dependencies: jq
case "$1" in