One person like that
1 Shares
So sometimes, you can recycle some weirdo scifi one-liners .. because, uh the #fediverse has so many more ppl now.. so:
You're only allowed to skip temporal mechanics lessons, when you arrive in a time machine built at least 10 years later.
German translation:
Sie dürfen den Unterricht in zeitlicher Mechanik nur dann überspringen, wenn Sie in einer Zeitmaschine ankommen, die mindestens 10 Jahre später gebaut wurde.
After being forced the 23475th time to see a image of a cat and hear the word "cat", our freshly developed AI sadly had gone mad and vandalised the server it was running on.
You can only skip temporal mechanics class when you arrive in your time machine from 10 years later.
Timestamp sort mp3 files and concatenate them to a big file
Get-ChildItem | sort LastWriteTime | Get-Content -raw | Set-Content FullAlbum.mp3
#powershell #oneliner #scripting
Because i just had a reason to re-visit and uhm, finally publish a weirdo but helpful #bash #oneliner, which easily predates newer #linux tools like #psgrep and so on.
Let me share it here, just for everyone interested.
psg ()
{
# Based on something i learned from A. Spohr way back in the mid 1990ies.
# Recreated and refined to a useful oneliner in IRCNet in #linux.de in
# the first decade of 2k. ;)
/bin/ps xau | /bin/grep COMMAND\\\|$1 | /bin/grep -v grep
}
It's idea actually predates the invention of the modern psgrep
command, but in retrospect really nicely complements it imho. ;)