politics NZ Politics 'Reckless': Govt slashing over 1000 roles across Ministry of Education, Oranga Tamariki | Newshub
Jump
  • luthis luthis 5 months ago 100%

    A-fucking-mazing.

    4
  • politics NZ Politics 'Reckless': Govt slashing over 1000 roles across Ministry of Education, Oranga Tamariki | Newshub
    Jump
  • luthis luthis 5 months ago 100%

    This will definitely result in less people being on unemployment benefits.

    4
  • asklemmy Asklemmy What is the smallest lie you have told that had the biggest consequences?
    Jump
  • luthis luthis 5 months ago 98%

    "I'm fine."

    The problem is I keep repeating the same lie.

    65
  • newzealand Aotearoa / New Zealand Reserve Bank considers the digital dollar: 'NZ's money must innovate to stay relevant '
    Jump
  • luthis luthis 5 months ago 100%

    Whenever I hear things like this, I ask 'What's the problem they are actually trying to solve?'

    Most of the time there is no problem, it's a solution looking for a problem. In this case, it seems like the only problem to solve is:

    Today, New Zealanders still cannot make instant payments electronically to other people, unless they are both with the same bank."

    I'm pretty sure that could be solved with a middle-man app instead of a 'digital currency.' Venmo exists in the US, something like that?

    I'm sure we have had similar.. TradeMe has Ping which "Make payments safely with Ping. Pay or get paid instantly – using a credit or debit card, or Ping balance." .. so, yeah problem already solved, instant payments.

    6
  • asklemmy Asklemmy Excluding the Horror genre and individual movies in a series, what movie story ends with evil winning?
    Jump
  • luthis luthis 5 months ago 75%

    The movie clearly shows that the robots acted as if they felt pain and suffering.

    I thought the ending made it pretty clear that in the end, they are cold calculating and very intelligent machines with no actual feelings or compassion, and we had been deceived the whole time. My interpretation I guess, but I feel like that makes the movie better.

    2
  • asklemmy Asklemmy What destinations are experiencing "undertourism"?
    Jump
  • luthis luthis 5 months ago 100%

    You're over-reacting. It's probably only death at worst. Most likely 40 years.

    3
  • asklemmy Asklemmy What destinations are experiencing "undertourism"?
    Jump
  • luthis luthis 5 months ago 93%

    https://www.travelsafe-abroad.com/somalia/

    Pretty easy to find really...

    13
  • linux Linux Trying to ditch windows
    Jump
  • luthis luthis 5 months ago 100%

    Lutris can be pretty handy for many things..

    I don't have too much exp with these things, but I would suggest (as an IT support person) narrowing down and isolating problems into specifics, like:

    • I need dot.net for x thing and I tried y thing and it didn't work.

    You'll be able to get better answers. I'm pretty interested in the suggestions, my usual solution is 'find something open source that is not as good but works.'

    3
  • piracy Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ There should be a way to give directly to the developers
    Jump
  • luthis luthis 5 months ago 100%

    There should be an app or something for this..

    7
  • asklemmy Asklemmy Excluding the Horror genre and individual movies in a series, what movie story ends with evil winning?
    Jump
  • luthis luthis 5 months ago 66%

    Good point.

    1
  • asklemmy Asklemmy Excluding the Horror genre and individual movies in a series, what movie story ends with evil winning?
    Jump
  • luthis luthis 5 months ago 78%

    Her maker imprisoned and tortured all of his creations.

    I don't recall entirely but I'm pretty sure it didn't know that. Also, I don't think you can 'torture' or 'imprison' computers.

    She couldn’t trust the kid, he lied to her about there being no other machines

    So, death is justifiable then?

    It's an AI, and it was pretty clearly demonstrated at the end that it felt no remorse or compassion for the dude. It was very very good at manipulating the humans and achieving it's goal at any cost, so.. I completely disagree. Evil wins because living, feeling human beings suffered due to the actions of a sexy computer.

    8
  • asklemmy Asklemmy Excluding the Horror genre and individual movies in a series, what movie story ends with evil winning?
    Jump
  • luthis luthis 5 months ago 80%

    Hard question because I watch so much horror..

    Ex Machina

    12
  • asklemmy Asklemmy Unconventional kitchen utensil you can't live without?
    Jump
  • luthis luthis 5 months ago 100%

    I love the passion for your can opener! I'll definitely take a look at your recommendation.

    In return, here's a pepper grinder my ex-chef dad raves about that seems to be pretty tough:

    !(OXO Good Grips Radial Grinder Pepper Mill, 0.385 lbs, White)[https://www.amazon.com/OXO-Good-Grips-Lewis-Pepper/dp/B003L0OOQM/)]

    3
  • asklemmy Asklemmy Unconventional kitchen utensil you can't live without?
    Jump
  • luthis luthis 5 months ago 100%

    Probably unconventional now, but one of those old can openers. Not the turning ones, the manual single-piece ones. Every can opener I have had dies after a year or two, but this one has been going strong for like.. 50+ years.

    14
  • casualconversation [Outdated, please look at pinned post] Casual Conversation Is there anything on tv that isnt sex and violence
    Jump
  • luthis luthis 6 months ago 100%

    Not sure if this would be categorised under 'violence' but the mini series Chernobyl is freakin excellent. It's PvE, no sex, no human vs human violence (AFAIK). If you haven't seen that, I would recommend it 110%. There's a real sense of comradery, as multiple nations contribute to help contain the disaster, but it's also tragic. The series also depicts the event as less bad than it actually was in some respects.

    14
  • linux Linux XZ backdoor in a nutshell
    Jump
  • luthis luthis 6 months ago 100%

    I... actually can't tell if you're taking the piss or if that's a real episode.

    I have so many questions about the whales.

    1
  • asklemmy Asklemmy What is your idea of a perfect day off?
    Jump
  • luthis luthis 6 months ago 100%

    Terrible weather, bucketing rain, not too cold, low visibility in fog / low cloud. Close proximity to mountain bike park. Full day of sliding down trails, getting covered in mud. Absolutely miserable, wet and dirty all day, struggling to maintain traction up the hills, frequently sliding out. Evening spa / hot pools to relax the muscles with a beer.

    That's heaven.

    6
  • asklemmy Asklemmy What is your favorite flower and why?
    Jump
  • luthis luthis 6 months ago 100%

    Freesia, because it reminds me of my childhood and Spring.

    5
  • linux Linux XZ backdoor in a nutshell
    Jump
  • luthis luthis 6 months ago 100%

    Tarballs are not built from source?

    13
  • linux Linux XZ backdoor in a nutshell
    Jump
  • luthis luthis 6 months ago 100%

    I have heard multiple times from different sources that building from git source instead of using tarballs invalidates this exploit, but I do not understand how. Is anyone able to explain that?

    If malicious code is in the source, and therefore in the tarball, what's the difference?

    21
  • asklemmy Asklemmy To everyone who hates the concepts of landlords and rent, what counts as being a landlord?
    Jump
  • luthis luthis 6 months ago 33%

    Pretty sure you could count not freezing to death, having a space to keep your things safe, health, stability etc as a value output.

    -1
  • newzealand
    Aotearoa / New Zealand luthis 6 months ago 84%
    Illegal to open a kickstarter to fund legal defense if someone were to assassinate this guy? https://www.thepost.co.nz/nz-news/350230572/brian-tamaki-promises-more-same-police-investigate-hate-crimes

    I'm not saying anyone *should,* just that they would have ample legal funding if they *did*... Still haven't seen any prosecution for when they blocked the motorway either.

    9
    4
    newzealand Aotearoa / New Zealand (Good Guy) Australian pharmacy ignores legal challenge over diabetes sensors
    Jump
  • luthis luthis 6 months ago 100%

    8
  • newzealand
    Aotearoa / New Zealand luthis 6 months ago 100%
    (Good Guy) Australian pharmacy ignores legal challenge over diabetes sensors https://www.stuff.co.nz/nz-news/350216880/australian-pharmacy-ignores-legal-challenge-over-diabetes-sensors

    TL;DR An Australian pharmacy will continue to send lower-cost diabetes equipment across the Tasman, despite a cease and desist from a medical manufacturer. ... “This is $130 that my whānau, and many other whānau, could have in their pocket each month,” she told them. ... manufacturer Medtronic had sent David Jones Pharmacy a letter threatening legal action if the company continued to supply Kiwi customers with the sensors. ... The pharmacy was “not a legally authorised distributor of Medtronic diabetes products in New Zealand” ... “We have chosen to ignore [the letter] as it was built upon unsubstantiated accusations,” Le said. ... “It creates a massive inequity for families who don’t have the financial means to pay a weekly amount, and it’s also a contributing risk to longer term health outcomes. “It's really expensive to keep them alive. By not funding [sensors] you are risking the lives of kids who don't have that layer of privilege.” ____ I fucking hate this bullshit. Hong Le is a hero.

    32
    5
    asklemmy Asklemmy If a democratic country put a 3rd option on every ballot, "kill everyone", how long before option 3 wins?
    Jump
  • luthis luthis 6 months ago 58%

    Already happened in China in 1958, but I don't believe ballots were involved...

    3
  • linux_gaming Linux Gaming How do you switch window focus while gaming?
    Jump
  • luthis luthis 6 months ago 60%

    centering the mouse on the game

    Maybe I'm missing something, but.. why is this a problem? You can just like, move the mouse to where you want it?

    I can't replicate this issue on mine. I recently somehow broke Gnome (again) during an update, so I finally went back to a tiling WM (awesome this time). I start the game in a separate desktop, and then when I need to do things outside of the game, I just change to another desktop using the keyboard shortcuts. Pretty sure this is possible in all WM/DEs on Linux.

    1
  • politics NZ Politics ‘Sad and bizarre’: K Rd rainbow crossing painted over
    Jump
  • luthis luthis 6 months ago 100%
  • asklemmy
    Asklemmy luthis 6 months ago 95%
    When you're criminally accused, how do you pay your mortgage? https://www.stuff.co.nz/world-news/350222402/accused-poisoner-erin-patterson-moved-protected-unit-prison

    Obviously, I am not in this situation. Related article, wondering what is happening to this woman's house/loans/expenses/rent/car payments/etc So before conviction, when you're being held pending court proceedings, it would be inconvenient to attend your work place during that time. So I'm wondering, what happens? If you're found not guilty after months of court hearings, are you just fucked over completely because the bank foreclosed on your house?

    97
    26
  • luthis luthis 6 months ago 100%

    Apple will make you pay for anything apparently

    6
  • asklemmy Asklemmy What are some underrated yet well paid jobs that one should consider and why ?
    Jump
  • luthis luthis 6 months ago 95%

    Being a monarch or some kind of royalty seems to be excellent financially and often overlooked.

    91
  • politics NZ Politics 'Nobody should live like this' - Kāinga Ora tenants hope changes make a difference
    Jump
  • luthis luthis 6 months ago 100%

    I think something like that would be an edge case. We aren't talking about Karen-land, people are worried about drugs, violence, and abuse.

    2
  • politics NZ Politics 'Nobody should live like this' - Kāinga Ora tenants hope changes make a difference
    Jump
  • luthis luthis 6 months ago 100%

    re-education camps.

    shudder

    Yes, exactly.

    1
  • asklemmy Asklemmy Are you using passphrases? Is it worth it?
    Jump
  • luthis luthis 6 months ago 40%

    using sufficiently long passwords is your best defense

    No, using 2FA is your best defense, along with wise recovery questions. It matters nothing if you know someone's password, but can't get the 2FA code.

    -1
  • asklemmy Asklemmy Are you using passphrases? Is it worth it?
    Jump
  • luthis luthis 6 months ago 100%

    Brute force is only a thing when either they have the password hash, or the login portal is susceptible to brute force (ie shite). Both cases are rare.

    1
  • asklemmy Asklemmy Are you using passphrases? Is it worth it?
    Jump
  • luthis luthis 6 months ago 100%

    It doesn't matter in the slightest if you use 2FA.

    1
  • asklemmy Asklemmy Are you using passphrases? Is it worth it?
    Jump
  • luthis luthis 6 months ago 60%

    Define 'strength'... against a dictionary attack? Brute force? Social engineering? 'forgotten password/recovery questions' hack? Stolen session cookie? Keyloggers?

    If you're not aware of the above, take some time to learn about each of those things and how good security practices counter each one.

    The question is kind of like, 'can you bake a cake?' .. probably yes, but it's really missing a lot of essential information, like what kind of oven, what ingredients do you have, what's your skill level, do you have arms, etc.

    Any 'passphrase' can be secure or insecure, depending on the other surrounding factors. 2FA solves many security weaknesses.

    1
  • politics NZ Politics 'Nobody should live like this' - Kāinga Ora tenants hope changes make a difference
    Jump
  • luthis luthis 6 months ago 100%

    100% agreed there.

    4
  • asklemmy Asklemmy chmod -R hit me, again... Anyone else who faced these sys-admin woopsies?
    Jump
  • luthis luthis 6 months ago 100%

    Thank you for your sacrifice.

    I definitely would have made this mistake.

    1
  • newzealand Aotearoa / New Zealand What should we nominate for Lemmyvision?
    Jump
  • luthis luthis 6 months ago 100%

    let alone one from NZ

    Dude... Tadpole, Anika Moa, the Runga twins, 8 Foot Sativa, Sinate... Yes, none of those are even from this decade but they are from NZ!

    4
  • politics NZ Politics 'Nobody should live like this' - Kāinga Ora tenants hope changes make a difference
    Jump
  • luthis luthis 6 months ago 100%

    If there was a strong possibility they would end up homeless, or in a much worse living situation than they are currently in, that would be a strong incentive to change their behaviour.

    Respectfully, I disagree. Many people in this state really DGAF and especially DGAF about (/have no understanding of) consequences, or they wouldn't be in this situation in the first place. Consequences work for people who have something to lose. For these people, many don't (feel they) have anything to lose. Change will not come from within in these cases.

    5
  • stable_diffusion Stable Diffusion Introducing Stable Video 3D: Quality Novel View Synthesis and 3D Generation from Single Images — Stability AI
    Jump
  • luthis luthis 6 months ago 100%

    I'm super keen to try this. Can anyone chime in on mesh optimisation (etc) though? I have very little knowledge on modelling/texturing/UV mapping/etc, but I do know that a shitty mesh just means someone is going to have to model it again by hand.

    5
  • politics NZ Politics 'Nobody should live like this' - Kāinga Ora tenants hope changes make a difference
    Jump
  • luthis luthis 6 months ago 100%

    "People living in and around social housing should suffer the actions of the few disruptive/violent/etc people." - Everyone opposed to these actions.

    The problem still stands though, as in, it's true, they are just moving the problem elsewhere.

    So, what is to be done?

    The only thing I can think of is to move these people into a separate environment where they can not bother other people, and be given training, tasks, and education, to help them out of it. Which unfortunately sounds a lot like labour camps. I'm out of ideas.

    6
  • linux Linux Schroedinger's DNS?? Can't resolve host when adding http.. help!
    Jump
  • luthis luthis 6 months ago 93%

    Ah thanks, that's my problem, it's me.

    14
  • linux
    Linux luthis 6 months ago 33%
    Schroedinger's DNS?? Can't resolve host when adding http.. help!

    This makes no freakin sense to me, and it's driving me bonkers. Censored for work purposes obv. Hosts file: 1.1.1.1 site.com $ping site.com PING site.com (1.1.1.1) ^C $ping http://site.com ping: unknown host http://site.com *What??* Ping, You *JUST RESOLVED* site.com, why can't you resolve it now?? Why does the addition of the protocol break DNS resolution? It's CentOS 6.10, quite old.. /etc/nsswitch has: hosts: files dns Any pointers would be much appreciated.

    -11
    8
    linux
    Linux luthis 6 months ago 96%
    [ARCH] [EASYAF] Use RAM for Firefox and boost performance and decrease drive wear https://wiki.archlinux.org/title/Firefox/Profile_on_RAM

    Might be late to the party, but I just discovered you can do this. Super simple and easy to do. After having a read of the linked page, I backed up and just used this option: https://wiki.archlinux.org/title/Profile-sync-daemon Installed, created config, and enabled service: systemctl --user enable psd.service systemctl --user enable psd-resync.service I definitely notice an increase in speed and less SSD usage should hopefully increase lifespan. I'm sure there would be options for alternative distros, anything using Systemd should be able to use the daemon.

    117
    29
    asklemmy
    Asklemmy luthis 7 months ago 95%
    What things am I a dumbass about?

    Had someone contact me because a browser interface was 'down' and it was actually a cert issue. It surprised me that in an IT context, this person didn't have a basic understanding of SSL certs. They didn't even know how to add a cert exception. It got me thinking, what basic ubiquitous things am I a dumbass about outside of IT? Ive seen lots of 'fun facts' compilations, but it would be better to get a wide range of subject suggestions that I can spend 30 minutes each or less on, and become a more capable human. Like what subjects would plumbers consider basic knowledge? Chemical interactions between cleaning products and PVC pipes? What would an accountant or a landscaper consider to be so basic its shocking people can live their lives without knowing any of it? For most areas of expertise, its difficult to know even what the basics are to start with.

    126
    155
    stopdrinking
    Stop Drinking luthis 9 months ago 97%
    Tips that are helping me break the cycle

    cross-posted from: https://lemmy.nz/post/5047640 > After a sober new years because I was on call, I decided to keep it going. > > Here's what I'm doing that is helping me so far: > > - No caffeine. It puts me on a rise/crash cycle where I end up going for the beer just to get through the evening. > > - No alcohol lying around; environment is stronger than willpower. > > - Keeping busy until the liquor stores close > > - Eating properly and regularly, so I never reach a state of low energy and low willpower. Because you know a beer will fix that *real quick* and then you're back in the cycle. > > Also really helps after ADHD diagnosis and having medication to kill the uneasy itchiness that I was using alcohol for.

    32
    3
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearAL
    alcoholism luthis 9 months ago 100%
    Tips that are helping me break the cycle

    After a sober new years because I was on call, I decided to keep it going. Here's what I'm doing that is helping me so far: - No caffeine. It puts me on a rise/crash cycle where I end up going for the beer just to get through the evening. - No alcohol lying around; environment is stronger than willpower. - Keeping busy until the liquor stores close - Eating properly and regularly, so I never reach a state of low energy and low willpower. Because you know a beer will fix that *real quick* and then you're back in the cycle. Also really helps after ADHD diagnosis and having medication to kill the uneasy itchiness that I was using alcohol for.

    32
    4
    dreaming
    Dreams, Dreaming, etc. luthis 9 months ago 100%
    Does anyone else remember dreams from when they were kids right before falling asleep?

    cross-posted from: https://lemmy.world/post/10175952 > Right before I fall asleep, I'll remember some random details of a dream I had when I was 5-10 years old. It changes each night, but never is a newer dream. > > Does that happen to anyone else?

    13
    0
    mtb
    Mountain Biking luthis 9 months ago 100%
    What is the square bracket just under the pivot next to the rear shock for??

    I thought it was an access hole to get to the cables inside the seat tube, but when I unscrewed the square black plastic plate, it's just a flat bare metal surface, with a vertical slot cut in offset from the centre. Is this for a chain guide?? Seems too high for that. I can't find anything in the user manuals on Giant Trance (this is a 2018 Trance 2).

    8
    3
    linux
    Linux luthis 9 months ago 95%
    Stat command shows birth *after* modify time?

    Any explanation on how this happens? Access: 2023-12-14 07:57:28.376736001 +1300 Modify: 2023-12-14 07:50:20.783207177 +1300 Change: 2023-12-14 07:51:57.413989824 +1300 Birth: 2023-12-14 07:51:57.413989824 +1300 Just as a matter of curiosity

    22
    6
    "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearGA
    Gaming luthis 9 months ago 100%
    DayZ and Icarus team up with a cheeky 'The Day After' survival Steam sale bundle www.pcgamer.com
    2
    0
    linux
    Linux luthis 9 months ago 88%
    Can anyone tell me what format this uh.. nested dictionary is?

    cross-posted from: https://lemmy.nz/post/4294116 > I have a file with content like this: > > ``` > item({ > ["attr"] = { > ["size"] = "62091"; > ["filename"] = "qBuUP9-OTfuzibt6PQX4-g.jpg"; > ["stamp"] = "2023-12-05T19:31:37Z"; > ["xmlns"] = "urn:xmpp:http:upload:0"; > ["content-type"] = "image/jpeg"; > }; > ["key"] = "Wa4AJWFldqRZjBozponbSLRZ"; > ["with"] = "email@address"; > ["when"] = 1701804697; > ["name"] = "request"; > }); > ``` > > I need to know what format this is, and if there exists a tool in linux already to parse this or if I need to write one myself? > > Thanks!

    28
    7
    programming
    Programming luthis 9 months ago 97%
    Can anyone tell me what format this uh.. nested dictionary is?

    cross-posted from: https://lemmy.nz/post/4294116 > I have a file with content like this: > > ``` > item({ > ["attr"] = { > ["size"] = "62091"; > ["filename"] = "qBuUP9-OTfuzibt6PQX4-g.jpg"; > ["stamp"] = "2023-12-05T19:31:37Z"; > ["xmlns"] = "urn:xmpp:http:upload:0"; > ["content-type"] = "image/jpeg"; > }; > ["key"] = "Wa4AJWFldqRZjBozponbSLRZ"; > ["with"] = "email@address"; > ["when"] = 1701804697; > ["name"] = "request"; > }); > ``` > > I need to know what format this is, and if there exists a tool in linux already to parse this or if I need to write one myself? > > Thanks!

    33
    20
    linux
    Linux luthis 9 months ago 95%
    Can anyone tell me what format this uh.. nested dictionary is?

    I have a file with content like this: ``` item({ ["attr"] = { ["size"] = "62091"; ["filename"] = "qBuUP9-OTfuzibt6PQX4-g.jpg"; ["stamp"] = "2023-12-05T19:31:37Z"; ["xmlns"] = "urn:xmpp:http:upload:0"; ["content-type"] = "image/jpeg"; }; ["key"] = "Wa4AJWFldqRZjBozponbSLRZ"; ["with"] = "email@address"; ["when"] = 1701804697; ["name"] = "request"; }); ``` I need to know what format this is, and if there exists a tool in linux already to parse this or if I need to write one myself? Thanks!

    19
    6
    asklemmy
    Asklemmy luthis 10 months ago 96%
    How does inflation correlate with more savings vs more spendings?

    A recent article: https://www.stuff.co.nz/business/money/301022706/prepare-to-find-another-70-a-week-to-get-by-in-2024-asb says: `..if households decided the worst was over and started to feel more confident about spending, it could push up inflation` But I thought it was the opposite; More spending means more demand means more supply, which means production costs go down (due to economies of scale)… so inflation goes down? But saving means less spending, means less demand, means less income for business, means costs go up.. so inflation would rise?

    28
    10
    newzealand
    Aotearoa / New Zealand luthis 10 months ago 100%
    Prepare to find another $70 a week to get by in 2024: ASB www.stuff.co.nz

    Alright guys, here's my game plan. Start drinking. Really, build that daily habit until you're spending at least $70 per week on alcohol. Then just stop drinking next year. Problem solved!

    18
    12
    auckland
    Tāmaki Makaurau / Auckland luthis 10 months ago 100%
    Important milestone sees Te Whau Pathway construction recommence ourauckland.aucklandcouncil.govt.nz

    I'm so keen for this one. I would use it all the time. I have to ride out to Howick for a nice seaside ride: ![](https://files.catbox.moe/9o13g4.png)

    3
    0
    adhd
    ADHD luthis 10 months ago 100%
    Is anyone able to explain the 'coming up' feeling after taking morning ritalin or caffeine?

    I realised this feeling is why I have such an issue avoiding caffeine, even more after starting on ritalin. It's that, "I'm really starting to feel awake and capable now" feeling, sometimes a light tenseness in the back of the neck. What is going on here, neuronically? Also a time when I *really* crave nicotine. I'm trying to quit the nicotine so if I can understand this feeling, I can make a strategy to avoid it.

    20
    8
    asklemmy
    Asklemmy luthis 10 months ago 90%
    Do you ever come up with genius ("genius") ideas for joke domains to unsettle/embarrass people when you tell them your email?

    like, GiantHairyNipplemonsters.com.. Or maybe better, the domain for beer brewed especially for gamers.. Game Ale. "... that was.. luthis at.. gaymail.. .com???" "Exactly, luthis@gameale.com." ".. g a y..m a i l?" "What?? No! GAME *ALE* dot com!" Just the random shit that comes into my brain when I walk without other stimulus.. surely I'm not the only one.

    91
    38
    linux
    Linux luthis 10 months ago 88%
    SOLVED How to correctly set user/pass in compose file?

    cross-posted from: https://lemmy.nz/post/4034332 > Not sure what I'm doing wrong here, I'm using this image: > > https://hub.docker.com/r/bitnami/wordpress-nginx > > I updated the compose file to have un/pw for mariadb: > > ``` > mariadb: > image: docker.io/bitnami/mariadb:11.1 > volumes: > - '/etc/docker/mariadb-persist:/bitnami/mariadb' > environment: > - ALLOW_EMPTY_PASSWORD=no > - MARIADB_USER=admin > - MARIADB_PASSWORD=admin > - MARIADB_DATABASE=bitnami_wordpress > ``` > > But I get this error: > > 2023-12-03 19:03:02 3 [Warning] Access denied for user 'admin'@'172.18.0.3' (using password: NO) > > using password: NO??

    14
    2
    docker
    Docker luthis 10 months ago 100%
    SOLVED How to correctly set user/pass in compose file?

    Not sure what I'm doing wrong here, I'm using this image: https://hub.docker.com/r/bitnami/wordpress-nginx I updated the compose file to have un/pw for mariadb: ``` mariadb: image: docker.io/bitnami/mariadb:11.1 volumes: - '/etc/docker/mariadb-persist:/bitnami/mariadb' environment: - ALLOW_EMPTY_PASSWORD=no - MARIADB_USER=admin - MARIADB_PASSWORD=admin - MARIADB_DATABASE=bitnami_wordpress ``` But I get this error: 2023-12-03 19:03:02 3 [Warning] Access denied for user 'admin'@'172.18.0.3' (using password: NO) using password: NO??

    2
    4
    asklemmy
    Asklemmy luthis 10 months ago 98%
    What is the legal difference between owning digital and physical media?

    Sony is [Sony is about to delete Mythbusters, Naked and Afraid, and tons of other Discovery shows from PlayStation users’ libraries even if they already “purchased” them.](https://kotaku.com/sony-ps4-ps5-discovery-mythbusters-tv-1851066164?) So, if you bought a DVD licensed by Sony, can they now legally enter your house and take your DVD? Or can Sony have some sort of DRM that prevents the DVD from playing when Sony loses the license agreement? I'm just trying to reconcile how digital purchases can be subject to license terms changes, while a DVD apparently can't be.

    93
    48
    newzealand
    Aotearoa / New Zealand luthis 10 months ago 100%
    'It's a racket': Why a man got $96 fine when getting two coffees www.stuff.co.nz

    So let me get this straight... Lease some piece of gravel and put a shitty drive thru coffee stand on it. Fine people when they drive thru to get the coffee. Get $$$. It's so simple! Instead of selling $5 coffees, you're selling $100 'parking' fines! Genius!! Anyone else want to go in on this with me?

    45
    5
    lemmyshitpost
    Lemmy Shitpost luthis 10 months ago 96%
    Onions are a violation of the terms of service.

    ![](https://lemmy.nz/pictrs/image/d3c177a5-bd64-4e83-881e-3de4fd159595.jpeg)

    185
    16
    linux
    Linux luthis 10 months ago 100%
    Automatic backups of inode tables and partition info for easier data recovery

    Good morning all, in today's episode of "What I learned during work hours"... I was playing around with wxHexEditor and realised that if something catastrophic happened, I would really struggle with any data recovery if I lost the inode tables for any drive. A quick duckle pointed me to e2image, which says in the man: > It is a very good idea to create image files for all file systems on a system and save the partition layout (which can be generated using the fdisk -l command) at regular intervals --- at boot time, and/or every week or so. I couldn't find any prebuilt solutions for this online, so I wrote a systemd service and timer to do this for me. I save the fdisk to a text file, run e2image on a couple drives, and compress it all together in a dated 7z that can get uploaded via rsync or Mega or Dropbox etc. The metadata image from a 500gb drive is 8gb, but compresses down to 40mb. Backup takes a couple minutes. ~~Unfortunately this does *not* work with my raid drives, but they are RAID1 so already resilient.~~ Apparently I was being a derp somehow. ...Anyways, My RAID drives are 16TB, e2image of this is 125gb, and 7z'd it comes down to just 63mb. I'll post the service, timer, and backup script in a comment, let me know if you can spot anywhere for improvements!

    30
    16
    linux
    Linux luthis 10 months ago 100%
    How to take actions on multiple docker containers at once

    Again, please tell me if there is a better way to do this. While testing docker, frequently I need to start/stop/rm containers. I got *real sick* of having to ls them and copy paste the container ID. Using this alias, I just have to remember a single part of the name of the container, and I will get the container IDs that can then be included as part of another command: ``` $ alias dcl='_dcl(){ docker container ls -aq -f name="$1";}; _dcl' $ dcl snikket b3fcbc808cc9 1947885fbb24 054d67d2e8b9 d8fe9df5f61f ``` So now that I'm getting a list of IDs, I can easily, for example, pause all of them: ``` $ docker container pause $( dcl snikket ) Error response from daemon: container is not running Error response from daemon: container is not running Error response from daemon: container is not running Error response from daemon: container is not running ``` The containers weren't actually running, but this shows the alias working. dcl obviously stands for 'docker container ls'

    26
    26
    linux
    Linux luthis 10 months ago 100%
    How to see enabled services that have been stopped [systemd]

    Someone tell me if there is a better way to do this, but I don't see how. I needed a way to see which services I have *enabled* that I have manually stopped. There oddly isn't a way to do this in one command, so I had to take the output of list-unit-files 'enabled', and use that to filter for 'list-units'. The command is here: ` alias sysstop='systemctl list-units --state=failed,dead,exited $( systemctl list-unit-files --state=enabled --type=service | awk "/.*\.service/ {print }" )' ` So now I can remember that I need to restart mariadb and nginx at some point: ``` $ sysstop UNIT LOAD ACTIVE SUB DESCRIPTION blueman-mechanism.service loaded inactive dead Bluetooth management mechanism mariadb.service loaded inactive dead MariaDB 11.2.2 database server NetworkManager-wait-online.service loaded active exited Network Manager Wait Online nginx.service loaded inactive dead A high performance web server and a reverse proxy server systemd-homed-activate.service loaded active exited Home Area Activation systemd-networkd-wait-online.service loaded active exited Wait for Network to be Configured ``` My other aliases are here, in case anyone finds these helpful. I use them frequently myself. ``` alias sysdis='systemctl list-unit-files --type=service --state=disabled' alias sysdisuser='systemctl list-unit-files --type=service --state=disabled --user' alias sysen='systemctl list-unit-files --type=service --state=enabled' alias sysenuser='systemctl list-unit-files --type=service --state=enabled --user' alias sysfail='systemctl list-units --type=service --state=failed' alias sysrun='systemctl list-units --type=service --state=running' alias sysrunuser='systemctl list-units --type=service --state=running --user' alias sysstatic='systemctl list-units --type=service --state=static' ```

    46
    8
    linux
    Linux luthis 10 months ago 100%
    FOUND file in device by hex content using wxHexEditor

    Just having a play around, this turned out to be not as clear cut as expected. so I created a file and entered some text, used xxd to get the hex values, and then opened the device /dev/sdb1 in wxhexeditor and tried to find my file, but it's not finding it. Inode is 19, so it should be right at the start of the first block group, but after several minutes, no joy. (drive is ext4.) I thought this was going to be an easy task, just multiply the inode by the block size, open the device with wxhexeditor, and scroll to the line corresponding to the calculated byte, copy out the hex values and convert to ascii and voila, there's the 'hello world'... except no. What am I missing here? Drive isn't encrypted, nothing silly like that. Ok, I managed to do it with dd: ``` sudo dd if=/dev/sdb1 bs=8M skip=$((4660742*4096)) iflag=skip_bytes | head -c 4096 hello ``` but why can I not find it using wxhexeditor?? EDIT: Duh, I didn't click that offset needed to be multiplied by the block size. If I go to offset 4660742*4096=19090399232 in wxhexeditor, indeed I see the file contents: ![](https://files.catbox.moe/6zvhx0.png) Final conclusion: After some more testing, I have concluded: you cannot easily calculate the offset using the inode. Finding files across the disk requires using the inode tables to get the offset and actual file location. So an inode does not correlate with a physical/logical sequential disk location. I created a new file, it received inode 21, but the offset was smaller than inode 19. Was that a good use of 3 hours of my life? Well... I still have no idea what's up with the Kardashians, so.. I guess?

    38
    11
    linux
    Linux luthis 10 months ago 95%
    Systemd Homed users and what does 'login' mean?

    From homectl: Home directories managed by systemd-homed.service are usually in one of two states, ... when "active" they are unlocked and mounted, and thus accessible to the system and its programs; ... Activation happens automatically at login of the user What does 'login' mean? For example, I created a user and tried to `su -l test`, but I got: cannot change directory to /home/test. What is required to 'activate' a homed directory if not a login shell?

    22
    5
    newzealand
    Aotearoa / New Zealand luthis 10 months ago 83%
    Live: Police searching hospitals, schools after threats across country www.stuff.co.nz

    What is up with all the 'threats' all of a sudden? Bomb threats, shooter threats, it went from never to this year it's every couple months. Am I remembering incorrectly?

    8
    2
    asklemmy
    Asklemmy luthis 10 months ago 98%
    Do you have a fire extinguisher on hand?

    This is going to be more of a life pro tip, but trying to reach the largest audience here. Just had a frantic neighbour knocking at my door saying there is a fire in her oven. I was over there in under 60 seconds with the fire extinguisher. There was a pot of oil on fire wedged between the element and the rack. No way to quickly and safely remove it, so I blasted it. If I had tried to remove the pan, it's likely it would have ended up spilling burning oil everywhere and making the situation much worse. Now they just have a house full of dust to clean. Will replace our extinguisher today and am considering buying a few more to gift this Christmas.

    277
    98
    linux
    Linux luthis 10 months ago 100%
    How to exclude SSH port from VPN so you can remote access while VPN is up

    I solved this problem for myself yesterday and couldn't find the answer anywhere online (clearly stated), so here's what I did. This also works for Plex, games, etc it's policy based routing so you can have your VPN and remote access at the same time. This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you're serving. This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn't go back out through the VPN. I used this page to figure out how to do this: http://linux-ip.net/html/tools-ip-rule.html Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP ` sudo ip route add default via 192.168.19.1 table 10` Add a rule for the return traffic from your ssh host ` sudo ip rule add sport 22 table 10` ` sudo ip route flush cache` check out your fancy new rule ` ip rule show` And to make this persistent across reboots, add to: `/etc/systemd/network/20-wired.network` (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent) ``` [Route] Gateway=192.168.19.1 Table=10 [RoutingPolicyRule] SourcePort=22 Table=10 ```

    90
    21
    linux
    Linux luthis 10 months ago 91%
    What happens when Linus dies/retires?

    Will we all be fucked or is there a Linus 2?

    298
    157
    newzealand
    Aotearoa / New Zealand luthis 11 months ago 88%
    Not the hero we need, the hero we deserve

    /s obviously ![](https://files.catbox.moe/l89oya.mp4) On a side note, anyone know if we can embed videos yet? Had to rip it from instagram. Credits to jammylammyofficial

    14
    6