View secure-wipe-nvme.md

In order to securely wipe an NVME drive you can use the nvme-cli package that provides the nvme command nvme only exists in the root path so you have to use sudo nvme.

For Debian you need to add jessie-backports (on jessie) and it may be in the newer version default repos. For Ubuntu it should be available in the default repos from Xenial onwards, there may be a PPA if you need it on earlier versions.

You can find your devices with sudo nvme list and securely format with sudo nvme /dev/nvme0n1 --ses=1. You can also explicitly add a namespace but I haven't seen or setup a drive with multiple yet.

View HumanOps-mantra.rst
  1. Humans build and fix systems.
  2. Humans get tired and stressed, they feel happy and sad.
  3. Systems don't have feelings yet. They only have SLAs.
  4. Humans need to switch off and on again.
  5. The wellbeing of human operators impacts the reliability of systems.
  6. Alert Fatigue == Human Fatigue
  7. Automate as much as possible, escalate to a human as a last resort.
  8. Document everything. Train everyone. Save time.
  9. Kill the shame game.
  10. Human issues are system issues.
View chefdk-install.md

Why isn't this on their site instead of links to downloads?????

Omit the -c stable or change it to -c current if you want the latest

curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -c stable -P chefdk

View Dockerfile
FROM node:7.8-alpine
LABEL maintainer "Mark Niehe<mark@niehe.ca>"
# Install all build dependencies
# Add bash for debugging purposes
RUN apk update \
&& apk add --virtual build-dependencies \
build-base \
gcc \
wget \
View gopass.md

Build

# requires chocolatey
# iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
cinst golang git

$go_path = "c:\projects\go"
$env:GOPATH += ";$go_path"
go get -u github.com/justwatchcom/gopass
View chromebox.md

ASUS makes a pretty handy Chromebox, and it's handy not just because it's running ChromeOS, it's handy because of everything you can do to the box itself.

The ASUS Chromebox is easily upgradeable, and capable of running just about any linux distribution.

The model I picked up, the M004U has the following specs:

  • Celeron 2955U (1.4GHz) 64 bit Dual core processor with 2MB L3 Cache
  • 2GB DDR3 1600 RAM with 2 slots
  • 16GB SSD HDD
  • 802.11 b/g/n dual-band wireless, Bluetooth 4.0, and gigabit ethernet
View displaylink-driver-tricks.md
View unmount.seed
# Found from slides at http://www.lug-erding.de/vortrag/LUG_Ubuntu_Install_20170125.pdf
d-i partman/early_command string \
USBDEV=$(list-devices usb-partition | sed "s/\(.*\)./\1/");\
BOOTDEV=$(list-devices disk | grep -v "$USBDEV" | head -1);\
debconf-set partman-auto/disk $BOOTDEV;\
debconf-set grub-installer/bootdev $BOOTDEV; \
umount /media;
View README.md

Description

Based on info from http://peterdowns.com/posts/open-iterm-finder-service.html but with modified behavior and fixed to work with iTerm2 version 3 or later. It will not work with older versions of iTerm. The modified behavior is to open a new terminal window for each invocation instead of reusing an already open window. Update - The original author released a build script for the newer iTerm2 versions at https://github.com/peterldowns/iterm2-finder-tools that keeps the original behavior of reusing an open iTerm2 window.

To open iTerm2 at selected folder with keyboard shortcut

  1. Run Automator, select a new Service
  2. Select Utilities -> Double click ‘Run AppleScript’
  3. Service receives selected 'folders' in 'finder.app'
  4. Paste script:
View get-i3-prop.sh
#!/bin/sh
# i3-get-window-criteria - Get criteria for use with i3 config commands
# To use, run this script, then click on a window.
# Output is in the format: [<name>=<value> <name>=<value> ...]
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion,
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`,
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807