Skip to content

Instantly share code, notes, and snippets.

View chaeplin's full-sized avatar

chaeplin chaeplin

View GitHub Profile
@chaeplin
chaeplin / ir_LGAC.cpp
Last active August 29, 2015 14:25
ir_LGAC.cpp
#include "IRremote.h"
#include "IRremoteInt.h"
//==============================================================================
// L GGGG AAA CCCC
// L G A A C
// L G GG AAAAA C
// L G G A A C
// LLLLL GGG A A CCCC
//==============================================================================
@chaeplin
chaeplin / lgac.MD
Last active September 23, 2023 07:00
LG AC

=== decoding for LG A/C ====

=== *** ===

@chaeplin
chaeplin / lgacir.ino
Last active September 8, 2015 16:04
lgacir.ino
https://github.com/z3t0/Arduino-IRremote/tree/master/examples/LGACSendDemo
@chaeplin
chaeplin / lgacir.py
Last active August 29, 2015 14:25
lgacir.py
# https://github.com/chaeplin/Arduino-IRremote/
# 02.test_i2c.py
import smbus
import time
bus = smbus.SMBus(1)
address = 0x07
def writeNumber(a, b ):
@chaeplin
chaeplin / rawcode_LG_AC.txt
Last active August 27, 2015 21:10
rawcode / LG_AC
Press the button on the remote now - once only
Raw: (59) 3180, -9928, 532, -1532, 528, -520, 532, -532, 508, -516, 532, -1580, 500, -548, 504, -516, 532, -540, 512, -1548, 532, -1572, 508, -532, 508, -512, 536, -540, 508, -532, 500, -540, 500, -528, 532, -516, 532, -520, 532, -524, 536, -540, 508, -520, 532, -1596, 504, -536, 504, -1572, 508, -532, 508, -532, 508, -540, 508, -1552, 528,
11 1000 1000 1100 0000 0000 0101 0001
Press the button on the remote now - once only
Press the button on the remote now - once only
Raw: (59) 3208, -9944, 536, -1528, 532, -536, 504, -536, 504, -544, 504, -1560, 532, -536, 504, -536, 504, -540, 508, -532, 508, -532, 508, -540, 500, -540, 500, -520, 532, -532, 508, -524, 536, -508, 532, -1572, 536, -1592, 508, -512, 536, -532, 508, -540, 500, -520, 532, -532, 508, -532, 508, -1572, 508, -1576, 504, -516, 532, -536, 504,
@chaeplin
chaeplin / esp8266_reset_01.log
Created September 20, 2015 17:44
esp8266 reset 01
Sep 21 02:07:54 esp8266-syslog Sending payload: {"NemoEmpty":34,"NemoEmptyStddev":0.92,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:07:54 esp8266-syslog Publish ok
Sep 21 02:08:05 esp8266-syslog Sending payload: {"NemoEmpty":35,"NemoEmptyStddev":0.70,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:08:05 esp8266-syslog Publish ok
Sep 21 02:08:15 esp8266-syslog Sending payload: {"NemoEmpty":35,"NemoEmptyStddev":1.00,"ScaleFreeHeap":41216,"ScaleRSSI":-54} length: 77
Sep 21 02:08:15 esp8266-syslog Publish ok
Sep 21 02:08:20 esp8266-syslog Exception (28):
Sep 21 02:08:20 esp8266-syslog epc1=0x401039ab epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000
Sep 21 02:08:20 esp8266-syslog ctx: cont
Sep 21 02:08:20 esp8266-syslog sp: 3ffea270 end: 3ffea5f0 offset: 01a0
@chaeplin
chaeplin / esp8266_reset_02.log
Created September 25, 2015 05:51
esp8266_reset_02.log
Sep 25 14:46:42 esp8266-syslog Sending payload: {"NemoEmpty":9,"NemoEmptyStddev":0.54,"FreeHeap":29208,"RSSI":-49,"millis":71546392} length: 84
Sep 25 14:46:42 esp8266-syslog Publish ok
Sep 25 14:46:53 esp8266-syslog Sending payload: {"NemoEmpty":8,"NemoEmptyStddev":0.90,"FreeHeap":29208,"RSSI":-48,"millis":71556955} length: 84
Sep 25 14:46:53 esp8266-syslog Publish ok
Sep 25 14:46:58 esp8266-syslog Exception (4):
Sep 25 14:46:58 esp8266-syslog epc1=0x400046e4 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000024 depc=0x00000000
Sep 25 14:46:58 esp8266-syslog ctx: cont
Sep 25 14:46:58 esp8266-syslog sp: 3ffea910 end: 3ffeac80 offset: 01a0
Sep 25 14:46:58 esp8266-syslog >>>stack>>>
Sep 25 14:46:58 esp8266-syslog 3ffeaab0: 00040000 00000001 53002200 7fffffff
@chaeplin
chaeplin / esp8266_reset_03.log
Created October 2, 2015 17:15
esp8266_reset_03.log
Oct 3 02:07:46 esp8266-02-syslog Sending payload: {"dustDensity":0.04,"FreeHeap":32560,"RSSI":-23,"millis":6202537} length: 66
Oct 3 02:07:46 esp8266-02-syslog : wr
Oct 3 02:07:46 esp8266-02-syslog : sent 89
Oct 3 02:07:46 esp8266-02-syslog : rch 54, 89
Oct 3 02:07:46 esp8266-02-syslog : ww
Oct 3 02:07:46 esp8266-02-syslog Publish ok
Oct 3 02:07:46 esp8266-02-syslog : c 1, 54, 143
Oct 3 02:07:46 esp8266-02-syslog home/check/checkhwmny => {"unihost":"2","unitot":"13"}
Oct 3 02:07:46 esp8266-02-syslog : c0 1, 89
Oct 3 02:07:46 esp8266-02-syslog esp8266/arduino/s03 => {"dustDensity":0.04,"FreeHeap":32560,"RSSI":-23,"millis":6202537}
@chaeplin
chaeplin / srcache.txt
Last active October 25, 2015 09:36
srcache.conf
# https://github.com/openresty/srcache-nginx-module
#
#srcache_store_max_size 5M;
#
map $cookie_ologin $skip_cookie {
default 0;
1 1;
}
#
#!/bin/sh
## you'll have to do a couple extra steps to get this running
## there are probably other ways to handle svncanboot, but this is from the linux forum
set -e
if
touch /etc/_testr_file
then