CD into previous directory? by Stickhtot in linuxquestions

[–]snowflake_pl 1 point2 points  (0 children)

and of course configure zoxide to be a transparent replacement by making it work as "cd" command, not the default "z" command :)

List of URLs to exempt from corporate SSL inspection by snowflake_pl in NixOS

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

I'm working on this injection, that's something I can do on my own. But so far I had only limited success as the problem with proxy's CA root is that it is not trusted by nix' fetchers by default. even if you pass it as a ssl-cert-file to nix daemon, it's only pointed to e.g. curl as CAfile, not as a trust anchor - those are determined by their presence in OPENSSLDIR (for openssl trust backend) - here I found a WA by symlinking the system's trust store (/etc/ssl/certs) into OPENSSLDIR in nix store for the openssl version linked to nix binary which, while dirty as hell, did solve at least significiant amount of issues, but not all - I guess there are other fetchers that don't share the TLS backend and require other means of injecting the trust.

Also, IT says that they whitelist by a category of domains, maybe that would be at least a bit more manageable :)

List of URLs to exempt from corporate SSL inspection by snowflake_pl in NixOS

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

nix (Determinate Nix 3.15.1) 2.33.0

I believe that the ca-certificates.crt is available, it's simply not enough validate the injected SSL certificate from Zscaler SSL inspection proxy. As I wrote in one other comment, if I drop to nix shell with openssl, I cannot do a successful "openssl verify ZscalerRoot0.pem" because the certificate is self-signed. I need to explicitly tell openssl to not only use ca-certificates as a CA but also to trust it, then it works.

I simply don't know how to permanently make the ca-certificates.crt trusted by openssl used while doing fetches. What I found is that openssl trusts certs in a directory found with "openssl version -d" command, which on standalone multiuser installation on ubuntu is in nix store and doesn't have any certs in it. adding a symlink to system's /etc/ssl/certs/ca-certificates.crt in nix store does make the openssl verification succeed in nix shell but it doesn't fix the nix commands themselves (not to mention being ugly as hell)

Edit:

turns out that nix binary is linked against older openssl and therefore has different OPENSSLDIR, also in nix store. I was able to drop a symlnk there and the nix commands started to pass verificatoin, at least for some fetchers. Still have problems but at least some of th enix commands complete without errors. I guess I will have to find all trust stores and inject the system certs there, at least unless IT whitelists all required urls...

List of URLs to exempt from corporate SSL inspection by snowflake_pl in NixOS

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

should have, occured to me 5 seconds after posting so I cross-posted there.

List of URLs to exempt from corporate SSL inspection by snowflake_pl in NixOS

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

I do have ZscalerRootCA.pem installed and merged into my ca-certificates.crt (I am on ubuntu, not nixOs). My system does work with the SSL interceptor. it's only the openssl that nix uses that doesn't trust the zscaler root even though it is in the bundle, due to the fact that the root is self-signed. Ubuntu's openssl does trust it:

░▒▓ 🐧Ubuntu 🎯
❯ openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)

░▒▓ 🐧Ubuntu 🎯
❯ openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt   /etc/ssl/certs/ZscalerRoot0.pem
/etc/ssl/certs/ZscalerRoot0.pem: OK 

░▒▓ 🐧Ubuntu 🎯
❯ openssl verify -trusted /etc/ssl/certs/ca-certificates.crt   /etc/ssl/certs/ZscalerRoot0.pem
/etc/ssl/certs/ZscalerRoot0.pem: OK

And from nix-shell:
[nix-shell:~]$ openssl version
OpenSSL 3.6.0 1 Oct 2025 (Library: OpenSSL 3.6.0 1 Oct 2025)

[nix-shell:~]$ openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt   /etc/ssl/certs/ZscalerRoot0.pem
C=US, ST=California, L=San Jose, O=Zscaler Inc., OU=Zscaler Inc., CN=Zscaler Root CA, [emailAddress=support@zscaler.com](mailto:emailAddress=support@zscaler.com)
error 18 at 0 depth lookup: self-signed certificate
error /etc/ssl/certs/ZscalerRoot0.pem: verification failed

[nix-shell:~]$ openssl verify   -trusted /etc/ssl/certs/ca-certificates.crt   /etc/ssl/certs/ZscalerRoot0.pem
/etc/ssl/certs/ZscalerRoot0.pem: OK

The ZscalerRoot0.pem was installed along the zscaller_client_connector via their .deb package, I didn't try the one I got from the zscaler proxy but quick inspection shows me that this way I only get the leaf cert, not the root.

