Skip to content

Instantly share code, notes, and snippets.

View ServerHTTPS.ino
#include <WiFi.h>
#include <HTTPSServer.hpp>
#include <SSLCert.hpp>
#include <HTTPRequest.hpp>
#include <HTTPResponse.hpp>
#define WIFI_SSID "<ssid>"
#define WIFI_PASSWORD "<password>"
View ServerHTTP.ino
#include "WiFi.h"
#include "ESPAsyncWebServer.h"
#define WIFI_SSID "<ssid>"
#define WIFI_PASSWORD "<password>"
// ---------------------------------------------------------------
// LM35 temperature sensor is connected to GPIO 33 (Analog ADC1_5)
const int lm35InputPin = 33;
@ryuzakyl
ryuzakyl / HTTPDaemon.ino
Created Mar 1, 2020
ESP32-based HTTP daemon sending temperature value to a server from an LM35 sensor every 1s
View HTTPDaemon.ino
#include <WiFi.h>
#include <HTTPClient.h>
#define WIFI_SSID "<ssid>"
#define WIFI_PASSWORD "<password>"
// ---------------------------------------------------------------
// LM35 temperature sensor is connected to GPIO 33 (Analog ADC1_5)
const int lm35InputPin = 33;
@ryuzakyl
ryuzakyl / README.md
Created May 21, 2018 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug
View README.md

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
    && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@ryuzakyl
ryuzakyl / andrew-curves.py
Last active Feb 14, 2019
Andrew's Curves for high dimensional multi-variate data
View andrew-curves.py
#!/usr/bin/env
# -*- coding: utf-8 -*-
from math import ceil, sqrt, pi
import pylab
import numpy as np
import pandas as pd
from sklearn import datasets
@ryuzakyl
ryuzakyl / list-connected-ips.sh
Created Jan 15, 2017
List connected IP addresses in local network
You can’t perform that action at this time.