Skip to content

Instantly share code, notes, and snippets.

View diegodorado's full-sized avatar

Diego Dorado diegodorado

View GitHub Profile
@diegodorado
diegodorado / build-nodemcu.sh
Last active March 1, 2019 01:39
Building and Flashing NodeMCU firmware
# Building the firmware
# https://nodemcu.readthedocs.io/en/master/en/build/
#
# I used the Docker Image method
# https://hub.docker.com/r/marcelstoer/nodemcu-build/
# 1) download the firmware
git clone --recurse-submodules https://github.com/nodemcu/nodemcu-firmware.git
# 2) Configure modules and features
rename -n 's/\.JPG$/\.jpg/' *
# -n for testing... doesnt actually rename
rename -v 's/\.JPG$/\.jpg/' *
# -v, to be verbose, so you see what and how it is renamed
#one liner rename ordered files
ls | cat -n | while read n f; do mv "$f" `printf "%02d.wav" $n`; done