Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block tzapu

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
tzapu / AutoConnectWithHTTPServer
Created Feb 8, 2016
WiFiManager auto connect and start a http web server
View AutoConnectWithHTTPServer
#include <ESP8266WiFi.h> //
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include "WiFiManager.h" //
std::unique_ptr<ESP8266WebServer> server;
void handleRoot() {
View AutoConnectWithBlynkFSConfig.ino
#include <FS.h> //this needs to be first, or it all crashes and burns...
#include <ESP8266WiFi.h> //
//needed for library
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h> //
#include <ArduinoJson.h> //
View TestWiFiBegin
#include <ESP8266WiFi.h>
//this sketch duplicated the flow that WiFIManager or any other connection manager would take
//first try to connect, if it fails spin up an AP, get some credentials from user, connect again
//then spin everything down
void setup() {
View DeepSleepDHT22-vv
*** Sample using esp-01, D16 is connected to RST
*** If DHT22 is powered by a gpio( VCC of DHT22 is connected to a gpio) and OUTPUT of DHT22 is connected to D2, boot will fail.
*** Power off ----> D2 is in LOW( == DHT22 is in LOW) ==> SDIO boot mode.
Temperature and humidity values are each read out the results of the last measurement.
For real-time data that need continuous read twice, we recommend repeatedly to read sensors,
and each read sensor interval is greater than 2 seconds to obtain accuratethe data.
tzapu / index.html
Created Dec 8, 2016
View index.html
<!DOCTYPE html>
<meta charset="UTF-8">
tzapu / docker-compose.yml
Last active Aug 18, 2019
docker compose file for local server, plex, transmission, sonarr, radarr, ombi, netdata, nextcloud
View docker-compose.yml
version: '2.1'
container_name: transmission
image: dperson/transmission
restart: unless-stopped
- plex
network_mode: host
tzapu / faucet.eth
Created Jul 12, 2017
rinkeby eth faucet test
View faucet.eth
View faucet.keth
tzapu / parity-responses.log
Created Dec 6, 2017
trace log of parity no longer returning filtered pending transactions
View parity-responses.log
This file has been truncated, but you can view the full file.
2017-12-06 05:34:58 UTC TRACE rpc Request: {"jsonrpc":"2.0","method":"eth_getFilterChanges","params":["0x0"],"id":3235237269844622367}.
tzapu / gist:f47924daae9d64b65fdfaf92b64f587c
Last active Jun 21, 2019
connecting to a kubernets hosted kafka cluster from macOS
View gist:f47924daae9d64b65fdfaf92b64f587c
# you will need to alias the internal kube IPs to your loopback interface
# get pods with IPs
kubectl get pods -n kafka -o wide
# add aliases
sudo ifconfig lo0 alias
sudo ifconfig lo0 alias
sudo ifconfig lo0 alias
You can’t perform that action at this time.