Skip to content

Instantly share code, notes, and snippets.

#include <WiFi.h>
#include <HTTPSServer.hpp>
#include <SSLCert.hpp>
#include <HTTPRequest.hpp>
#include <HTTPResponse.hpp>
#define WIFI_SSID "<ssid>"
#define WIFI_PASSWORD "<password>"
#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 March 1, 2020 11:50
ESP32-based HTTP daemon sending temperature value to a server from an LM35 sensor every 1s
#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 15:00 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

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 \
&amp;&amp; echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" &gt; /usr/local/etc/php/conf.d/xdebug.ini \
@ryuzakyl
ryuzakyl / andrew-curves.py
Last active February 14, 2019 03:46
Andrew's Curves for high dimensional multi-variate data
#!/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 January 15, 2017 16:09
List connected IP addresses in local network
arp -a