Instantly share code, notes, and snippets.

View dhcpd.conf
ddns-update-style none;
deny bootp; #default
authoritative;
include "/etc/dhcp/ipxe-option-space.conf";
# GREEN (private network)
subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.100 10.1.1.199;
option subnet-mask 255.255.255.0;
View _INSTALL.md

Add the following chunk to your existing ISC dhcpd.conf file.

if exists user-class and ( option user-class = "iPXE" ) {
    filename "http://boot.smidsrod.lan/boot.ipxe";
}
else {
    filename "undionly.kpxe";
}

(or see https://gist.github.com/4008017 for a more elaborate setup

View etcd.sh
etcdctl --endpoints https://master-0:2379 --ca-file /etc/kubernetes/secrets/etcd-client-ca.crt --cert-file /etc/kubernetes/secrets/etcd-client.crt --key-file /etc/kubernetes/secrets/etcd-client.key cluster-health
ETCDCTL_API=3 etcdctl --endpoints https://master-0:2379 --cacert /etc/kubernetes/secrets/etcd-client-ca.crt --cert /etc/kubernetes/secrets/etcd-client.crt --key /etc/kubernetes/secrets/etcd-client.key endpoint health
ETCDCTL_API=3 etcdctl --endpoints https://master-0:2379 --cacert /etc/kubernetes/secrets/etcd-client-ca.crt --cert /etc/kubernetes/secrets/etcd-client.crt --key /etc/kubernetes/secrets/etcd-client.key get --keys-only --prefix /registry
View libvirt_kvm.rst

Using Libvirt and KVM

Installation

Install required packages
apt-get install qemu-kvm libvirt-bin bridge-utils virtinst
View setup_git_diff_like_a_pro.md
View netstat.sh
lsof -iTCP -sTCP:LISTEN -iUDP -n -P
lsof -iTCP -sTCP:LISTEN -n -P
View vscode_extensions.sh
ssh 192.168.96.93 -c "code --list-extensions | xargs -L 1 echo code-insider --install-extension"
View apfs_volume.sh
diskutil apfs addVolume disk1 APFS Steam
ln -s /Volumes/Steam ~/Library/Application\ Support/Steam
View get_server_cert.sh
#!/bin/bash
export SERVER=${SERVER:-localhost}
echo | openssl s_client -showcerts -servername $SERVER -connect $SERVER:443 2>/dev/null | openssl x509 -inform pem -noout -text
View ML_DEMO.md

OVERVIEW

Openstack

Nova:

  • PCI PASSTHROUGH
  • FLAVOR

Device: