This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin | |
export IDF_PATH=~/esp/esp-idf | |
sudo chmod 777 /dev/ttyUSB0 | |
cd ~/esp/hello_world | |
make flash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign in to Blogger. | |
Choose the blog to update. | |
In the left menu, click Theme. | |
Under “Live on blog," click Customize. | |
In the left menu, click Advancedand thenAdd CSS. | |
Add your code. | |
On the top right, click Apply to blog. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Espressif ESP32 promiscuous mode and packet injection experiments | |
// by brainstorm at nopcode org | |
#include "freertos/FreeRTOS.h" | |
#include "esp_wifi.h" | |
#include "esp_wifi_internal.h" | |
#include "lwip/err.h" | |
#include "esp_system.h" | |
#include "esp_event.h" | |
#include "esp_event_loop.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: set the FileStamp variable to the current date: YYMMDD_HHMMSS | |
:: the simplest method, to use existing TIME ad DATE variables: | |
:: date = Thu 09/17/2015 | |
:: time = 11:13:15.47 | |
:: 012345678901234567890 | |
:: | |
:: There is no leading zero for single digit hours (e.g. 9:00am), so we need to manually include the zero | |
:: here | | |
if "%TIME:~0,1%" == " " set FileStamp=%DATE:~12,2%%DATE:~4,2%%DATE:~7,2%_0%TIME:~1,1%%TIME:~3,2%%TIME:~6,2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Arduino IDE 1.8.5 | |
:: see https://learn.sparkfun.com/tutorials/esp32-thing-hookup-guide#installing-the-esp32-arduino-core | |
:: run as administrator | |
cd "C:\Program Files (x86)\Arduino\hardware" | |
mkdir espressif | |
cd espressif | |
git clone https://github.com/espressif/arduino-esp32.git esp32 | |
:: run get.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; see https://superuser.com/questions/1201988/how-do-i-change-open-with-powershell-to-open-with-command-prompt-when-shift | |
; Command Prompt | |
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] | |
"MUIVerb"="Command Prompts" | |
"Icon"="cmd.exe" | |
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# don't just copy & paste, there's a prompt for the first sudo command | |
sudo apt-get update | |
sudo apt-get install build-essential clang bison flex libreadline-dev \ | |
gawk tcl-dev libffi-dev git mercurial graphviz \ | |
xdot pkg-config python python3 libftdi-dev | |
# create workspace | |
mkdir -p ~/workspace | |
cd ~/workspace/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch FILE_TO_DELETE.TXT' --prune-empty --tag-name-filter cat -- --all | |
# see https://stackoverflow.com/questions/2004024/how-to-permanently-delete-a-file-stored-in-git | |
# | |
# "This command will run the entire history of every branch and tag, changing any commit that involved the file, | |
# and any commits afterwards. Commits that are empty afterwards (because they only changed the Rakefile) are removed entirely." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iwlist wlan0 | |
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf | |
add: | |
network={ | |
ssid="testing" | |
psk="testingPassword" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In-place upghrade from wheezy to jessie | |
# https://raspberrypi.stackexchange.com/questions/27858/upgrade-to-raspbian-jessie | |
# https://raspberrypi.stackexchange.com/questions/80029/how-to-complete-upgrade-from-wheezy-to-stretch | |
# Backup any files which are important to you. | |
# Ensure there is plenty of disk space free df -h | |
# With your new or existing install: | |
sudo apt-get update |