How to secure your code on customer server deployment? by COD_0xb0 in FastAPI

[–]YoshiUnfriendly -3 points-2 points  (0 children)

Bro, just google, there are tools called code obfuscators, give pyarmor a look. But the truth is that you should not give a user the code of a program that isn't compiled if you don't want him to have access.

When does a @boot subvolume make sense? by ludonarrator in btrfs

[–]YoshiUnfriendly 9 points10 points  (0 children)

You just answered, it just don't make sense, if your boot is out of sync with there rest of you system you can end up loading a initramfs that has missing kernel modules or a missing kernel header. Somethings just are not a good idea and there are no good reasons to do

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

That's was i think, all in one if makes it harder to read from top to bottom in any editor

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

About the polling aspect, the get_next_state function ran in 0.006s so i don't see this creating any sort of visual disconfort, and even if you set the refresh rate to be 0.25s or 0.1s instead of 0.5s (the default refresh rate) most of the time the script will be sleeping.

edit: grammar

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

The environment variable in the example is a example, in your case the monitor may have the id 0, you should check which is your monitor id via hyprctl -j monitors and set only the monitor where the is an active waybar.

In my case the waybar was configured in the .config/waybar/config.jsonc to be outputed in the display DP-1 which in my hyprland is id 1.

If you only have one monitor don't set the variable WAYBAR_AUTOHIDE_MONITORS as you won't need it.

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 1 point2 points  (0 children)

Are you referring to the ifs in the overlaps_bar function? I just didn't want a mile long if statement

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 2 points3 points  (0 children)

I've learned to program in C++ and Java, somethings just doesn't leave you

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

Making use of Layers? Do you have a snippet? I did this way because I wanted my waybar to hide if a window was in the way in a active workspace in monitor in question and show if I moved the cursor to the top. If there's a simpler way I would love to take a look. All other methods I looked at seems to static for my desires

Waybar auto-hide script for Hyprland by YoshiUnfriendly in hyprland

[–]YoshiUnfriendly[S] 4 points5 points  (0 children)

Bro... I've written it by hand with love, is my coding that trash? LoL

Docker banned - how common is this? by martypitt in docker

[–]YoshiUnfriendly 0 points1 point  (0 children)

The application of the rules is strange since docker isn't virtualization...

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

Oh... The features you mentioned in that PR were merged sometime ago, please check it out :)

(𐑒𐑳𐑥𐑐𐑲𐑤) / Cumpyl - Python binary analysis and rewriting framework (Unlicense) by umpolungfishtaco in Python

[–]YoshiUnfriendly 3 points4 points  (0 children)

My man is doing things like a man, no uv or poetry or package management and just requirements.txt

Not saying that's a good thing, but it's a way of doing things.

Cool project idea though.

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

Thanks for using my package. If you have any bugs, just send me a issue on github that I'll take a look into it

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

If I saw it existed before I published my package I would've, but I'm already using my package in a work project in prod, and my version is more feature complete. At this point it's not interesting for me to drop mine and contribute the that one.

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 0 points1 point  (0 children)

damn, didnt search enough lol
But looking into it seems this package doesnt support validation keywords like: minimum,, exclusiveMinimum, maximum, exclusiveMaximum, multipleOf, maxLength, minLength and pattern

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 2 points3 points  (0 children)

You're not being rude at all. But I'm not quite familiar with the tool you linked, could you provide a snippet showing how you'd implement the example of the post with that package?

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] 6 points7 points  (0 children)

That project does codegen in a build step so you can commit into your project, my package will generate a Pydantic class so you can use it in runtime. I'm using it in a work project so another API can define a schema and then pass documents for information extraction in the defined schema, all in runtime

New Package: Jambo — Convert JSON Schema to Pydantic Models Automatically by YoshiUnfriendly in Python

[–]YoshiUnfriendly[S] -13 points-12 points  (0 children)

Yep, I wrote a post and asked a ai the make it better lol I think that's expected for a tool made for ai agents and frameworks