Helix

joined 4 years ago
MODERATOR OF
[–] Helix@feddit.de 2 points 2 years ago (1 children)

I would, if the game wouldn't be so expensive 💀

[–] Helix@feddit.de 3 points 2 years ago* (last edited 2 years ago)

It’s like an athlete getting lame.

Oh wow, that's a pretty cool analogy. Stealing that :D

Others might not be able to understand this loss as they see them just being on their level

They even sometimes tell me how smart I am and that… triggers me even more. Bitch, I'm dumb, if you think that's smart you really offend me. Deep down I know that they mean well and think they're giving me a compliment, but it still stings.

[–] Helix@feddit.de 12 points 2 years ago

imagine what they didn't find!

[–] Helix@feddit.de 3 points 2 years ago

Link! Link! LINK! LISTEN!

[–] Helix@feddit.de 12 points 2 years ago (2 children)

Naaaaw, I love him! He's just a misunderstood ADHD robot without friends. Cut him some slack!

Did you play his sidequest with getting people to come to his birthday party in Borderlands 2?

I actually named my home server claptrap. My desktop is chappie (from the movie of the same name, with another anthro robot).

[–] Helix@feddit.de 6 points 2 years ago

Now check the other mini PCs from other random Aliexpress, Banggood, Gearbest and Temu vendors...

[–] Helix@feddit.de 1 points 2 years ago

I am motivated by hate and hate alone. Spite just doesn't do it for me anymore.

[–] Helix@feddit.de 4 points 2 years ago

Would have been my suggestion as well.

[–] Helix@feddit.de 0 points 2 years ago

Wenn sich jeder normale Mensch einen Mitläufer schnappt, sind wir die AfD bald los.

[–] Helix@feddit.de 9 points 2 years ago (2 children)

I don't only feel less intelligent, I am less intelligent. My IQ dropped about 20%, which is noticeable by everyone including me.

The most annoying thing is that it feels like my brain is underclocked. Some Ritalin helped for a while with that but I had to stop taking it because of the risk for sudden death in conjunction with my other meds and conditions, which is something I wouldn't like to experience.

However even with enhancing drugs I still am not the 80% which my IQ test says, I feel more like half of what I used to be. It's really detrimental to self worth knowing that I used to be smart and now I'm "just average" even though years of therapy told me it's OK to be average.

[–] Helix@feddit.de 1 points 2 years ago (1 children)
[–] Helix@feddit.de 7 points 2 years ago

I allow and acknowledge them. I know that I should seek help when they become more concrete, but as log as it's just a death wish it's nothing to worry about.

Do know that your current situation is not indefinite. Sometimes, a door closes but a window opens.

 

Hier wird beschrieben, warum Nerds ab und an einfach mal nichts schreiben sollten und nicht von allem eine Ahnung haben.

 

Bei einer privaten Veranstaltung liefen mehrere Personen über glühende Kohlen. Die Sanität musste mit einem Grossaufgebot ausrücken, mehr als die Hälfte der Personen mussten hospitalisiert werden.

 

Hi guys,

I have the following variable in Ansible:

additional_lvm_disks:
  persistent:
    device: xvdb
    part: 1
    crypt: yes
    logical_volumes:
      persistent_data:
        size: 100%VG
        mount: /data
  volatile_hdd:
    device: xvdc
    part: 1
    crypt: yes
    logical_volumes:
      var_cache:
        size: 50%VG
        mount: /var/cache
      var_log:
        size: 50%VG
        mount: /var/log
  volatile_ssd:
    device: xvde
    part: 1
    crypt: yes
    logical_volumes:
      tmp:
        size: 30%VG
        mount: /tmp
      volatile_data:
        size: 70%VG
        mount: /media/volatile_data

Now I want to iterate over this structure and create encrypted disks with an LVM on top. I named the PVs according to the keys, so I came up with this (which, obviously, does not work properly):

- name: Install parted
  apt:
    name: [ 'parted' ]
    state: present

- name: Install lvm2 dependency
  package:
    name: lvm2
    state: present

- name: list the devices and mounts being specified
  debug:
    msg: "{{ item.device }} - {{ item.mount }}"
  with_items: "{{ var_devices_mounts }}"

- name: Check if devices exist
  fail:
    msg: "device {{ item.value.device }} does not exist or is corrupted }} "
  when: ansible_facts['devices'][item.value.device]['size'] | length == 0
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Check Secret File Creation
  command: sh -c "dd if=/dev/urandom of={{ var_keyfile_path }} bs=1024 count=4"
  args:
    chdir:   "{{ var_keyfile_dir }}"
    creates: "{{ var_keyfile_path }}"

