Skip to content

Instantly share code, notes, and snippets.

View tboerger's full-sized avatar
:shipit:
Getting mad with crazy stuff

Thomas Boerger tboerger

:shipit:
Getting mad with crazy stuff
  • Cloudpunks GmbH
  • Nuremberg, Germany
  • 11:31 (UTC +01:00)
  • X @tboerger
View GitHub Profile
@sandcastle
sandcastle / redirect-ingress.yml
Created August 27, 2017 02:07
An example of a ingress redirect using kubernetes and nginx `configuration-snippet`
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: redirect-ingress
annotations:
ingress.kubernetes.io/configuration-snippet: |
if ($host ~ ^(.+)\.somedomain\.io$) {
return 301 https://$1.domain.io$request_uri;
}
spec:
@jirutka
jirutka / README.adoc
Last active May 6, 2023 17:38
Script for periodical synchronization of data (e.g. mirrors) using rsync

Files

  • /etc/periodic/15min/sync-mirror-alpine → /usr/local/bin/sync-mirror (symlink)

  • /etc/sync-mirror.d/alpine.conf

  • /usr/local/bin/sync-mirror

  • /var/www/mirrors/alpine

@bradrydzewski
bradrydzewski / build_latest.go
Last active April 14, 2016 22:32
Drone nightly build
package main
import (
"flag"
"log"
"strings"
"github.com/drone/drone-go/drone"
)
@mark-kubacki
mark-kubacki / create-all.sh
Last active September 21, 2023 07:50
a dummy Certificate Authority for development and testing
#!/bin/bash
#
# Copyright (c) 2015 W. Mark Kubacki <[email protected]>
# Licensed under the terms of the RPL 1.5 for all usages
# http://www.opensource.org/licenses/rpl1.5
#
set -e -o pipefail
CAsubj="/C=DE/ST=Niedersachsen/L=Hannover/O=Dummy CA/CN=Sign-It-All"