This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set +x | |
SOURCE_HOST=$1 | |
SOURCE_PORT=$2 | |
SOURCE_PW=$3 | |
SOURCE_DB=$4 | |
SOURCE_ARGS=$5 | |
TARGET_HOST=$6 | |
TARGET_PORT=$7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get ALL resources from namespace | |
function kc-all { | |
if [ -z ${1+x} ]; then echo "please define a namespace"; return; fi | |
CMD="kubectl api-resources --verbs=list --namespaced -o name | grep -v events | xargs -n 1 kubectl get --show-kind --ignore-not-found -n $1" | |
if [ "$2" = "w" ]; then | |
echo "Starting watch, please wait each refresh can take some time..." | |
watch "$CMD" | |
else | |
eval $CMD | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Used to capture images on RaspberryPI and store on FTP Server | |
# German Blogpost: https://blog.fritschen.net/computer/raspberry/timelapse-langzeit-mit-raspberry-pi-zero/ | |
# | |
# CONFIG - START | |
# | |
# FTP servers userdata | |
FTPSERVER="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# This script creates catchall configuration with postfix and "Univention Coporate Server" | |
# | |
# Quick example: | |
# 1. Download and Run ucs_create_catchall (on UCS Server as root !): | |
# wget -O - https://gist.githubusercontent.com/Mario-F/15e43f39a6363bc2c890e1c2775fbc1f/raw/ff9d92823d8aa599d039fc3596bc0b18984bd1ef/ucs_create_catchall.py | python | |
# 2. Read the instructions output on successfull run. | |
# | |
import sys, optparse, re, subprocess, os |