Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Carlos Duarte Do Nascimento (Chester) chesterbr

Block or report user

Report or block chesterbr

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
@chesterbr
chesterbr / washing_machine_alarm.ino
Created Dec 23, 2017
Washing Machine Alarm with Arduino and ADXL-345 acceleration sensor
View washing_machine_alarm.ino
// washing_machine_alarm.ino
//
// Copyright by Carlos Duarte Do Nascimento, 2017
// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
// More info: https://chester.me/archives/2017/12/motion-sensing-arduino-based-washing-machine-alarm/
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_ADXL345_U.h>
#include <LowPower.h>
@chesterbr
chesterbr / Insignia_RMC-SB314.lircd.conf
Created Dec 12, 2017
Insignia RMB-SB314 remote control codes for LIRC (for Insignia NS-SB314 Sound Bar System)
View Insignia_RMC-SB314.lircd.conf
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <lirc@bartelmus.de>
#
# This config file was automatically generated
# using lirc-0.9.4c(default) on Thu Dec 7 01:07:17 2017
# Command line used: --disable-namespace -f -d /dev/lirc0 /home/chester/lircd.conf
# Kernel version (uname -r): 4.9.59+
#
@chesterbr
chesterbr / Sharp_LCDTV-845-039-40B0.lircd.conf
Created Dec 12, 2017
Sharp LCDTV 845-039-40B0 TV Remote Control codes for LIRC (for Sharp LC-40LE431U TV)
View Sharp_LCDTV-845-039-40B0.lircd.conf
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <lirc@bartelmus.de>
#
# This config file was automatically generated
# using lirc-0.9.4c(default) on Thu Dec 7 01:17:39 2017
# Command line used: --disable-namespace -d /dev/lirc0 /home/chester/lircd.conf
# Kernel version (uname -r): 4.9.59+
#
@chesterbr
chesterbr / 6507_clock_and_monitor.c
Last active Sep 9, 2017
10Hz clock pulse generator / 13-bit monitor (for 6507 CPU)
View 6507_clock_and_monitor.c
// Turns an Arduino into a 10Hz clock generator and a monitor for a 13-bit address bus
//
// Based on David Barton's clock generator/monitor in http://www.plingboot.com/2015/10/homebrew-6502-part-2/
// (MIT License; full license information on footer)
// Pulse pin 13
#define CLOCK 13
// Read pins 0-12 as a 13 bit value from 6507's address bus
#define ADDRA 0
#define ADDRB 1
@chesterbr
chesterbr / brasileiros_toronto.md
Last active Oct 25, 2018
Sugestões para Brasileiros visitando Toronto
View brasileiros_toronto.md

Sempre que alguém visita Toronto (em particular vindo do Brasil) a gente fica em dúvida sobre onde levar/recomendar.

O @djlebersilvestre compartilhou comigo uma lista de sugestões. Eu fiz alguns adendos e publiquei aqui. Sugestões são bem-vindas!

Locais / passeios

  • CN Tower (A visita vale a pena. O restaurante é um pouco caro - pelo preço tem opções melhores, mas é giratório)
  • Ripley's Aquarium
  • Real Sports Bar
  • Distillery District (falam que o restaurante Clooney é muito bom)
@chesterbr
chesterbr / original-WNDR3700v3.txt
Created Mar 19, 2017
Boot messages from the original firmware on my Netgear WNDR3700v3 router
View original-WNDR3700v3.txt
Decompressing..........done
Decompressing..........done
CFE for WNDR3700v3 version: v1.0.6
Build Date: Wed May 18 17:25:10 CST 2011
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
@chesterbr
chesterbr / tomato-WNDR3700v3.txt
Last active Mar 19, 2017
Boot messages from Tomato firmware on my (bricked?) Netgear WNDR3700v3 router
View tomato-WNDR3700v3.txt
Decompressing..........done
Decompressing..........done
CFE for WNDR3700v3 version: v1.0.6
Build Date: Wed May 18 17:25:10 CST 2011
Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 128 64KB blocks; total size 8MB
@chesterbr
chesterbr / ezbasic.rb
Created Sep 12, 2016
[WIP] running ezbasic with Ruby2600's 6507 CPU emulator
View ezbasic.rb
#!/usr/bin/env ruby
require 'ruby2600'
rom_file = "/Users/chester/Downloads/ehbasic.bin"
rom_addr = 0xC000
# Initialize a CPU with 64K of memory
cpu = Ruby2600::CPU.new
memory = Array.new(64*1024) { 0 }
cpu.memory = memory
View gist:756abf7388a29530a365
A knows the month
B knows the day
The candidates are:
may 15 16 19
june 17 18
july 14 16
august 14 15 17
View gist:fe931554c7dc35195128
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAmB0lJnHS43/9rBCdT3gBNtq7h7cw9ie26b7CNK9C7qiyo9z2gwGPnYRD+/cPZ72eHX9e8fWxDJ6CS0QxXIga0WUwJLDlDYGEZDXU6pc0KPEilZ8SIXUhD2FVwZilB62fw9eEOY3vGLtP/NckKcqIuWXauX48aVyf8Dkyriwl18wYAUYqf1dFfILplLx+GJXCsc5DRsNkSLj7jNMBD2Z64TtHw3uqV84XV58+vNc5UPTzHlateMOmcZTNg4AmM/DyBMTcj3PhoVebjBcEtGtWYgId4Q1vy6sq3QOwoOMKq95TAszRUqckqQ99R2dGEfWy2rXjW6zYCNZa8aoKk+IPow== cd@pobox.com
You can’t perform that action at this time.