Skip to content

Instantly share code, notes, and snippets.

@floffel
floffel / mtjtemplate.sh
Created November 12, 2018 18:30
transform an "mtemplate.sh" created jail into a thin-jail-template
#!/bin/sh
##########################################################
# Make me a thin jail template #
# Written by Florian Minnecker on 03.11.2018 at 11:34 #
##########################################################
# This script takes a normal template an creates a
# thin-jail-template out of it.
#
# This script assumes that you have a directory structure
# like this - if not, you will need to provide cli args
@floffel
floffel / mtemplate.sh
Last active November 12, 2018 18:28
script for creating a template for jails
#!/bin/sh
##########################################################
# Make me a template #
# Written by Florian Minnecker on 24.10.2018 at 11:55 #
##########################################################
# This script will back-up your and my pool to another
# pool like a redundant mirror pool
#
# This script assumes that you have a directory structure
# like this - if not, you will need to provide cli args
@floffel
floffel / zfs_backup.sh
Last active October 20, 2018 21:01
zfs backup script backing up my freebsd zroot to a mirrored location...
#!/bin/sh
##########################################################
# BACKUP THE ZROOT SCRIPT #
# Written by Florian Minnecker on 20.10.2018 at 01:06 #
##########################################################
# This script will back-up your and my pool to another
# pool like a redundant mirror pool
#
# This script assumes that you have a directory structure
@floffel
floffel / lookupDomains.sh
Last active July 31, 2018 14:11
lookupDomains.sh
#!env bash
##### Dead simple lookup tool. Just change the length and the tld.
##### Not really fast, so it's maby not that usefull, when going to look up 17576+ domain names.. :)
##### thanks to whoiz.herokuapp.com.. :)
length=3
tld=".de"
chars=(a b c d e f g h i j k l m n o p q r s t u v w x y z)
mgl=$(echo "${#chars[@]} ^ ${length}" | bc)
@floffel
floffel / create.sh
Created June 16, 2018 16:20
[ArchLinux] nspawn contaier creation automisation
#!/usr/bin/bash
############################
# Script zum erstellen von #
# nspawn Containern #
# #
# <[email protected]> #
############################
# basic checks
s=$(pwd);
for i in *; do t=${i:0:-7};
mkdir ./$t && cd ./$t && git init && git pull ../$i;
cd $s;
done
@floffel
floffel / getProfileDummy.sh
Created June 10, 2015 13:20
get example profile picture - one liner
// This will save 128.jpg - a public profile picture out of http://uifaces.com - thanks!! :)
wget $(curl http://uifaces.com/api/v1/random | ./JSON.sh | grep '\[\"image_urls",\"epic"]' | awk '{ print $2}' | sed 's/\\\//\//g' | sed 's/\"//g')