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
#!/usr/bin/env bash | |
tail -f /var/log/nginx/access.log | awk ' | |
/" 2/ {print "\033[32m" $0 "\033[39m"; next;} | |
/" 3/ {print "\033[37m" $0 "\033[39m"; next;} | |
/" 4/ {print "\033[33m" $0 "\033[39m"; next;} | |
/" 5/ {print "\033[31m" $0 "\033[39m"} | |
' |
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
/* | |
* This package does the following: | |
* - connects to home WiFi, | |
* - set clock, | |
* - setup a websocket connection with TD Ameritrade backend, | |
* - login and subscribe to quotes of some tickers | |
*/ | |
#include <heltec.h> | |
#include <ArduinoJson.h> |