Skip to content

Instantly share code, notes, and snippets.

@christiansteier
christiansteier / nginx-http-shibboleth.md
Created December 17, 2023 17:06
compile nginx-http-shibboleth under debian bullseye

1. Update System Packages

Ensure your system packages are up to date:

sudo apt-get update
sudo apt-get upgrade

2. Install Necessary Dependencies

Install all required packages for building NGINX:

@christiansteier
christiansteier / docekr-stack.yml
Created December 2, 2018 20:00
Simple MariaDB Galera Cluster
# First start seed with "docker stack deploy -c docker-stack.yml mariadb".
# Then start the nodes: docker service scale mariadb_node=3.
# Finally, seed should be removed: docker service scale mariadb_seed=0.
version: '3.6'
services:
seed:
hostname: "{{.Service.Name}}"
#!/bin/bash
# Based on https://gist.github.com/jumanjiman/f9d3db977846c163df12
sysdirs="
/bin
/etc
/lib
/sbin
/usr
"
echo -e "[i] Remove crufty...\n /etc/shadow-\n /etc/passwd-\n /etc/group-"
#!/bin/sh
# Based on https://gist.github.com/jumanjiman/f9d3db977846c163df12
sysdirs="
/bin
/etc
/lib
/sbin
/usr
"
echo -e "[i] Remove crufty...\n /etc/shadow-\n /etc/passwd-\n /etc/group-"
@christiansteier
christiansteier / docker_traefik_portainer_letsencrypt.sh
Last active January 2, 2023 02:50
Simple bash script to install docker, traefik, portainer and ctop. Compatible with: Debian stretch
#!/bin/bash
SCRIPTNAME=$(basename $0 .sh)
EXIT_SUCCESS=0
EXIT_FAILURE=1
TZ=Europe/Berlin
NETWORKNAME=eth0
HOSTNAME=hostname
FQDN=domain.org
DOCKERCOMPOSE=1.21.2
@christiansteier
christiansteier / docker-compose.yml
Created May 16, 2018 05:59
docker-compose file for BigBlueButton
version: '2'
services:
bigbluebutton:
container_name: bigbluebutton
hostname: bigbluebutton
image: bigbluebutton/bigbluebutton
ports:
- 80:80/tcp

Keybase proof

I hereby claim:

  • I am christiansteier on github.
  • I am christiansteier (https://keybase.io/christiansteier) on keybase.
  • I have a public key whose fingerprint is 1AF8 9B8E 57F9 741C F3CE 0F74 EF9B 4837 89B3 8482

To claim this, I am signing this object:

@christiansteier
christiansteier / batch-rename.sh
Last active June 22, 2016 15:53
Small scripts to work with exiftool
#!/bin/bash
SKRIPT=`readlink -f "${BASH_SOURCE[0]}"`
DIR=`dirname "${SKRIPT}"`
WORKDIR="/tmp"
if ls *.mp4 >/dev/null 2>&1 ; then
for x in $(find . -name "*.mp4"); do
cp $x ${WORKDIR}
done;
@christiansteier
christiansteier / cubox-i_debian_install.sh
Last active June 22, 2016 12:14
Quick and dirty debian install script for CuBox-i
#! /bin/bash
# Overwrite your SD card with Debian Jessie
# Default login: debian / debian
WORKDIR=$(mktemp -d /tmp/cubox-i.XXXXXXXXXX)
cd $WORKDIR/
curl -LO https://github.com/SolidRun/ignition-imx6/archive/master.zip
unzip master
cd $WORKDIR/ignition-imx6-master/Debian
lsblk