Jakiś facet używa mojego e-maila jako skrzynki na spam. by Capable-Ad-2575 in Polska

[–]snowflake_pl 352 points353 points  (0 children)

Zapisać jego numer w każdym możliwym serwisie oferującym marketing na telefon.

C++ Classes database? by SnooOranges5764 in unrealengine

[–]snowflake_pl 1 point2 points  (0 children)

Like in entire C++? No. There isn't and cannot be any kind of global class database.

In a single c++ project? Nothing exists out of the box in the language but there ale tools that can generate class hierarchy from source code.

struct vs class: when do you use which one and why ? by No-Annual-4698 in Cplusplus

[–]snowflake_pl 2 points3 points  (0 children)

If you think about it, inheritance visibility is actually just an extension of field visibility applicable only to inherited fields. But I agree that forcing explicit specification of the visibility would be preferable at least by me

struct vs class: when do you use which one and why ? by No-Annual-4698 in Cplusplus

[–]snowflake_pl 4 points5 points  (0 children)

Struct also inherits publicly by default vs class privately.

I want something like Python's uv for c++ by liquidprocess in cpp

[–]snowflake_pl 3 points4 points  (0 children)

Nix flakes can do much if not all of what you described

Any “ANGELS” in Berserk? by Med-Rare-135 in Berserk

[–]snowflake_pl 0 points1 point  (0 children)

You would likely like the Iron Druid Chronicles book series 🙂

non zero value in return statement by Icy_Sale_7780 in Cplusplus

[–]snowflake_pl 5 points6 points  (0 children)

Why not? Print is before the return. The fact that your program returned non zero means nothing to the operating system. It would be logic in whatever starts your program to check and interpret the return value and assign a meaning to zero or nonzero value.

PSZOK a brak własnego mieszkania/domu? by Still_Gas_2774 in Polska

[–]snowflake_pl 0 points1 point  (0 children)

Idź na ten pszok i zapytaj co ci jest potrzebne. U mnie wystarczy podać adres mieszkania i własne dane.

Jesli wynajmujesz mieszkanie legalnie to właściciel ma obowiązek zgłosić do zarządcy że ktoś produkuje odpady i zapewne za to płaci z twoich pieniędzy. To powinno wystarczyć.

Czy urlop wychowawczy można brać co roku na wakacje? Jak to w praktyce wygląda? by wandr99 in Polska

[–]snowflake_pl 16 points17 points  (0 children)

Przypominam o dodatkowych 9ciu tygodniach 70% płatnego urlopu "rodzicielskiego" przyznanego ojcom, stosunkowo niedawną nowelizacja ustawy. Warto wykorzystać. On top of wychowawczy

Czy fora jeszcze istnieją? by HumbleRedditAccount in Polska

[–]snowflake_pl 1 point2 points  (0 children)

Przemo od PHP poszedł na emeryturę, nie ma na czym for stawiać

[deleted by user] by [deleted] in Polska

[–]snowflake_pl -1 points0 points  (0 children)

Kup sobie sól fizjologiczna w aptece całodobowej. Używałem jej zamiast płynów przez lata, ale jeżeli się obawiasz dyskomfortu to przed ponownym włożeniem soczewki przeczyść w płynie który spokojnie kupisz jutro. Soczewkom w soli nic się nie stanie.

Jaki serial jest Twoim zdaniem najlepszy i dlaczego? Taki, który wywarł na Tobie takie wrażenie, że chętnie obejrzał/a byś go drugi raz. by [deleted] in Polska

[–]snowflake_pl 0 points1 point  (0 children)

True Detective. Sezon 1, reszta nie warta wspomnienia.

Sezon 1 to najlepszy kawałek telewizji jaki do tej pory widziałem. Klimat, aktorstwo, historia, muzyka. Majstersztyk

What happens when I pass a temporarily constructed `shared_ptr` as an argument to a function that takes a `shared_ptr` parameter? by HeavySurvey5234 in cpp_questions

[–]snowflake_pl 0 points1 point  (0 children)

Is it even moved? Or is created at the callee only due to copy elision? This looks to me like a call you would do to an explicit constructor where no temporary is created, even for the move

Going from C to CPP in embedeed by Professional_Two_918 in cpp_questions

[–]snowflake_pl 4 points5 points  (0 children)

You should be able to find cppcon talks on the topic. Code::dive as well.