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; | |
| 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: |