Save the following script to ~/tree-filter.sh and chmod +x it:
#!/bin/bash
set -eo pipefail
fd '\.cs$' -H -E .git -E Migrations -tf -x perl -pi -e '
if ($. == 1) {
print <<'\''EOF'\'';
// Copyright (c) Your Name| -- This file should be placed in a 'scripts' folder within the mpv config directory. | |
| -- See https://mpv.io/manual/stable/#files-on-windows | |
| mp.register_script_message('delete-file', function() | |
| local path = mp.get_property('path') | |
| local pos = mp.get_property_number('playlist-pos', 0) | |
| local count = mp.get_property_number('playlist-count', 0) | |
| -- This uses the recycle.exe program from wsl-tools (the exe's work outside WSL, too): | |
| -- https://github.com/maxkagamine/wsl-tools/releases |
| using System; | |
| using System.Runtime.ExceptionServices; | |
| class Program | |
| { | |
| static void A() | |
| { | |
| try | |
| { | |
| B(); |
Save the following script to ~/tree-filter.sh and chmod +x it:
#!/bin/bash
set -eo pipefail
fd '\.cs$' -H -E .git -E Migrations -tf -x perl -pi -e '
if ($. == 1) {
print <<'\''EOF'\'';
// Copyright (c) Your Name| using System; | |
| var foo = new Foo("foo"); | |
| var bar = foo with { Name = "bar" }; | |
| Console.WriteLine(foo); | |
| Console.WriteLine(bar); | |
| // Foo { CreatedOn = 7/15/2022 21:39:43, UpdatedOn = , Name = foo } | |
| // Foo { CreatedOn = 7/15/2022 21:39:43, UpdatedOn = 7/15/2022 21:39:43, Name = bar } |
| #!/bin/bash | |
| #name=Backup flash and appdata | |
| #description=Creates tarballs of the flash drive and appdata share. | |
| #argumentDescription=Backup directory | |
| #argumentDefault=/mnt/user/Backup/Sovngarde | |
| #arrayStarted=true | |
| #noParity=true | |
| #clearLog=true | |
| set -eo pipefail | |
| shopt -s extglob |
| Windows Registry Editor Version 5.00 | |
| ; For folder icons, set folder to read-only and create a desktop.ini set to | |
| ; read-only|system|hidden with contents: | |
| ; [.ShellClassInfo] | |
| ; IconResource=C:\Path\To\Icon.ico,0 | |
| ; Remember to change the guid for each known folder: | |
| ; https://www.guidgenerator.com/ |
Here's a guide to running an nginx reverse proxy on Unraid with a Let's Encrypt wildcard cert (which can cover the Unraid web gui too), using the official nginx and certbot Docker images.
Other options:
cat /etc/slackware-version and check which Slackware version the current Unraid OS is based on
| # MIT License | |
| # | |
| # Copyright (c) 2021 Max Kagamine | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |