Skip to content

Instantly share code, notes, and snippets.

micw

Block or report user

Report or block micw

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@micw
micw / w132.ino
Last active Oct 7, 2019
Ventus W132 decoder sketch
View w132.ino
/**
* Ein ESP8622 NodeMCU Develompent Board, welches Sensorwerte via MQTT verschickt
* http://frightanic.com/iot/comparison-of-esp8266-nodemcu-development-boards/
*
* Umbau eines W132 Windsensors von ELV
*
* - Abtrennen des 433 MHZ-Senders, welcher mit 3 Leitungen (Schwarz, Rot, Blau) an der Logik-Platine angeschlossen ist
* - Anschließen des ESP-8266
* - Schwarz -> GND
* - Rot -> 3.3V
@micw
micw / README.md
Last active Feb 28, 2019
How to build helm from source on docker
View README.md

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
View sketch.cpp
/**
* LED PWM mit HomeWizard Funkschalter
* D3 - input - 433 MHZ Transmitter
* D7 - output Mosfet (led)
*/
#include <smartio.h>
#include <smartio_homewizard.h>
Bus bus;
View traefik-acme-passthrough.toml
# This is an example how to pass acme challenges to a backend of a particular domain while
# all other acme challenges are solved by traefik
# Tested with traefik 1.7.7
# How it works:
# - an entry point listens at 81 which is used for traefik's acme. This port is not exposed
# - a default rule for /.well-known/acme-challenge/ is added for the http entry point. It has a priority of 1000
# and forwards acme requests to localhost:81 where traefik accepts acme challenges
# - for a particular domain, a rule with higher priority is added, so this domain's acme challenges are not sent to
# traefik
View 0001-Make-sort-order-work-for-custom-post-types.patch
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
View froxlor-run.sh
#!/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
View button_test.ino
/**
* 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 Nov 8, 2018
Minimal iptables for rancher 2 agent/kubernetes
View rules.v4
*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 Sep 22, 2018
Build aports with docker
View build_with_docker.sh
#!/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)
View gist:9de3c9de28e6649a01a7f2bd143ad826
/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)
You can’t perform that action at this time.