Skip to content

Instantly share code, notes, and snippets.

dragon788 dragon788

  • Midwest, USA
View GitHub Profile
dragon788 /
Created Oct 20, 2018
Powerfile C200 Python from Google groups
from pywin.mfc import dialog, window, activex
import win32ui, win32uiole, win32con, win32file
import os, sys, win32api, glob, time, pywintypes
from win32com.client import gencache
import discinfo
# c200
c200_typelib = '{E9A61682-5978-11D3-B313-00C04F7654DB}'
c200_clsid = '{61A3F5A5-594F-11D3-B313-00C04F7654DB}'
dragon788 /
Last active Mar 29, 2019
Repair "ubuntu--vg-root" not found with LUKS and LVM encryption


Use this script via curl -L -O and sudo bash ./ You may need to edit the DEVICE variable to reflect your disk and partition layout (this was created on an EFI system using LUKS and LVM). It will prompt you for your disk password once to mount and discover the correct name for the encrypted volume mount and then prompt again to mount with the correct name so that the update-initramfs command succeeds with the appropriate mapping, if this wasn't done you would get a warning and your next boot would still fail.

dragon788 /
Created Feb 16, 2018 — forked from Forst/
Ubuntu ISO with preseed.cfg generation script
# Quit on first error
set -e
# Temporary directory for the build
dragon788 /
Created Dec 6, 2017
Securely wiping NVMe SSD drives using Linux (Ubuntu/Debian shown but others are supported)

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.
dragon788 /
Created Nov 13, 2017
Easily install the latest stable chefdk in one lines

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 | sudo bash -s -- -c stable -P chefdk

dragon788 / Dockerfile
Created Oct 21, 2017 — forked from mniehe/Dockerfile
Alpine dockerfile with build essentials
View Dockerfile
FROM node:7.8-alpine
LABEL maintainer "Mark Niehe<>"
# Install all build dependencies
# Add bash for debugging purposes
RUN apk update \
&& apk add --virtual build-dependencies \
build-base \
gcc \
wget \
dragon788 /
Created Oct 18, 2017 — forked from majkinetor/
GoPass #security #build


# requires chocolatey
# iwr -UseBasicParsing | iex
cinst golang git

$go_path = "c:\projects\go"
$env:GOPATH += ";$go_path"
go get -u
dragon788 /
Created Aug 26, 2017 — forked from freekrai/
Hacking an ASUS chromebox

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
dragon788 /
Created Aug 16, 2017
TIL 2016-08-16 DisplayLink Driver w/ patches for newer kernel
You can’t perform that action at this time.