Skip to content

Instantly share code, notes, and snippets.

@micw
micw / README.md
Last active February 28, 2019 11:02
How to build helm from source on docker

How to build helm from sources without installing golang and other stuff to your system?

  1. Checkout helm git clone https://github.com/helm/helm.git

  2. Build golang binaries it on docker

cd helm
docker run -it -v $(pwd):/go/src/k8s.io/helm golang
apt-get update
/**
* LED PWM mit HomeWizard Funkschalter
* D3 - input - 433 MHZ Transmitter
* D7 - output Mosfet (led)
*/
#include <smartio.h>
#include <smartio_homewizard.h>
Bus bus;
From ac676e08cd4b3df4ad723fc2acef250b49871659 Mon Sep 17 00:00:00 2001
From: Michael Wyraz <michael@wyraz.de>
Date: Thu, 6 Dec 2018 21:50:38 +0100
Subject: [PATCH] Make sort order work for custom post types
---
wp-sitemap-page.php | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/wp-sitemap-page.php b/wp-sitemap-page.php
#!/bin/bash
set -e
mkdir -p /run/apache2
rm -f /run/apache2/httpd.pid
echo "Waiting for database"
DB_READY=0
for i in {1..60}; do
/**
* D0 - output ok
* D5 - output ok
* D6 - output ok
* D7 - output ok
*
* D3 - output ok
* D4 - output ok, internal LED is inverse
*
* D3 - pullup input ok, bootet nicht wenn LOW
@micw
micw / rules.v4
Last active November 8, 2018 13:47
Minimal iptables for rancher 2 agent/kubernetes
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
# Masquerading all outgoing routet traffic
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
@micw
micw / build_with_docker.sh
Created September 22, 2018 07:02
Build aports with docker
#!/bin/sh
if [ "$#" -ne 2 ]; then
echo "USAGE: $0 ARCH REPO/PACKAGE"
echo "EXAMPLE $0 armhf main/busybox"
exit 1
fi
BASE=$( cd $( dirname $0 ); pwd)
/exports 127.0.0.1(fsid=0,async,ro)
/exports/vol1 *(async,no_subtree_check,no_auth_nlm,insecure,no_root_squash)
/exports/vol2 *(async,no_subtree_check,no_auth_nlm,insecure,no_root_squash)
@micw
micw / README.md
Created May 24, 2018 11:21
Use letsencrypt cert generated by froxlor in postfix and dovecot
  • requires ansible to be installed
  • run periodically with:
ansible-playbook -i hosts.ini playbook.yml
@micw
micw / nginx_auth1.conf
Last active April 27, 2018 09:49
Nginx auth with login-form passthrough
# This variant uses the same endpoint for the check and the login form
server {
listen 80;
server_name localhost;
location = /internal-nginx-auth-endpoint {
internal;
proxy_pass http://172.17.0.1:8080/;
}