« first day (3421 days earlier)      last day (1516 days later) » 

1:59 PM
I almost accidentally the whole thing :(
$ rm /*
rm: /Applications: is a directory
rm: /Library: is a directory
rm: /Preboot: is a directory
rm: /System: is a directory
rm: /Users: is a directory
rm: /Volumes: is a directory
rm: /bin: is a directory
rm: /cores: is a directory
rm: /dev: is a directory
rm: /etc: Operation not permitted
rm: /home: Read-only file system
rm: /opt: is a directory
rm: /private: is a directory
rm: /sbin: is a directory
rm: /tmp: Operation not permitted
rm: /usr: is a directory$ rm /*
rm: /Applications: is a directory
Forgot the . in front of /
 
2:23 PM
oh wow... close call
 
2:36 PM
oof
 
I often use rm -rf when cleaning out my tmp directory too which I think still wouldn't do anything since / should be protected but I'm still thinking of just making like a 'cleantmp' function now
 
 
3 hours later…
5:50 PM
Anyone knows if there's nice diagrams, >like these<, for shell grammar?
... or what software could create it from some sort of description?
 
6:17 PM
@Kusalananda They are a bunch of js based programs on github that make flow charts
 
@jesse_b Urgh, I don't even know in what end to start with Javascript.
 
I know at least one of the engineers from my company has made their own tooling for it but I can't find it at the moment
The one I'm thinking of may have been to generate ascii flow charts though what for code comments and man pages
 
7:22 PM
@Kusalananda Tex probably could. LuaTeX almost certainly could.
In fact, I think I came across something not so very different, written by someone who pinged me about the Luarocks Debian package.
Though he seemed very unimpressed with my (lack of) packaging skills.
If you ping me, I could try to dig up a link.
 
8:21 PM
@FaheemMitha You'd have to already have the structure figured out though, right?
 
9:19 PM
@Kusalananda Any idea on using UUID of block device to format the disk? unix.stackexchange.com/q/568796/62659
 
@overexchange Using UUIDs for disk devices is a Linux thing, right? I don't really do that sort of stuff on Linux systems. I'm a Linux user, but I don't have root on any of the systems I use. The machines I administrate are OpenBSD and macOS.
@FaheemMitha That could be an idea. I thought maybe doing it in Ghaphviz or something.
 
yes on linux
 
Going offline now.
 
@Kusalananda This online tool is the simplest thing I have found. It creates diagrams (svg, png) from W3C's EBNF grammar specifications, so it doesn't work out of the box when fed with the POSIX grammar specification as-is.
But it seems to work after a few changes to the syntax (::= instead of :, no ; at the end of statements, no %). Though I haven't really verified how accurate the result is.
 
@fra-san It will probably do the job. Much thanks, and good night!
 
9:30 PM
@Kusalananda Good night!
 
10:11 PM
How to use nested bash commands? mkfs.ext4 -U $(lsblk -no UUID /dev/sdf)
where lsblk -no UUID /dev/sdf provides UUID
Error is: mkfs.ext4: option requires an argument -- 'U'
 
hehe, hello overexchange...
 

« first day (3421 days earlier)      last day (1516 days later) »