@phryk@mastodon.social
@phryk@mastodon.social avatar

phryk

@phryk@mastodon.social

Your friendly neighbourhood hⒶcker hobo.
Likes dinosaurs, dislikes hierarchy.

Come for the music recommendations, stay for the #propaganda.

#nojs #ux #infosec #python #freebsd

This profile is from a federated server and may be incomplete. Browse more on the original instance.

phryk, to dnb
@phryk@mastodon.social avatar

https://yewtu.be/watch?v=ZgtL1pWdbYA

The kids are alright. :blobaww:

phryk, to random
@phryk@mastodon.social avatar

Finally fixed the broken F1 key on my Model M.

I also fixed the F13 key and mapped it to be ESC (which otherwise only exists above the num block on this keyboard).

And last but not least, I removed a completely unreasonable amount of dust, lint, hair and other gunk. It was without exaggeration like a third of the internal volume of the thing and typing feels a good bit snappier again. 😂

karafuto, to design
@karafuto@mas.to avatar

My partner once mentioned he liked F-14 "Tomcat" fighter jets.

A half a year later he got this shirt for his birthday. I designed an Escheresque pattern, with F-14 and a tomcat wearing a bow tie (because of course).

In the process I learned about tailpipe fire, and obviously the cat had to have a tail... :blobcatpeek2:

phryk,
@phryk@mastodon.social avatar

@karafuto Mhhh, love me some variable-sweep winged jets… 🤤

ajroach42, to random
@ajroach42@retro.social avatar

Jesus christ, someone just drove a garbage truck in to the corner of the antique store.

phryk,
@phryk@mastodon.social avatar

@ajroach42 Bro, are you cursed? Your life is beginning to read like some Final Destination shit. 🤔

Jokes aside, I hope everything pans out. :F

phryk, to random
@phryk@mastodon.social avatar

I have a goodie from the past for you. Some chill free that seems impossible to find these days:

Mez – Foreign Body Obstruction

phryk,
@phryk@mastodon.social avatar

Seriously, you should download this because it's amazing art that's in danger of the internet forgetting it.

MC_Regretta, to random German
@MC_Regretta@birds.town avatar

GuMo :blobcaterpie:

phryk,
@phryk@mastodon.social avatar

@MC_Regretta Nabend, bald Zeit für fein Schlafi. 🙃

phryk,
@phryk@mastodon.social avatar

@MC_Regretta Bin seit 17 Uhr oder so wach 😂

phryk,
@phryk@mastodon.social avatar

@MC_Regretta

Hoot! 🦉

Aber 'ne, eigentlich eher ein Flughörnchen, nur war mein Tag irgendwie schon immer länger als 24h, darum verschiebt sich mein Schlafrhythmus immer ein wenig relativ zum Tag/Nacht-Zyklus.

Und manchmal auch ein bisschen mehr, wenn ich mal wieder 30+h wach bin. 😅

phryk,
@phryk@mastodon.social avatar

@MC_Regretta Jaaa, wenn ich mit physischer Anwesenheit arbeiten müsste, würd ich absolut kaputt gehen.

Been there, done that, never again. :tinking:

phryk, to random
@phryk@mastodon.social avatar

Man, every time I ask for help in the flask/pallets channel these days, I just get told that I don't actually want to do the thing I actually want to do while the people insisting I'm wrong just keep wasting my time while not even showing me the common courtesy of actually fucking reading what I wrote.

It feels a lot like the main python channel a couple years back (which, funnily enough, feels a bit better these days).

phryk,
@phryk@mastodon.social avatar

Today, after 3 other non-working pieces of "advice", I was told that I want to use alias redirects, which simply don't work for the use-case I described in detail.

And then I got kicked for lamenting how things changed for the worse.

Jesus fuck, am I glad I'm writing my own framework. smdh…

phryk,
@phryk@mastodon.social avatar

The other pieces of advice were:

"just put the matching code into every single endpoint function on your site (plus one catchall route)"

