Skip to content

Instantly share code, notes, and snippets.

View ISPConfig_to_Mailu_migration.md
  • Ensure that mailu runs on mysql as DB for easier SQL migrations
  • Create temporary tables with the correct structure for mailu (remove where filter like domain_id=4 or email like "%@mydomain.com" to dump all domains)
CREATE TABLE mailu_domain
select
    cast(now() as date) as created_at,
    null as updated_at,
    'ispconfig_import' as comment,
    domain as name,
View gist:9d0cc9924a32fa564fa12926a218120f
Setting up pacman
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key 23A3588614ECF09B marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/EF87C38EA3C6A657AF54A36323A3588614ECF09B.rev'
View gist:403dca803d6d302146ff4d69c563f677
esphome:
name: badlichttest
platform: ESP8266
board: d1_mini
wifi:
ssid: "wiot"
password: "****"
domain: .wyraz.de
@micw
micw / esphome_get_camera_image.py
Created Feb 6, 2020
Getting camera images from esp32cam with esphome and python
View esphome_get_camera_image.py
#!/usr/bin/env python3
import aioesphomeapi
import asyncio
async def main():
loop = asyncio.get_running_loop()
cli = aioesphomeapi.APIClient(loop, "HOST-OR-IP", 6053, "API-PASSWORD-OR_EMPTY")
await cli.connect(login=True)
@micw
micw / w132.ino
Last active Oct 26, 2020
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 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