luthis

joined 2 years ago
[–] [email protected] 14 points 1 year ago (4 children)

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.

[–] [email protected] 16 points 1 year ago (2 children)

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.

[–] [email protected] 1 points 1 year ago

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.

[–] [email protected] 6 points 1 year ago

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.

[–] [email protected] 5 points 1 year ago

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

[–] [email protected] 13 points 1 year ago (7 children)

Tarballs are not built from source?

[–] [email protected] 21 points 1 year ago (17 children)

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?

[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 1 points 1 year ago (1 children)

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.

 

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:

 

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.

 

like, GiantHairyNipplemonsters.com..

Or maybe better, the domain for beer brewed especially for gamers.. Game Ale.

"... that was.. luthis at.. gaymail.. .com???"

"Exactly, [email protected]."

".. 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.

 

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

 

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

 

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.

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.

 

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?

 

 

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!

 

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'

 

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'
 

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:

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?

view more: ‹ prev next ›