- name: Check Secret File Permissions
  file:
    state: file
    path:  "{{ var_keyfile_path }}"
    owner: root
    group: root
    mode:  "0400"

- name: Create Partition
  parted:
    device: "/dev/{{ item.value.device }}"
    number: 1
    flags: [ lvm ]
    state: present
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Create LUKS container with a passphrase
  luks_device:
    device: "/dev/{{ item.value.device }}1"
    state: "present"
    passphrase: "123456789"
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Add keyfile to the LUKS container
  luks_device:
    device: "/dev/{{ item.value.device }}1"
    new_keyfile: "{{ var_keyfile_path }}"
    passphrase: "123456789"
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: (Create and) open LUKS container
  luks_device:
    device: "/dev/{{ item.value.device }}1"
    state: "opened"
    name: "{{ item.value.device }}1_crypt"
    keyfile: "{{ var_keyfile_path }}"
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Set the options explicitly a device which must already exist
  crypttab:
    name: "{{ item.value.device }}1_crypt"
    backing_device: "/dev/{{ item.value.device }}1"
    state: present
    password: "{{ var_keyfile_path }}"
    opts: luks
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Creating Volume Group
  lvg:
    vg: "{{ item.key }}"
    pvs: "/dev/mapper/{{ item.value.device }}1_crypt"
  loop: "{{ lookup('dict', additional_lvm_disks) }}"

- name: Creating Logical Volume
  lvol:
    vg: "{{ item.value.volume_group }}"
    lv:  "{{ item.key }}"
    size: 100%VG
  loop: "{{ lookup('dict', (additional_lvm_disks | dict2items | combine(recursive=True, list_merge='append')).value.logical_volumes) }}"

- name: create directorie(s)
  file:
    path: "{{ item.value.mount }}"
    state: directory
  loop: "{{ lookup('dict', (additional_lvm_disks | dict2items | combine(recursive=True, list_merge='append')).value.logical_volumes) }}"

- name: format the ext4 filesystem
  filesystem:
    fstype: ext4
    dev: "/dev/{{ item.value.volume_group }}/{{ item.key }}"
  loop: "{{ lookup('dict', (additional_lvm_disks | dict2items | combine(recursive=True, list_merge='append')).value.logical_volumes) }}"

- name: mount the lv
  mount:
    path: "{{ item.value.mount }}"
    src: "/dev/{{ item.value.volume_group }}/{{ item.key }}"
    fstype: ext4
    state: mounted
  loop: "{{ lookup('dict', (additional_lvm_disks | dict2items | combine(recursive=True, list_merge='append')).value.logical_volumes) }}"

I found that I probably need the product filter for a loop to create a cartesian product of all the volume groups and their disks as well as all the logical volumes and their volume groups, the latter looking something like this:

- { volume_group: volatile_hdd, logical_volume: var_cache, size: 50%VG }
- { volume_group: volatile_hdd, logical_volume: var_log, size: 50%VG }

Sadly I can't wrap my head around this and there are no good tutorials or examples I could find.

How do I iterate over the "monster dictionary" above to get what I want?

 

IBM möchte mehr Millenials und weniger ältere Mitarbeiter, wie interne E-Mails deutlich machen.

 

Ich bin umgezogen und habe ein "Angebot" bekommen, für 0,81€/kWh Strom zu beziehen. Was geht da ab? Also die Hälfte davon wäre ja schon Wucher…

 

Rise of the Tomb Raider, Shadow of the Tomb Raider und Tomb Raider GOTY gibt's kostenlos auf Epic Games bis zum 6. Januar.

 

Ein Kassierer weist einen Kunden auf die Maskenpflicht hin. Dann soll der eine Waffe geholt und den Mann erschossen haben. Für einen Verfassungsschützer kommt die Attacke nicht überraschend.

Idar-Oberstein - Nach einer tödlichen Attacke auf einen Tankstellen-Kassierer im Streit über das Tragen einer Corona-Maske gehen die Ermittlungen gegen den 49 Jahre alten Tatverdächtigen weiter.

Der Mann ist nach Angaben von Oberstaatsanwalt Kai Fuhrmann bislang polizeilich nicht in Erscheinung getreten. Er soll dem 20-jährigen Verkäufer in Idar-Oberstein (Rheinland-Pfalz) am Samstagabend in den Kopf geschossen haben, nachdem dieser ihn beim Bierkauf zwei Mal auf die Maskenpflicht hingewiesen habe.

 

What things do you use the most which made your life more bearable? Where did you get it?

view more: ‹ prev next ›