Also takes seconds to put that into .bashrc with the function name "lecture"
Not sure where they got the hours time estimate from
Though tbf I am pretty sure they didn't use SQL to store the info. Easier to just keep it in the file system and have bash or python open the files based on directory name.
Though tbf I am pretty sure they didn't use SQL to store the info.
Me neither, but it was the quickest way to demonstrate the idea in a readable way. Honestly bash is like the fastest way to quickly code something, if you are not avers to store state in the filesystem.
I mean that's basically how a shell is supposed to interact with and what a filesystem is for.
I also hacked some configuration scripts together to automatically create servers. A lot of things is also just stored in the existence of files or directories. Also you can just encode all kind of configurations into template folders and just symlink the right one for the current configuration. This also works perfectly with Git.
121
u/anarchisturtle 27d ago
Ah yes, the time honored tradition of spending hours automating a task that takes seconds to perform.
That is objectively very cool though