Skip to content

Instantly share code, notes, and snippets.

@brazen-paradox
brazen-paradox / Makefile
Created April 30, 2020 05:05
basic Makefile for esp8266 RTOS
PROJECT_NAME := rom_data_storage
include $(IDF_PATH)/make/project.mk
{
"name":"Living Room",
"is_master":1,
"devices":[
{
"pin":1,
"value":0,
"name":"Living Room Light"
},
{
@brazen-paradox
brazen-paradox / download_iphone_visual_media_files.sh
Last active August 4, 2020 14:10
Script to download the visual media files from iphone that are hosted via Wifi photos application
#!/bin/bash
start_index=$1
end_index=$2
if [ -z $start_index ] || [ -z $end_index ] ; then
echo "Kindly provide starting and ending index"
exit 1
fi
@brazen-paradox
brazen-paradox / read_serial.py
Last active September 1, 2020 03:01 — forked from projectweekend/read_serial.py
Reading from a serial port in Python
import serial
from argparse import ArgumentParser
parser = ArgumentParser(description="UART reader for python enabled devices")
# positional arguments
parser.add_argument("device_location", help='device location through which serial data is communicated. Eg. dev/ttyACM0')
parser.add_argument("baud_rate", help='Baud rate in which serial data is communicated. Eg. 9600')
args = parser.parse_args()