Skip to content

Instantly share code, notes, and snippets.

View fabaff's full-sized avatar

Fabian Affolter fabaff

View GitHub Profile
#!/bin/sh
#----
# bootstrap fedora21
#release=$(cat /etc/fedora-release | awk '/^Fedora/ {print $3}')
#arch=$(arch)
release=21
arch=x86_64
ROOTFS=/var/lib/libvirt/lxc/fedora$release-$arch
@fabaff
fabaff / gist:5489197
Created April 30, 2013 14:46
systemd service unit for node.js http-server
[Unit]
Description=A simple node.js Web server
After=network.target
[Service]
Type=simple
User=nobody
Group=nobody
Restart=always
ExecStart=/usr/bin/http-server /var/www/nodejs -p 8888 -s
@fabaff
fabaff / gist:5489183
Created April 30, 2013 14:44
systemd service unit for pywebserve
[Unit]
Description=A simple python Web server
After=network.target
[Service]
Type=simple
User=root
ExecStart=/usr/bin/python /var/www/pywebserve/pywebserve.py
[Install]
@fabaff
fabaff / pxe-install
Created April 13, 2013 08:33
This simple script helps to setup a basic PXE Server in an existing environment on a Fedora-based system. It's a summary of this blog post [1]. Requirements: - root access - Fedora 18 (firewalld) - Access to the DHCP server configuration [1] http://fabian-affolter.ch/blog/index.php/installationsserver
# This simple script helps to setup a basic PXE Server in an existing
# environment on a Fedora-based system.
#
# Licensed under GPLv2
#
# Copyright (c) 2013 Fabian Affolter <fabian at affolter-engineering.ch>
TFTP_PATH=/var/lib/tftpboot
yum -y install tftp-server syslinux