maor 1y ago • 100%
Oh thanks for the heads up, I should've read it more carefully :P
I recently stumbled upon a problem: I wanted the stdout of a `command` task to be printed after execution, so I toggled the global `-v` flag. However, the `service` module is apparently verbose as shit and printed like a 100 lines and uhh.... that's a costly tradeoff O_o Seems like a PR for a task-level `verbosity` keyword [has been proposed, yet rejected](https://github.com/ansible/ansible/pull/74888). I'm aware it's possible to just register the stdout of the `command` and print it in a following `debug` task, but I wonder if there's a prettier solution. How would you go about this? Ever encountered such a feeling?
maor 1y ago • 100%
Based in Israel, don't get anything. This is standard as our contacts usually specify that a third of our salary is legally considered compensation for overtime.
There's no defined schedule, it's mostly "whoever is available will take care of the incident, and if multiple people are available then they should join too". It will obviously not go smoothly if you're never available. This is terrible, I wonder if there are any other places that behave like this.
It should be noted that this isn't weird considered the working hours are quite bad compared to the OECD, not terrible though.
maor 1y ago • 100%
Me with every post here
maor 1y ago • 87%
Kindest shitjustworks user
maor 1y ago • 100%
I'd be scared to perform POST/PUT with LLM-generated commands. For immutable calls I agree though
maor 1y ago • 85%
I guess they were referring to formatting other than tabs, like place of brackets and line length, which sounds like a neat idea
maor 1y ago • 100%
He's literally me that's why I posted. Commenters won't get it
maor 1y ago • 100%
Well put, thank you for taking the time to write this. You're incredibly eloquent
maor 1y ago • 100%
I'm using both of them:) zoxide comes with a zi
command which lets you search through your recent directories
Saw the post here regarding CentOS's off-springs and a couple of people brought up the excellent point of: why play with fire? Let's just stick to Debian. The only disadvantage I currently see is the outdated packages, and I'm curious whether makedeb solves them. Does anyone here use it regularly? How stable and comfortable is it? Did you write your own PKGBUILDs?
maor 1y ago • 100%
He really said it like he's roaming there innocently as a tourist rather than as a war criminal lol
maor 1y ago • 100%
Yep, it's more of a reference. I like the argparse tutorial and would love to see more docs of this kind though
maor 1y ago • 100%
Nah 30 hours/week for insurance? It's mandatory here starting from 1hr/week 😭 Thanks for the explanation
maor 1y ago • 100%
can only get 25 hrs a week because obongocare
Uh can an American explain this? Obamacare sets a cap for weekly working hours?
maor 1y ago • 100%
I feel the same and I've been using Python for years professionally. It's the lack of examples for me; usually functions and classes aren't meant to be used as-is but rather fed as an argument into some other function or class, and this info is seldom portrayed in the func's documentation. E.g. the documentation of BaseHTTPRequestHandler
is one that I trip over every single time, I have to resort to reading the source code of SimpleHTTPRequestHandler
to remember how handlers are supposed to be defined 🐺
maor 1y ago • 100%
Nah I thought the same but then I manually checked it. In most of the image posts I see, the image URL starts with lemmy.org.il, which made me wonder whether they're actually downloaded or it's some kind of whacky proxy. So I downloaded some of these pics and looked for files of identical size and hash digest, and indeed they were on my disk!
It's not a bad decision to cache pics, because it does make the experience really smooth, and I'm not complaining about it. Mastodon does this as well
maor 1y ago • 83%
Yeah, pretty big storage requirement due to the way pictrs works. Pictrs is the piece of software Lemmy relies upon to manage image storage, uploads, and most importantly: caches pictures from other instances. This takes up a HUGE amount of storage space, and there's no official way to clear this up, see these posts I recently made: first one, second one. The solution I resorted to is renting a 1TB storage box from Hetzner for 3 euros per month, pretty sweet deal but I was kinda annoying by it. So the cheapest deal I could find costs me 6 euros per month: 3 for an Alma Linux ARM VPS from Hetzner, and 3 for that storage box. If you're in for the fun in tinkering (I sure as hell am in), then get ready for a good time. Other than that, if your main line of reasoning is to take burden off of lemmy.world, then I think just go ahead and join another instance. Better yet: join croud funding of another instnace:)
maor 1y ago • 100%
Okay, you may not gonna like it but I rented a 1TB storage box from Hetzner for 3 euros a month, just to get that foot off my neck. It's omega cheap and mountable via CIFS so life is good for now. I'm still interested in what I described in the OP, and I even started scribbling some Python, but I'm too scared of fucking anything up as of now.
The annoying part in writing that script was discovering that the filenames on disk don't match the filenames in the URLs. E.g., given this URL:
https://lemmy.org.il/pictrs/image/e6a0682b-d530-4ce8-9f9e-afa8e1b5f201.png.
You'd expect that somewhere inside volumes/pictrs
you'd find e6a0682b-d530-4ce8-9f9e-afa8e1b5f201.png
, right...? So that's not how it works, the filenames are of the exact same format but they don't match.
So my plan was to find non-local posts from the post
table, check whether the thumbnail_url
column starts with lemmy.org.il
(assuming that means my instance cached it), then finding the file by downloading it via the URL and scanning the pictrs
directory for files that match the exact size in bytes of the downloaded files. Once found, compare their checksums to be sure it's the same one, then delete it and delete its post entry in the database.
When get close to 1TB I'll get back here for this idea... :P
One of my fav Python writeups. I love Python and luckily I get to dictate how it's being written in my job, so I'm forcing types down the through of my colleagues. Saved a bunch of debugging time, so I can waste more time on Lemmy while still getting paid. Good shit
My pictrs volume got quite huge and I wanna delete pics cached from other instances. The thing is I'm not sure which pics are from my instance and which aren't, because they all have cryptic filenames. Anyone knows of a way to differentiate?
``` $ cd lemmy-dir $ du -sh * 456K lemmy-ui 15G pictrs 4.3G postgres ``` Guys this is no longer funny please I feel literally chased by the "no space left" message. Please help I don't need those pics I did not upload them
I've been dabbling in the past year and a half with getting into orgs, which haven't been _that_ hard since I live in a big city, but I still had trouble staying consistent with it or feeling like I have any actual impact. I went through orgs dealing with asylum seekers, unions for part-time workers, food security, fun local events that raise money for the aforementioned food security project, and now I landed in an org dealing with helping low-wage workers getting benefits that their employers stole from them. Most of them are refugees, some are Palestinians, which does feel somewhat impactful, but it's still a minority. These were all great orgs with moral people, but the catch is that I can't be passive with it like in my work. There aren't really any managers that are responsible for finding me work at these orgs, because they're busy with their own work. There are no Bullshit Jobs there. I need to ask around and find work myself. This is exhausting, especially while juggling a 9-5 and a couple of hobbies, and while I'm fully aware of the capitalistic scam of keeping us busy working instead of organizing, I'm yet still frustrated with it. Anyone feeling the same? I hope it'll get more impactful as my life gets more stable, and I have an overall optimistic feeling about this, but non the less the helplessness I feel right now is real :(
This paragraph was fascinating to me: > One of Hamoud’s recent articles, titled “The fascist state is materializing,” mentioned the blacked-out front pages of Israel’s largest newspapers that were published to protest the passing of the first law of the judicial overhaul (the pages were in fact paid for by the hi-tech workers in the protest movement). According to Hamoud, “this mourning is nothing but an expression of the desire of the white colonialists from the liberal Zionist society to continue killing Palestinians and robbing them of their land, as they have done until now, under the immunity of the Supreme Court and in accordance with the standards of the International Criminal Court.” This is a point that I haven't heard enough, at least in here in Israel, and sounds kinda conspiratorial, but it makes perfect sense: the existence of Israel's Supreme Court is used to create the impression of a functioning democracy, or at the very least _an attempt_ to create one. All things considered, they aren't actively fighting the occupation itself, but rather occasionally prohibit some of its crimes, mostly related to destroying homes of Palestinians who committed reprisals. The insane point is that despite the Supreme Court's complacency, its impact has been overly stressed by the right, and it's considered a blocker for occupying the rest of the west bank. They don't seem to consider the important functionality of it: helping us pretend we're not recklessly abusing Palestinians. The polite right (the one currently protesting to keep the Jew-only democracy) seems to understand it, I guess that's one of the reasons they're fighting. It's just a bit puzzling that the impolite right doesn't. Seems like self-destruction This point is explored in the movie "[The Law in These Parts](https://www.thelawfilm.com/eng#!/the-film)" which I highly recommend. Thoughts? ;)
Y'all should try it! I loved seeing it popping on other instances' `/instances` page, and seeing it polling other communities. Also changing the background in my theme was lit. Lemmy's hosting documentation is a bit rough around the edges, especially the [ARM situation](https://github.com/LemmyNet/lemmy/issues/3102) (and [its contemporary solution](https://github.com/ubergeek77/lemmy-docker-multiarch)), so I had some extra tinkering to do. No shade at all yeah? I appreciate every bit of their work and I jotted down some points that I need to consolidate into a documentation PR soon. Anyway, I feel like the extra `@...` on our usernames should be worn as a badge of honor you feel me? ;)