Skip to content

Instantly share code, notes, and snippets.

View brahman81's full-sized avatar

Tom Llewellyn-Smith brahman81

View GitHub Profile
@brahman81
brahman81 / README.md
Last active December 27, 2017 19:37
SDF - Packages

SDF - packages

Package based installation

The latest documentation can be found: here

Keybase proof

I hereby claim:

  • I am brahman81 on github.
  • I am kranon (https://keybase.io/kranon) on keybase.
  • I have a public key ASDHZl7T6Xa0pNLlSB1kWTzBcF4uZqbNy86nhQZO5lhgHgo

To claim this, I am signing this object:

#!/bin/bash
# Inspired by https://github.com/oogali/ebs-automatic-nvme-mapping
# Thanks Oogali!
# Tested on Ubuntu 16.04
# To be used with the below udev rule (/etc/udev/rules.d/99-ebs-nvme.rules)
# SUBSYSTEM=="block", KERNEL=="nvme[0-9]*n[0-9]*", ATTRS{model}=="Amazon Elastic Block Store", PROGRAM+="/usr/local/sbin/nvme-mapping.sh /dev/%k" SYMLINK+="%c"
if [[ -x /usr/sbin/nvme ]] && [[ -b ${1} ]]; then
# capture 32 bytes at an offset of 3072 bytes from the raw-binary data
# not all block devices are extracted with /dev/ prefix