Skip to content

Instantly share code, notes, and snippets.

chaeplin chaeplin

  • Seoul, South Korea
Block or report user

Report or block chaeplin

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
View syslog.ino
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#define _IS_MY_HOME
// wifi
#ifdef _IS_MY_HOME
#include "/usr/local/src/ap_setting.h"
#else
#include "ap_setting.h"
#endif
@chaeplin
chaeplin / esp8266_fpm_mdem_sleep.ino
Created Jan 26, 2016
esp8266_fpm_mdem_sleep.ino
View esp8266_fpm_mdem_sleep.ino
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include "/usr/local/src/ap_setting.h"
extern "C" {
#include "user_interface.h"
}
#define FPM_SLEEP_MAX_TIME 0xFFFFFFF
View mqtt-tls.ino
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include "/usr/local/src/ap_setting.h"
#define DEBUG_PRINT 1
View lgacdecode.ino
#include <IRremoteESP8266.h>
//#include <IRremote.h>
int RECV_PIN = 14;
IRrecv irrecv(RECV_PIN);
void setup ( )
{
Serial.begin(115200);
irrecv.enableIRIn();
View bitcoin.py
# bitcoin.py
#
# I, the copyright holder of this work, hereby release it into the public
# domain. This applies worldwide.
#
# If this is not legally possible:
# I grant any entity the right to use this work for any purpose, without any
# conditions, unless such conditions are required by law.
from tools import *
View _01.temp_sensor_01.ino
// Code based on
// https://github.com/adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino
// https://gist.github.com/igrr/7f7e7973366fc01d6393
// https://github.com/iot-playground/Arduino/blob/master/ESP8266ArduinoIDE/DS18B20_temperature_sensor/DS18B20_temperature_sensor.ino
// esp8266 + dht22 + mqtt
#include "DHT.h"
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
View Nginx C10K Configuration
# /etc/init/nginx.conf - add this below the "respawn" line (line 7)
limit nofile 50000 50000
# /etc/sysctl.conf - add this to the bottom of the file
fs.file-max = 50000
net.core.somaxconn = 65536
net.ipv4.tcp_max_tw_buckets = 1440000
# /etc/security/limits.conf - add this to the bottom of the file
www-data soft nofile 50000
@chaeplin
chaeplin / findingnemo.py
Last active Jan 31, 2019
find darkcoin address of stratum pool
View findingnemo.py
#!/usr/bin/python
import subprocess
import os
import simplejson
import datetime
import sys
import math
import re
from time import time
@chaeplin
chaeplin / esp8266-twitter.ino
Last active Sep 16, 2018
esp8266-twitter.ino
View esp8266-twitter.ino
// check update : https://github.com/chaeplin/esp8266_and_arduino/tree/master/_56-gopro-control
// based on tweeting_silicon : http://harizanov.com/2015/06/tweeting-silicon/
// https://github.com/igrr/axtls-8266/blob/master/crypto/hmac.c
// http://hardwarefun.com/tutorials/url-encoding-in-arduino
// chaeplin
#include <TimeLib.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <ESP8266HTTPClient.h>
@chaeplin
chaeplin / Arduino_Record_Long_AirConditioner_Infrared_Signals_10.ino
Last active Jul 15, 2018
Arduino_Record_Long_AirConditioner_Infrared_Signals_10
View Arduino_Record_Long_AirConditioner_Infrared_Signals_10.ino
// http://www.analysir.com/blog/2014/03/19/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino/
// http://www.analysir.com/blog/wp-content/uploads/2014/03/Arduino_Record_Long_AirConditioner_Infrared_Signals_10.txt
// For LG AC
/*
Author: AnalysIR
Revision: 1.0
This code is provided to overcome an issue with Arduino IR libraries
It allows you to capture raw timings for signals longer than 255 marks &amp; spaces.
You can’t perform that action at this time.