Blog
-
Homebrew on Synology NAS
- https://github.com/MrCee/Synology-Homebrew = MrCee/Synology-Homebrew on GitHub
- I think this package screwed my NAS
- amongst other things I think it did “chgrp -R root” on my HOME directory #WTF
- it turned my DiskStation upside down
- this “homebrew” is also called “linuxbrew”
- after upgrading to “DSM 7.2.2-72806 Update 1” my diskstation needed this:
$ sudo ln -s /home/linuxbrew/.linuxbrew/Cellar/glibc/2.35_1/bin/ldd /usr/bin- https://github.com/ublue-os/bluefin/issues/1079 – “brew install llvm” fails with “Cannot write: No space left on device” #1079
- there was a dependency on llvm … – the filesystem in question is tmpfs (?!?) mapped into the RAM – setting the HOMEBREW_TEMP environment variable to /var/tmp
- this was also necessary: “$ ulimit -n 1024”
- https://github.com/MrCee/Synology-Homebrew = MrCee/Synology-Homebrew on GitHub
-
GNU Emacs: Shell Commands in Dired
I especially like this example:
$ uuencode ? ? > `?`.uuIt shows how to use the file (name) passed to the shell command together with a prefix and/or a prefix on the command line. That’s not trivial, because around the “?” usually only whitespace is permitted to make the mechanism work.
That’s a true and amazing life hack, something that makes my life easier almost every single day of my life.
-
Dynamic DNS Update API
- https://help.dyn.com/remote-access-api/
- https://help.dyn.com/remote-access-api/perform-update/ – I am still using a subset of the “Legacy Authentication URL” – as AVM suggested quite a few years ago …
Looks to me, as I cannot use IPv6 that way.
I am not sure, how to move forward.
-
message from my hoster: “ssh_exchange_identification: Connection closed by remote host”
- https://stackoverflow.com/questions/10127818/ssh-exchange-identification-connection-closed-by-remote-host-under-git-bash
- https://stackoverflow.com/a/15822474/3119172 – the only reasonable answer I read there:
I just ran into this today and it was because the server I was trying to connect to was overloaded with processing. So it may be possible that the server is low on memory or CPU starved.
-
SSH on Windows: OpenSSH, PuTTY
- https://github.com/PowerShell/Win32-OpenSSH
- https://github.com/PowerShell/Win32-OpenSSH/wiki
- https://github.com/PowerShell/Win32-OpenSSH/wiki/ssh.exe-examples
- %USERPROFILE%\.ssh\config – ~/.ssh/config – it allows this notation even on Windows OpenSSH (and be aware of this: %USERPROFILE = “~”!):
- IdentityFile ~/.ssh/id_ed25519
- https://en.wikipedia.org/wiki/ssh-agent – SSH authentication agent
On Windows OpenSSH’s “SSH authentication agent” is meant to run as Windows “service“. Starting a couple of years back, Microsoft decided, to deactivate that service by default. Now there are corporations, that do not want to have the “ssh-agent” service running at all. No SSH authentication agent, no caching of ssh ID-s (after enquiring the respective passphrase) – i.e. you have to enter your passphrases again and again. Right: if you are a bad boy, you use private keys with empty passphrases – but you are not a bad boy, are you?
The alternative to OpenSSH on Windows:
- https://en.wikipedia.org/wiki/PuTTY – the PuTTY package has its own SSH authentication agent: pageant – and pageant does not run as (Windows) “service“, you can start it yourself, so PuTTY may be your choice.
-
my LG 4K-UHD-Smart-TV
View Screen with Just Scan:
-> Settings Wheel -> “…” ->Picture -> Aspect Ratio -> Just Scan -> OnThis way the display OS does not remove edge lines and columns. That is needed, because e.g. in my case serious lines and columns get stolen, and I insist on seeing them.
-
Secure Hash Algorithms AKA SHA – using shake-512sum for show-identical-files.sh
- https://en.wikipedia.org/wiki/Secure_Hash_Algorithms
- https://en.wikipedia.org/wiki/SHA-3 – “is the latest member of the Secure Hash Algorithm family of standards”
- https://en.wikipedia.org/wiki/SHA-2
- https://en.wikipedia.org/wiki/SHA-1
There is a book at O’Reilly’s:
- https://learning.oreilly.com/library/view/classic-shell-scripting/0596005954/ – “Classic Shell Scripting”
- https://learning.oreilly.com/library/view/classic-shell-scripting/0596005954/examples_page.html – the book comes with very nice supplemental files and examples
- one of these examples is: show-identical-files.sh
- you can find it there in the “sh” subdirectory
- that script makes use of md5sum as checksum utility, but in my copy I replaced it with sha512sum resp. shake-512sum
- that checksum utility makes that script decide, whether files are “the same”
- I have been using that script “almost every day of my life” for so many years for finding identical files having deliberate different names – it groups files by their checksums computed by this checksum utility
- this script has worked for me on Unix, Linux, macosx, …, and busybox
- I have no quicker and safer way to find copies of files – … and removing unnecessary copies