Instantly share code, notes, and snippets.

#This small script fix some broken updates which come across using pi hole (version 4) and a raspberry pi 3 with raspbian stretch.
#Fix: Pi-hole Version N/A Web Interface Version N/A FTL Version N/A
#Fix: DNS service not running, FTL offline
pihole updatechecker
pihole updatechecker remote
pihole -up
View arduino_wikipedia-twitter-bot.ino
/* The arduino version (for i.e. ESP12/ESP8266) of the python wikipedia twitter bot:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
WiFiClient client;
from twython import Twython
import urllib2
import sys
# get the keys on
C_key = ""
C_secret = ""

Keybase proof

I hereby claim:

  • I am staubgeborener on github.
  • I am staubgeborener ( on keybase.
  • I have a public key whose fingerprint is F59A 4CE2 EAB0 7CF0 C481 0007 DE73 1D14 DB3F E150

To claim this, I am signing this object:

#This Script needs Python3. Original script from @funvill,
#edit (urllib and http/request support, also added gpu temperature) by @staubgeborener
#This edit allows to post raspberry pi stats on any php supported website. You could use this together with cron for example.
import os
import urllib.request, urllib.parse
# Return CPU temperature as a character string
def getCPUtemperature():
res = os.popen('vcgencmd measure_temp').readline()
View esp32_promiscuousmode.c
#include "freertos/FreeRTOS.h"
#include "nvs_flash.h"
#include "lwip/err.h"
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
uint16_t offset = 0;
View ESP32_GetRSSI.c
/* ESP32 Get RSSI of packets- Promiscuous Mode
(C) 2017, Staubgeborener */
#include "esp_wifi.h"
#include "esp_wifi_internal.h"
#include "lwip/err.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
View HexToBinary.cpp
/* HexToBinary Headerfile
Convert Hexdata into binary
(C) 2017, Staubgeborener */
#include "HexToBinary.h"
#include <stdio.h>
#include <string.h>
HexToBinary::HexToBinary() {
View soil_moisture_esp8266.c
/* Copyright 2017 by Eric Schröder / Staubgeborener
Another soil moisture meassurement system with the esp8266.
DeepSleep Mode between 8 p.m. and 6 p.m. to safe battery power.
Time will be grabbed from the server (in this case;
Attention: pay attention to summer-/wintertime (boolean).
Every important step will be printed out for debugging.
WiFi has to be set up in line 16-17
Thingspeak support: The soil moisture meassurement will be sent to you thingspeak