Skip to content

Instantly share code, notes, and snippets.

@tcreswick
tcreswick / SMART_53Q0A027FX0G.txt
Created March 11, 2026 18:04
Hard drive SMART output
======================================================
SMART Report
Device : /dev/sda
Serial : 53Q0A027FX0G
Date : Wed 11 Mar 18:04:08 GMT 2026
======================================================
--- Device Info ---
=== START OF INFORMATION SECTION ===
Model Family: Toshiba N300/MN NAS HDD
@tcreswick
tcreswick / ghost-backup.sh
Created January 6, 2026 23:52
Ghost Blog automated backup script for Ubuntu/Debian
#!/bin/bash
# Fail quickly
set -e
# Check that a folder argument was supplied
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <ghost-install-directory>" >&2
exit 1
fi
@tcreswick
tcreswick / netfix.sh
Created May 23, 2013 22:51
This script is used to monitor the RX bytes on a given network interface by using a temporary file in /tmp. The script will return exit code 1 if the current interface counter is DIFFERENT from the value on the previous run. If the counter hasn't changed from the previous run, the script will return 0. This behavious is intended to make it simpl…
#!/bin/bash
#
# This script is used to monitor the RX bytes on
# a given network interface by using a temporary
# file in /tmp.
#
# The script will return exit code 1 if the current
# interface counter is DIFFERENT from the value
# on the previous run.
#