Skip to content

Instantly share code, notes, and snippets.

View gist:e0f11411a0aa8e3035d6ed4057d1aa69
from http://www.md-software.de/math/DAMM_Quasigruppen.txt
Quasigruppen für den DAMM Algorithmus, mit den Eigenschaften
1. (c*x)*y=(c*y)*x => x=y
2. x*x=0
Wichtig: die Quasigruppen sind nur gedacht für die Kontrollgleichung
(...((0 * x_m) * x_{m-1}) * ...) * x_0 = 0
wobei
x_0 := (...((0 * x_m) * x_{m-1}) * ...) * x_1
@jun06t
jun06t / vault
Created Jul 31, 2018
logrotate definition for vault
View vault
/var/log/vault/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 644 vault vault
sharedscripts
postrotate
@jun06t
jun06t / vault.service
Created Jul 31, 2018
Vault server systemd
View vault.service
### BEGIN INIT INFO
# Provides: vault
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Vault server
# Description: Vault secret management tool
### END INIT INFO
@jun06t
jun06t / consul.service
Last active Jul 31, 2018
Consul agent systemd
View consul.service
### BEGIN INIT INFO
# Provides: consul
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Consul agent
# Description: Consul service discovery framework
### END INIT INFO
@jun06t
jun06t / vault-golang-login
Created Jul 13, 2018
Golang Vault Login Sample
View vault-golang-login
package main
import (
"encoding/json"
"fmt"
"net/http"
"time"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/builtin/credential/aws"
View envoy-sidecar
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 10000
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
View front-proxy-config
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 8000
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
View front-proxy-docker-compose
version: '2.4'
services:
gateway:
build:
context: .
dockerfile: Dockerfile-gateway
networks:
- front-proxy
expose:
@jun06t
jun06t / kibana
Last active Feb 3, 2016
kibana init.d script for ubuntu
View kibana
#!/bin/sh
#
# /etc/init.d/kibana -- startup script for kibana4
#
### BEGIN INIT INFO
# Provides: kibana
# Required-Start: $network $remote_fs $named
# Required-Stop: $network $remote_fs $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6