Skip to content

Instantly share code, notes, and snippets.

View kreativmonkey's full-sized avatar
🏠
Working from home

Sebastian kreativmonkey

🏠
Working from home
View GitHub Profile
#! /usr/bin/env bash
# Script to install NixOS from the Hetzner Cloud NixOS bootable ISO image.
# (tested with Hetzner's `NixOS 20.03 (amd64/minimal)` ISO image).
#
# This script wipes the disk of the server!
#
# Instructions:
#
# 1. Mount the above mentioned ISO image from the Hetzner Cloud GUI
@kreativmonkey
kreativmonkey / Processwire_Userimport.php
Last active April 8, 2017 09:50
Processwire Userimport
<?php
/*********************************************
* Import Users by JSON file
*
*********************************************/
function import($file){
$string = file_get_contents($file); // Read JSON file
$users = json_decode($string, true); // Decode JSON to $users array
// Iterate to each user
@kreativmonkey
kreativmonkey / LXC-Container-Updatescript.md
Last active August 2, 2016 20:20
Update LXC-Container with automatical Snapshot

Usage:

./lxcupdate.sh container1 container2 container3

#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()