Yeah. This post was made to show off something cursed I created.
I have already updated the repo to make it more obvious this is not standard Python. I will do the same with the post.
Yeah. This post was made to show off something cursed I created.
I have already updated the repo to make it more obvious this is not standard Python. I will do the same with the post.
Conveniently Python keeps the comments around. 😄
I updated the source after this post was made. The image transcription still holds. I did not update the image and the post text.
You can view the git history. I will tag the specific commit at the time of the post later and update it accordingly.
I have updated the repository. Just clone it.
The lib module was written by me. Actual implementation code is here: https://github.com/raldone01/python_lessons_py/blob/v2.0.0/arglib.py
Well now that causes breakage two dependencies down the line. Good luck with that. 😅
On a serious note:
This feature is actually very useful. Libraries can use it create neat error messages. It is also needed when logging information to a file.
You should however never ever parse the source code and react to it differently.
You know that this is acutally working right??? 😊
Reminds me of: https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/
A guy thought it would be funny to change his license plate to NULL.
There are a few flaws.
There should be a clause forcing it to remain open source. Another clause should be that the license must not be changed. A warrenty and liability disclaimer would be also good. Otherwise a splendid license.
Pid 3386 behave or I am gonna SIGKILL all your children. That’s not an EMPTY THREAT. In fact I will start with the first one RIGHT NOW.
This is the way usually but some people just don’t learn from their mistakes…
Sounds like a cool idea. I will add it to my selfhost list.
I still rely on openai for my llm needs but soon I will evaluate more private and self hosted solutions.
There probably is. Though I myself use nano (root permissions) and vscode.
I mean if it’s a gapped system… 🫣
But you still do the security patches right?
Now you have got a good excuse to setup something to manage your knowledge base.
I recommend markdown:
I would have loved this. Laser pointers can be very hard to spot.
My samsung laptop has no way to change the backlight from Linux so it stays off. If only there were a way to this in a standardized way (acpi) samsung?
https://github.com/raldone01/config_fish/blob/main/tdcff_functions/btrfs_folder_to_subvol.fish
Because I often forget to do it I wrote a little helper script.
This file can be run or sourced and only depends on btrfs-progs and fish.
It is now directly in the notebook in the latest version: https://github.com/raldone01/python_lessons_py/blob/v2.0.0/lesson_0_comments.ipynb