Skip to content

Instantly share code, notes, and snippets.

View stolsma's full-sized avatar
🙂
Coding away...

Sander Tolsma stolsma

🙂
Coding away...
View GitHub Profile
@stolsma
stolsma / _ipxe_setup.md
Created November 4, 2024 21:42 — forked from clemenko/_ipxe_setup.md
iPXE Netboot.xyz with Docker

iPXE with Netboot.xyz

Leverage Docker and Netboot.xyz to host Harvester/Rocky/Liberty installers and kickstart. We have been developing an Harvester Workshop and needed a better way to boot dozens of machines. Netboot.xyz was a simple way to do it. We used https://hub.docker.com/r/linuxserver/netbootxyz to simplify the install.

Then we created a custom menu and loaded the assets. After updating the DHCP settings on the network to point to the machine we are able to boot anything.

Netboot Docker docs : https://netboot.xyz/docs/docker

@stolsma
stolsma / readme.md
Last active January 16, 2020 11:09 — forked from ubergesundheit/readme.md
systemd traefik.service

systemd Service Unit for Traefik

Adapted from the forked gist and this blog. Adjusted to our own implementation.

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.

Instructions

@stolsma
stolsma / 1-Install.md
Last active August 7, 2022 16:19
Centos repo files for installing KVM, docker, kubernetes, Helm and Tiller

Installing KVM, libvirt, Docker-CE and Kubernetes on Centos 7.x

First of all be root while doing this... sudo su

Set hostname

Set the hostname:

hostnamectl set-hostname 'k8s-master'

@stolsma
stolsma / consul.service
Created July 24, 2017 19:30 — forked from rossedman/consul.service
Consul Installation
#
# This needs to be installed here:
# /etc/systemd/system/consul.service
#
[Unit]
Description=consul
Requires=network-online.target
After=network-online.target
@stolsma
stolsma / pr.md
Last active September 14, 2015 09:44 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

Install first for ubuntu:

sudo apt-get install build-essential libssl-dev curl git-core

Compile the required Node.js version and put in global reach:

# install Node.js from Github (replace 4.0.0 with required version)
git clone https://github.com/nodejs/node.git node4.0.0

Install first for ubuntu:

sudo apt-get install build-essential libssl-dev curl git-core

Compile the required iojs version and put in global reach:

# install iojs from Github (replace 1.3.0 with required version)
git clone https://github.com/iojs/io.js.git iojs
@stolsma
stolsma / Debug.md
Last active August 29, 2015 14:00
Enable, disable and set debug port from running process

process._debugProcess(process.pid)

process._debugPause()

process._debugEnd()

process.debugPort : is getter and setter of debugport

See:

@stolsma
stolsma / node init script.md
Last active August 29, 2015 14:00
How to create a node init script with forever

Init Script

From: source

Init scripts hopefully need no explanation. Scripts reside in /etc/init.d with root ownership and executable permissions. e.g.:

sudo su
cp my-application-script /etc/init.d/my-application
#!/bin/bash
#
# chkconfig: - 55 45
# init.d example for Forever & Node
#
# modeled after
# https://gist.github.com/jinze/3748766
#
# supports vhost
#