$ 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.
$ git config credential.helper store
# 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 |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/