Skip to content

Instantly share code, notes, and snippets.

View Daemoen's full-sized avatar

Marc Mercer Daemoen

View GitHub Profile
@Daemoen
Daemoen / vbox-drv-resign.sh
Created December 7, 2016 21:43
Virtualbox Driver Signing Script
#!/usr/bin/env bash
for drv in vboxdrv vboxnetflt vboxnetadp vboxpci
do
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n $drv)
modprobe $drv
done
@Daemoen
Daemoen / Vagrantfile
Last active October 18, 2018 18:13
Vagrantfile template that is extremely flexible and includes dynamic definitions, ansible playbook usage, and dynamic ansible logging
required_plugins = %w(vagrant-s3auth vagrant-vbguest)
plugins_to_install = required_plugins.select { |plugin| not Vagrant.has_plugin? plugin }
if not plugins_to_install.empty?
puts "Installing plugins: #{plugins_to_install.join(' ')}"
if system "vagrant plugin install #{plugins_to_install.join(' ')}"
exec "vagrant #{ARGV.join(' ')}"
else
abort "Installation of one or more plugins has failed. Aborting."
end
@Daemoen
Daemoen / yubikey.gpg
Last active December 21, 2015 21:59
GPG PubKey
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFZ4aawBEACsq6wbRACSFrW8I38HaIhv07O7x+wLIpchgQ0fZ2t7vbfBvx0m
5pRizEF9NNTrekxy7MhD+yXPci55kw2VRCr+mT3fLhkw1NGwb0fXV2CQP9SKNzNh
HoRrWDdS0BjBxlNXGMSmcVL5iKG/2DGc3lnGucXpQ9u+CBY29Uhi5AhUhajKowDs
yUsD5Sqv5o1IV6SzdzCmrRYqU640IO6Vdg0m3C/JLVX8ymG+IimQUVujMGYo4CCh
sfjs0XuLuRhw0F7eWgBZvKqjQeS7A8UQveHQAkYg89+ICxhyOVjYHgX/fzaoASyD
2XONEPfIUjQO6e+552qOtSccu0eHSsNQZ2QC01dUMXcT8OcANuv/mb/rQ+biNS9e
jnBDjBu5FOK9HMW145g1ZHQbNgRBwtyuQXAYsI4jLTXbTxlpx6oOJET63r8KBihM

Keybase proof

I hereby claim:

  • I am daemoen on github.
  • I am daemoen (https://keybase.io/daemoen) on keybase.
  • I have a public key ASBF31JnKd55hO0qc6no_tBgDnyVj_JESnnyIcM6yaXSIgo

To claim this, I am signing this object: