Skip to content

Instantly share code, notes, and snippets.

🔪
Yak shaving

Henk hbokh

🔪
Yak shaving
Block or report user

Report or block hbokh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hbokh
hbokh / LXC-Jessie-SaltStack.sh
Created Jul 16, 2019
Create a LXC template by using debootstrap.
View LXC-Jessie-SaltStack.sh
# Source: https://gist.github.com/frieder/9f86ad859b98431c0b67b6458b3577b7
#
# This snippet shows how to create a LXC template by using debootstrap.
# This is a response to https://bitbucket.org/flybyte/dab-templates which does the same
# but has the limitation that it will result in a system that uses sysvinit while
# with this approach the system will use systemd.
mkdir -p /srv/debian && cd /srv/debian
echo " ==> Start debootstrap ..."
View gist:8429fce86fd519fccc0f856c6f4ed3f1
# rtl_fm -f 169.65M -M fm -s 22050 -p 83 -g 40 -E dc -F 0 -l 15 -A fast | ~/bin/multimon-ng -a FLEX -t raw /dev/stdin
Found 1 device(s):
multimon-ng 1.1.7
(C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
(C) 2012-2019 by Elias Oenal
Available demodulators: POCSAG512 POCSAG1200 POCSAG2400 FLEX EAS UFSK1200 CLIPFSK FMSFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI1 ZVEI2 ZVEI3 DZVEI PZVEI EEA EIA CCIR MORSE_CW DUMPCSV X10 SCOPE
Enabled demodulators: FLEX
0: Realtek, RTL2838UHIDIR, SN: 00000001
@hbokh
hbokh / buildlog_20181104-084242.txt
Created Nov 4, 2018
Packer - build output with driver string `hvf` added to `post-processor/vagrant/libvirt.go#L42`
View buildlog_20181104-084242.txt
==> qemu: Gracefully halting virtual machine...
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 Executing shutdown command: echo '1ma63b0rk3d' | sudo -E -S poweroff
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [DEBUG] Opening new ssh session
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [DEBUG] starting remote command: echo '1ma63b0rk3d' | sudo -E -S poweroff
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 [ERROR] Remote command exited without exit status or exit signal.
2018/11/04 08:51:06 packer: 2018/11/04 08:51:06 Waiting max 5m0s for shutdown to complete
2018/11/04 08:51:08 packer: 2018/11/04 08:51:08 VM shut down.
==> qemu: Running post-processor: vagrant
==> qemu (vagrant): Creating Vagrant box for 'libvirt' provider
qemu (vagrant): Copying from artifact: build/2018-11-04-07-42-42/base-stretch
@hbokh
hbokh / settings.cfg
Last active Oct 21, 2018
Quake 3 Arena - configuration baseq3/settings.cfg
View settings.cfg
// Base
seta com_hunkmegs "512"
seta r_hdr "1"
seta r_allowSoftwareGL "0"
// Display
seta r_displayrefresh "0"
seta r_mode "-1"
seta r_customheight "1200"
seta r_customwidth "1920"
@hbokh
hbokh / nixos-pxe-install.md
Last active Jul 28, 2018
Install NixOS using PXE (not iPXE!)
View nixos-pxe-install.md

NiXOS install through PXE

Based on: https://lastlog.de/blog/posts/nixos_pxe_booting.html

Get NixOS minimal ISO-image:

wget https://d3g5gsiof5omrk.cloudfront.net/nixos/18.03/nixos-18.03.132847.aec217852f2/nixos-minimal-18.03.132847.aec217852f2-x86_64-linux.iso
@hbokh
hbokh / node-exporter-freebsd_rev2.json
Last active Oct 22, 2019
Experiment: Prometheus 2.1.0 and a FreeBSD node_exporter - Grafana dashboard ID 4260
View node-exporter-freebsd_rev2.json
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@hbokh
hbokh / Spindle_beer_no01_503.md
Last active Jul 26, 2017
Spindle beer #1 - "503"
View Spindle_beer_no01_503.md

Ingredients

Our amounts are based on the amount needed to make a batch of 2000 liters. The amounts can be adapted according to how much beer you plan on making.

Mash

57.1% / 200 kg Pilsen 2RS malt
42.9% special malt:  

  • 14.3% / 50 kg Cara Clair (caramel malt - adds to the body and smoothness)
  • 14.3% / 50 kg Oat malt
@hbokh
hbokh / cobbler-debian8.tf
Last active Mar 19, 2017
Terraform-file to add five systems within Cobbler.
View cobbler-debian8.tf
provider "cobbler" {
username = "${var.cobbler_username}"
password = "${var.cobbler_password}"
url = "${var.cobbler_url}"
}
####[ NOTE ]##########################################
# Dir /var/www is used by Cobbler on CentOS / Red Hat.
# Cobbler on Debian uses /srv/www instead.
######################################################
@hbokh
hbokh / SaltShaker_install_en.md
Last active Jul 13, 2019
Install SaltShaker on Ubuntu 16.04.1 LTS
View SaltShaker_install_en.md

This is a "best-effort" in translating the "install.txt" from SaltShaker into English.
I tried all steps myself on a recent Ubuntu-host and latest SaltStack-packages.


This installation note applies to SaltShaker v2.1.3.

SaltShaker on Ubuntu 16.04.1 LTS

NOTE All commands are to be run as user "root".

@hbokh
hbokh / vm_wordpress.sls
Last active May 25, 2018
SaltStack WordPress - getting_started
View vm_wordpress.sls
# -*- coding: utf-8 -*-
# vim: ft=yaml
wordpress-packages:
pkg.installed:
- pkgs:
- nginx
- nginx-common
- nginx-full
- mariadb-server
- mariadb-client
You can’t perform that action at this time.