Skip to content

Instantly share code, notes, and snippets.

View arnegroskurth's full-sized avatar

Arne Groskurth arnegroskurth

  • Frankfurt, Germany
View GitHub Profile
@arnegroskurth
arnegroskurth / luks_crypt.md
Created April 22, 2020 17:09
create a simple LUKS partition on a single physical volume

LUKS crypt

In this guide, I'm going to setup a keyfile-encrypted LUKS partition. I will be using a single, max-size partition on a single physical device. My physical device is located at /dev/sde

partition the physical device

parted /dev/sde
INFO global: Vagrant version: 2.1.2
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.1.2/gems/vagrant-2.1.2/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
INFO global: Plugins:
INFO global: Vagrant version: 2.1.2
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagran8qCR4B/usr/bin/../"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/tmp/.mount_vagran8qCR4B/usr/bin/../.."
INFO global: VAGRANT_BIN_DIR="/tmp/.mount_vagran8qCR4B/usr/bin"
INFO global: VAGRANT_APPIMAGE="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
@arnegroskurth
arnegroskurth / SetDerivedPropertyEventSubscriber.php
Created January 16, 2018 16:45
MuZ - Derived Property example
<?php
namespace Muz\Beesite\Backend\DataStorage\EventListener;
use Doctrine\Common\EventSubscriber;
use Doctrine\ORM\Event\OnFlushEventArgs;
use Doctrine\ORM\Events;
/**
* @see http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#implementing-event-listeners