Skip to content

Instantly share code, notes, and snippets.

View ankitsejwal's full-sized avatar
:atom:

ankit sejwal ankitsejwal

:atom:
View GitHub Profile
# make sure hardware is connected
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 --after no_reset read_mac
# erase the flash:
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 --after no_reset erase_flash
# flash new firmware
$ esptool.py --port /dev/cu.SLAB_USBtoUART --baud 115200 write_flash --flash_mode dio --flash_freq 80m --flash_size detect 0x1000 esp32-20180127-v1.9.3-240-ga275cb0f.bin
# confirm success
$ screen /dev/cu.SLAB_USBtoUART 115200
# https://appelsiini.net/2018/m5stack-esp32-firmware-cli/
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@ankitsejwal
ankitsejwal / save-github-credentials.md
Last active October 22, 2024 17:58
How to save username and password in git

Save credentials:

$ git config credential.helper store
$ git pull

#provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions.

if you want to change password later:

$ git config credential.helper store 
@ankitsejwal
ankitsejwal / README.md
Created December 2, 2017 11:14 — forked from hofmannsven/README.md
My simply Git Cheatsheet