Skip to content

Instantly share code, notes, and snippets.

View hemalchevli's full-sized avatar

Hemal Chevli hemalchevli

View GitHub Profile
@hemalchevli
hemalchevli / BTC_ticker.ino
Created September 13, 2017 05:57
BTC ticker Wemos mini with oled shield
#include <ESP8266WiFi.h>
#include <ArduinoJson.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// SCL GPIO5
// SDA GPIO4
#define OLED_RESET 0 // GPIO0
Adafruit_SSD1306 display(OLED_RESET);
@hemalchevli
hemalchevli / bluepill.cfg
Last active July 24, 2023 11:57
OpenOCD config file for Bluepill STM32F103C8T6
#source [find interface/stlink-v2-1.cfg]
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
#reset_config srst_only
reset_config none separate
@hemalchevli
hemalchevli / P-brain-install-log.txt
Last active January 30, 2017 07:27
P-Brain install log
pi@homeassistant:~ $ curl -sL https://raw.githubusercontent.com/patrickjquinn/P-Brain.ai-RasPi/master/raspberrypi.sh | bash
Reading package lists... Done
Building dependency tree
Reading state information... Done
git is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Cloning into 'P-Brain.ai-RasPi'...
remote: Counting objects: 9916, done.
remote: Total 9916 (delta 0), reused 0 (delta 0), pack-reused 9916
Receiving objects: 100% (9916/9916), 25.93 MiB | 941.00 KiB/s, done.
#!/bin/sh
# Organize files by file extension
# Written in answer to http://unix.stackexchange.com/q/19110/250
# Configuration (feel free to add your types and change the path)
DOCUMENTS='
pdf
doc
'