"just have one catchall route and implement routing yourself" (yeah great, I'll just throw away the webframework part of your webframework, genius!)

and "this is part of the public werkzeug API" (it's not, there's is no API to remove/overwrite a route, which is one solution for what I'm looking for)

fraeuleinwusel, to random German
@fraeuleinwusel@chaos.social avatar

Wenn ihr meine Brille mitsamt Etui wärt, wo würdet ihr euch verstecken?

phryk,
@phryk@mastodon.social avatar

@fraeuleinwusel 2. Schublade von oben im kleinen Schränkchen neben dem Bett.

mycorrhiza, to random
@mycorrhiza@post.lurk.org avatar

I’m not an Arch user, but the Arch Wiki has become the best place to figure out how to do some random thing in Linux. Nice work Arch people — thank you.

phryk,
@phryk@mastodon.social avatar

@mycorrhiza I even use a BSD and that's still true. :)

phryk, to random
@phryk@mastodon.social avatar

I for one welcome the death of Irans president.

I'm not holding my breath for it to change much, but wish the best of luck to progressive groups in the country nonetheless – Goddess knows the people of Iran deserve a fucking break.

phryk, to random
@phryk@mastodon.social avatar

Still a few open issues, but all the biggest stuff is out of the way.

Soon, I can go all-in on the design work for the new site. :3

phryk, to random
@phryk@mastodon.social avatar

Aaand 2FA with TLS client cert authentication and SHA3-512 password storage works. :blobcat:

ro, to foss
@ro@floss.social avatar

I'm genuinely curious.. when I make applications I always make it work according to my needs instead of thinking about making it usable for everyone else. Is this normal? Am I the only one who does this?

phryk,
@phryk@mastodon.social avatar

@ro I try making my stuff portable but often streamline for my own use-case with the plumbing in place to streamline for others if the need actually arises.

My previous web framework for example had a mechanism to generate configs for easier deployments, but I only implemented it for nginx+uwsgi because that's what I was using.

phryk,
@phryk@mastodon.social avatar

@ro Eh, if it's geared towards your personal use-case anyways, I'd say just don't package and release it as a… crate I think is the term in rust?

If you wanna be super clear about this, you can just add a README with a note about what use case it actually works in or it not being for public consumption or whatever.

That way people can find it and use your code to possibly find a solution to their specific problems but it's clear that it's not a supported package.

phryk, to random
@phryk@mastodon.social avatar

Okay, after doing a couple hours of research I'll still want to use uwsgi to deploy the new site, even tho the project marked itself as "in maintenance mode".

Reason being that I need to pass info about client-cert auth to the web application but I don't want to pass it in via header because it's security-critical.

phryk,
@phryk@mastodon.social avatar

Doing it with headers would of course work, but then commenting out a line of the nginx config would lead to a silent-ish failure where clients can sidestep the entire cert auth by just sending the right headers and that seems like a bad idea – so I want to keep that info out-of-band.

That's what you can do with uwsgi_param – or fcgi_param and scgi_param for that matter.

phryk,
@phryk@mastodon.social avatar

There is support for (ha)proxy protocol in both nginx and Gunicorn to pass out-of-band information, but it has a pre-defined list of fields and while those seem to include whether the client cert auth passed, there's no field for the cert or its fingerprint, which I need to check which user the the cert is assigned to.

phryk,
@phryk@mastodon.social avatar

So, wrapping WSGI in FCGI or SCGI would feasibly be an option but the most popular project there – flup – is so old that even it's "new" python 3 port (flup6) is already so old that the repo isn't reachable and the last update was in 2015.

Apart from that, there only seem to be wrapper projects with like 5½ commits and a bus factor of "author might have already been swallowed by the earth". :thaenkin:

phryk,
@phryk@mastodon.social avatar

Long story short – if you want to pass information to a WSGI application out of band, uwsgi is still your best option.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • Youngstown
  • mdbf
  • rosin
  • slotface
  • InstantRegret
  • khanakhh
  • Durango
  • kavyap
  • osvaldo12
  • DreamBathrooms
  • JUstTest
  • GTA5RPClips
  • ngwrru68w68
  • everett
  • tester
  • ethstaker
  • cisconetworking
  • cubers
  • modclub
  • provamag3
  • anitta
  • normalnudes
  • Leos
  • lostlight
  • All magazines