Skip to content

Instantly share code, notes, and snippets.

@STrRedWolf
STrRedWolf / md2docx.pl
Created September 16, 2024 15:03
Fiction writing using Markdown
#!/usr/bin/perl
use strict;
use File::Basename;
if(scalar @ARGV < 1 || @ARGV > 2) {
print STDERR "Argument count mismatch\n";
exit 1;
}
@STrRedWolf
STrRedWolf / Windows 11 Annoyances.md
Created April 3, 2024 23:57
Windows Annoyances

So I find a dinky little laptop, a Chwui Minibook X 2023, which has 12 gigs of RAM, a 512 GB SSD, and a screensize of 1920x1200 in a 10-and-change inch screen.

It unfortunately comes with Windows 11. Which means dealing with the quirks that Microsoft put in, and oh boy, there are many. Microsoft caught Option Removal Syndrome. Here's how I'm dealing with them:

The Taskbar does not show titles anymore.

Seriously. I can't tell if that icon goes to Firefox or some program that's faking Firefox. That's a big security risk!

Fixes:

@STrRedWolf
STrRedWolf / DESCRIPT.ION_File_Format.md
Created January 14, 2023 13:53
DESCRIPT.ION File format (inc RedWolf extension)

DESCRIPT.ION file format (RedWolf extension)

DESCRIPT.ION files are files used in BBSen and the programs 4NT and Take Command. These files describe other files in the directory.

Below is a technical summary of the orignal format, plus an extension to the format.

DESCRIPT.ION "back in the day"

contents    = *(file-line) [EOF]
@STrRedWolf
STrRedWolf / tm_local.sh
Created October 30, 2020 13:48
Time Machine for every Unix scripts
#!/bin/sh
date=`date "+%Y-%m-%dT%H:%M:%S"`
rsync -aP --link-dest=$HOME/Backups/current /path/to/important_files $HOME/Backups/back-$date
rm -f $HOME/Backups/current
ln -s back-$date $HOME/Backups/current
@STrRedWolf
STrRedWolf / rmthumbnail.sh
Created October 4, 2020 13:07
XFCE Small Utlities
#!/bin/sh
# Remove a XFCE generated thumbnail
#
# Put this file in a safe place (I use ~/bin)
# Open Thunar, then navigate to Edit >> Create custom actions.
# Create a new action ("Remove Thumbnail")
# Command is: /path/to/this-file %f
#
# Doesn't handle groups.
@-moz-document url-prefix("https://railroad.net/viewforum.php?f=214") {
/* Widen the site as a whole. */
.container {
width: 95%
}
/* Trim the header */
header {
padding: 30px 15px 5px
}
@STrRedWolf
STrRedWolf / cleardupes.pl
Last active June 9, 2019 22:11
Linux-side deduplication
#!/usr/bin/perl
# Duplicate finder. Moves dupes in what directories you've specified to a dedicated "Trash" directory for you to remove.
# Double-checks those MD5 hashes!
#
# Example of usage:
# find 00.Master -type f -print0 | xargs -0 md5sum > master.hash.txt
# ...etc... (repeat above line for other directories to dedupe against)
# cat *.hash.txt | sort | uniq -D -w 32 > dupes.txt
@STrRedWolf
STrRedWolf / strype_transhumanism.txt
Created December 7, 2017 01:14
Strype's blab about transhumanism (from Twitter)
Strype @strypeisonfire
Yanno what, it's 4:30am, let me blab about transhumanism for a while, and why I want a future like that...
First up: CURIOUSITY. Longer lifespans because I want to see what's gonna happen. I want to see more of the universe...
And new senses! I want to hear infrasound, ultrasound, see new colours we dont have words for yet.
Second: Adaptability. Being outside of Earth's Troposphere is pretty hard to do. Terraforming ever harder. But if we adapt, not so much
@STrRedWolf
STrRedWolf / scantest.pl
Created October 1, 2017 12:33
Deduplication tool
#/usr/bin/perl
#use Digest::FarmHash qw(farmhash64);
use File::Find;
use DBI;
use Digest::SHA qw(sha256_hex);
#use bigint;
$|=1;
@STrRedWolf
STrRedWolf / README.md
Last active September 4, 2017 15:55
Pi Zero cluster setup.

A bit of a Pi Zero cluster setup I'm getting together, with some setup notes in case I have to rebuild it.

Four Pi Zero's connected to a Pi 2, which is connected to the network via Ethernet or Wifi.

The below script should leave the Pi Zero's mounted to verify things.