Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Sebastian kreativmonkey

🏠
Working from home
View GitHub Profile
View Hetzner-Install-Nixos
#! /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
View Processwire_Userimport.php
<?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 Aug 2, 2016
Update LXC-Container with automatical Snapshot
View LXC-Container-Updatescript.md

Usage:

./lxcupdate.sh container1 container2 container3

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