Skip to content

Instantly share code, notes, and snippets.

chaeplin chaeplin

  • 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
chaeplin / esp8266_rtc_mem_test.ino
Last active Mar 17, 2017
View esp8266_rtc_mem_test.ino
During deep sleep, only RTC still working, so maybe we need to save some user data in RTC memory.
Only user data area can be used by user.
|<--------system data--------->|<-----------------user data--------------->|
| 256 bytes | 512 bytes |
RTC memory is 4 bytes aligned for read and write operations. Parameter des_addr means block number(4 bytes per block).
chaeplin /
Created Mar 1, 2017 — forked from guillaumevincent/
A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.

Guide to install PyQt5 on Mac OS X with python 3.4 virtualenv


A simple guide to install PyQt5 on Mac OS X 10.9 (Maverick) and use python 3.4 on a virtualenv.


  • xcode 5.1.1
  • python 3.4.0
  • Qt libraries 5.2.1
#!/usr/bin/env python
import os
import sys
import math
import random
NSECONDS = 5*3600
NNODES = 4000
chaeplin /
Created Feb 7, 2017 — forked from KartikTalwar/
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
chaeplin / nginx.conf
Created Jan 10, 2017 — forked from jrom/nginx.conf
nginx hack for multiple conditions
View nginx.conf
if ($request_uri = /) {
set $test A;
if ($host ~* {
set $test "${test}B";
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
chaeplin /
Last active Nov 25, 2016

Keybase proof

I hereby claim:

  • I am chaeplin on github.
  • I am chaeplin ( on keybase.
  • I have a public key whose fingerprint is 0C27 188A E29B E816 DC06 8714 193C 7345 272C 3075

To claim this, I am signing this object:

chaeplin / nginx.conf
Created Aug 20, 2016 — forked from oroce/nginx.conf
nginx config for using grafana, elasticsearch and graphite with authentication.
View nginx.conf
user www-data;
worker_processes 1;
pid /var/run/;
events {
worker_connections 1024;
http {
sendfile on;
#!/usr/bin/env python2
# encoding: utf-8
import sys
import time
import httplib
import json
import re
url = ""
chaeplin / ESP.getVcc.ino
Last active Jun 13, 2016
View ESP.getVcc.ino
extern "C" {
#include "user_interface.h"
int vdd;
void setup() {
View for_kozoke.ino
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <PubSubClient.h>
#include <Average.h>
#include <pgmspace.h>
#include <Wire.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
//#include "/usr/local/src/ap_setting.h" // comment out this line
You can’t perform that action at this time.