deleted by creator
deleted by creator
Here’s one I have saved in my shell aliases.
nscript() {
local name="${1:-nscript-$(printf '%s' $(echo "$RANDOM" | md5sum) | cut -c 1-10)}"
echo -e "#!/usr/bin/env bash\n#set -Eeuxo pipefail\nset -e" > ./"$name".sh && chmod +x ./"$name".sh && hx ./"$name".sh
}
alias nsh='nscript'
Admittedly much more complicated than necessary, but it’s pretty full featured. first line constructs a filename for the new script from a generated 10 character random hash and prepends “nscript” and a user provided name.
The second line writes out the shebang and a few oft used bash flags, makes the file executable and opens in in my editor (Helix in my case).
The third line is just a shortened alias for the function.
I think ejabberd or another other xmpp server would have been my first choice for a service like this by a long shot. If only we had some good iOS clients to go to. While I’m on android, most of the family and some of the friends use iOS, so it was kind of a non-starter from that alone.
Edit: log -> long
My long and mostly complete list:
These services are the result of years of development and administrating my lab and while there is still some cruft, it’s mostly services that I think have real utility.
As far as hardware:
Running pfsense on a toughbook laptop as a router-firewall.
A SuperMicro 24 bay disk-shelf with Proxmox and ZFS for NAS duties and a couple services.
Lenovo Tiny boxes with a Proxmox cluster for the majority of my local services.
Dell managed switch
A few Raspberry-pi’s with Raspbian for various things.
Linksys AP for wifi
Edit: Spelling is hard.
You don’t. It works perfectly fine OOTB. Can’t speak for the Pinecil v2 with Bluetooth and the companion app but I have v1 and the software been stable and bug-free enough I’ve never even given a thought to updating the firmware on it