devops DevOps What's your approach with Ansible verbosity?
Jump
  • maor maor 1 year ago 100%

    Oh thanks for the heads up, I should've read it more carefully :P

    1
  • devops
    DevOps maor 1 year ago 100%
    What's your approach with Ansible verbosity?

    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?

    10
    4
    devops DevOps What benefits do you get for being on-call?
    Jump
  • maor maor 1 year 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.

    1
  • greentext > Greentext Anon discovers his wife played the long game
    Jump
  • maor maor 1 year ago 100%

    Me with every post here

    4
  • microblogmemes Microblog Memes Breaking news: Millennial and GenZ women have standards
    Jump
  • maor maor 1 year ago 87%

    Kindest shitjustworks user

    6
  • linux Linux Mastering curl: interactive text guide
    Jump
  • maor maor 1 year ago 100%

    I'd be scared to perform POST/PUT with LLM-generated commands. For immutable calls I agree though

    1
  • greentext > Greentext Anon donates plasma
    Jump
  • maor maor 1 year ago 75%

    Terrible choice of name

    4
  • programming Programming Tabs are objectively better than spaces - gomakethings.com
    Jump
  • maor maor 1 year 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

    5
  • greentext > Greentext Anon is bewildered
    Jump
  • maor maor 1 year ago 100%

    He's literally me that's why I posted. Commenters won't get it

    7
  • comradeship Comradeship // Freechat i need to stop argue with liberals
    Jump
  • maor maor 1 year ago 100%

    Well put, thank you for taking the time to write this. You're incredibly eloquent

    3
  • linux Linux Best practices for navigating file structure via terminal?
    Jump
  • maor maor 1 year ago 100%

    I'm using both of them:) zoxide comes with a zi command which lets you search through your recent directories

    3
  • linux
    Linux maor 1 year ago 93%
    Thoughts on makedeb, Debian's unofficial makepkg clone that comes with its own version of the AUR as well? https://docs.makedeb.org/using-the-mpr/introduction/

    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?

    55
    12
    python Python Reading the Python Official Documentation is rugged
    Jump
  • maor maor 1 year 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

    1
  • greentext > Greentext Anon lives on the margins.
    Jump
  • maor maor 1 year ago 100%

    Nah 30 hours/week for insurance? It's mandatory here starting from 1hr/week 😭 Thanks for the explanation

    4
  • greentext > Greentext Anon lives on the margins.
    Jump
  • maor maor 1 year 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?

    11
  • python Python Reading the Python Official Documentation is rugged
    Jump
  • maor maor 1 year 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 🐺

    16
  • maor maor 1 year 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

    1
  • maor maor 1 year 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:)

    4
  • antiwork Antiwork Not our chosen leaders. Not our way of life.
    Jump
  • maor maor 1 year ago 66%

    I'm with you

    1
  • greentext > Greentext Anon is old
    Jump
  • maor maor 1 year ago 100%

    It's okay we all know the answer

    5
  • selfhosted Selfhosted How do I know which pics on my Lemmy instance are safe to delete
    Jump
  • maor maor 1 year 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

    2
  • antiwork Antiwork We need a guillotine emoji.
    Jump
  • maor maor 1 year ago 91%

    I think you took the joke a bit too seriously

    Edit: oh wait wtf I didn't notice the post body. I agree with you then lol

    51
  • greentext > Greentext Anon can't sleep
    Jump
  • maor maor 1 year ago 100%

    get-with-the-times-old-man.tar.xz

    17
  • lemmy_admin Lemmy Administration What pics are safe to delete?
    Jump
  • maor maor 1 year ago 100%

    It's working but I suspect it doesn't delete pics or smth. But it's nice to have nontheless

    1
  • selfhosted Selfhosted How do I know which pics on my Lemmy instance are safe to delete
    Jump
  • maor maor 1 year ago 100%

    Haha I'm literally on it right now. My instance crashed a couple of hours ago because of it, so I emptied ~/.rustup to get some time, but idk how to go about it from here. LPP didn't do anything. That seems really curious, does literally everyone use S3?

    2
  • fuck_cars Fuck Cars Tesla owners are expressing buyer’s remorse - if not by selling their Teslas, then at least with an apologetic bumper sticker.
    Jump
  • maor maor 1 year ago 100%

    Liberals downvoting a 100% based comment

    3
  • python
    Python maor 1 year ago 92%
    Writing Python like it’s Rust https://kobzol.github.io/rust/python/2023/05/20/writing-python-like-its-rust.html

    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

    68
    12
    lemmy_admin Lemmy Administration What pics are safe to delete?
    Jump
  • maor maor 1 year ago 100%

    That's beautiful, looks exactly like what I was looking for. Thank you, I'll let you know when I try it how it went

    3
  • selfhosted Selfhosted How do I know which pics on my Lemmy instance are safe to delete
    Jump
  • maor maor 1 year ago 100%

    Thanks a lot, I was looking for this exact kind of community. Posted there <3

    6
  • selfhosted Selfhosted How do I know which pics on my Lemmy instance are safe to delete
    Jump
  • maor maor 1 year ago 100%

    I should've mentioned it in the post, but I already tried deleting pics modified more than X days ago. The catch is that I don't wanna delete pics uploaded to my server, I just want to delete pocs cached from other instances :(

    3
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearLE
    Lemmy Administration maor 1 year ago 96%
    What pics are safe to delete?

    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?

    91
    8
    selfhosted
    Selfhosted maor 1 year ago 90%
    How do I know which pics on my Lemmy instance are safe to delete

    ``` $ 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

    34
    17
    comradeship Comradeship // Freechat How's your praxis going
    Jump
  • maor maor 1 year ago 100%

    Cringe reactionaries being cringe reactionaries

    4
  • comradeship Comradeship // Freechat How's your praxis going
    Jump
  • maor maor 1 year ago 100%

    Well done, I'm glad to hear things are going well and sounds like you do huge things. Proud of you, stranger

    6
  • selfhosted Selfhosted Systemd: Hidden Gems for a Better Linux // Self-host more with less hardware
    Jump
  • maor maor 1 year ago 100%

    Yep, I manage my servers and local machine with Ansible so I abstracted it with a role. This is indeed not that bad of a con because it's still plaintext so automation is easy, but it's still a minor issue ;)

    2
  • comradeship Comradeship // Freechat How's your praxis going
    Jump
  • maor maor 1 year ago 100%

    Most organizations have no set way for new members to get familiar

    This is such a pain point. How come my current employer, which has 0 positive (and negative) impact on the world, has enough resources to have a proper onboarding process while my other orgs don't? Guys I think something is rotten with the current economical structure

    Praxis for me now is just talking to friends who are left leaning, and continuing to educate myself. I just have little energy to do anything else, and it is frustrating.

    You know, I think talking shit online is nothing to scoff at. We have a whole org here called Mahazkim which is dedicated to spamming social media with pro-palestinian stances (ignore words like "progressive" and "liberal" on their site; they carry a different meaning here). If it sounds interesting to you, I can try finding something similar for you in your area. I have a friend that works in this org so I can launch a message and she'll prolly figure something out.

    3
  • comradeship Comradeship // Freechat How's your praxis going
    Jump
  • maor maor 1 year ago 100%

    I feel you, couldn't complete my degree because I hate it to the bone and it was too draining. Whatcha learning?

    4
  • comradeship Comradeship // Freechat How's your praxis going
    Jump
  • maor maor 1 year ago 100%

    To be frank I got lucky here. Palestine-Israel is a tiny country and the based leftist orgs are concentrated in the three biggest cities: Jerusalem, Haifa, and Tel Aviv. Most people live around one of these three cities, with Tel Aviv notoriously being the most left leaning, and I live in its metropolitan area for work so life is good.

    Now with this info in mind, I found these organizations through social media. The food security project is called Culture of Solidarity and they've made an ingenious decision of putting a strong emphasis on their Instagram presence. The women who founded this org (who I personally admire) have immense people skills and they leveraged the Corona crisis to create this network of food security.

    The org I most recently got into is one that my psychologist recommended on, though :)

    8
  • comradeship
    Comradeship // Freechat maor 1 year ago 93%
    How's your praxis going

    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 :(

    26
    13
    linux Linux which linux distro do you NOT like, and why?
    Jump
  • maor maor 1 year ago 100%

    I really liked unity 😞

    13
  • selfhosted Selfhosted Systemd: Hidden Gems for a Better Linux // Self-host more with less hardware
    Jump
  • maor maor 1 year ago 100%

    Love me some systemd timers. Much more fun than cron.

    • Sane handling of environment variables with EnvironmentFile=
    • Out of the box logging. Especially useful is the ability to journalctl -f to watch long-running processes, which I'm not sure whether possible with cron
    • The ability to trigger the service manually rather than setting the timer to * * * * *, then forgetting it's supposed to run in a minute, get distracted, come back in 15 minutes

    My only complaint is it's a bit verbose. I'd rather have it as an option inside the .service file. The .timer requires some boilerplate like [Unit].description (it... uh... triggers a service. that's the description), and WantedBy=timers.target. But these are small prices to pay

    20
  • linux Linux Snapless Ubuntu
    Jump
  • maor maor 1 year ago 100%

    Was it unofficial? I thought it was merely opt-in, but still official

    6
  • fuck_cars Fuck Cars This town banned cars (except tiny electric ones)
    Jump
  • maor maor 1 year ago 80%

    Wettest dream

    9
  • asklemmy Asklemmy *Permanently Deleted*
    Jump
  • maor maor 1 year ago 100%

    Yessss I love how the algorithm here isn't tailored towards sucking me in

    4
  • technology Technology How AI matchmakers, virtual pickup lines and other ChatGPT-like tools are taking over online dating
    Jump
  • maor maor 1 year ago 50%

    Alright boys we gotta step up our IRL game we got this. Get your feminist consciousness together and davai

    0
  • technology Technology Most Tinder users are already in a relationship, new survey finds
    Jump
  • maor maor 1 year ago 100%

    In an email statement on Monday, a spokesperson for Tinder said the company disputes the study.

    "Based on Tinder’s data, the figures highlighted in this study are highly misleading and do not accurately represent our members," the spokesperson wrote. "Study participants were only given three options to describe themselves — ‘celibate’, ‘in a relationship’ or ‘widowed’ — with no option for ‘single.’ This likely resulted in a completely skewed depiction of who Tinder members are and what they seek."

    Just don't write the article lol. Just put the draft in the trash and move on. I hate rating-based media

    16
  • selfhosted
    Selfhosted maor 1 year ago 97%
    Self hosting my own Lemmy instance was so much fun

    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? ;)

    185
    73