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 | |
read -p "Please enter the path of your USB-Serial Adapter (ex: /dev/ttyUSB0):" comport | |
read -p "Ensure Oak is attached as shown here and press a key: digistump.com/wiki/oak/serialupdate" -n1 -s | |
echo | |
echo "Updating..." | |
python esptool.py --baud 115200 --port $comport write_flash -fs 32m 0x1000 blank.bin 0x2000 firmware_v1.bin 0x101000 blank.bin 0x102000 blank.bin 0x202000 blank.bin | |
echo "Done!" | |
read -n1 -s -t3 |
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
SYSTEM_MODE(MANUAL); | |
#include <ESP8266WiFi.h> | |
//Static IP stuff | |
char SSID[] = "yournetwork"; // your network SSID | |
char passwd[] = "yourpassword"; // your network password | |
//WiFi config stuff | |
IPAddress ip(192, 168, 0, 70); //your static IP |
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
SYSTEM_MODE(MANUAL); | |
#include <ESP8266WiFi.h> | |
//Static IP stuff | |
char SSID[] = "yournetwork"; // your network SSID | |
char passwd[] = "yourpassword"; // your network password | |
void setup() | |
{ |
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 | |
set -e | |
DISTRO="" | |
if hash apt-get 2>/dev/null; then | |
DISTRO=debian | |
fi | |
if [ -z "$DISTRO" ]; then |
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 | |
USERNAME="" | |
PASSWORD="" | |
URL="http://192.168.0.156/snapshot.jpg?user=${USERNAME}&pwd=${PASSWORD}" | |
TIMESTAMP=$(date +%F_%T) | |
OUTPUT_DIR="/home/rock64/ipcam-snapshots" | |
curl "${URL}" --output "${OUTPUT_DIR}/${TIMESTAMP}.jpg" |
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 | |
#if a gpio group exists, doing this at startup allows any group member to control leds | |
#sudo chgrp gpio /sys/class/leds/{diy,work}-led/brightness | |
#sudo chmod g+w /sys/class/leds/{diy,work}-led/brightness | |
LED_GPIO="/sys/class/leds/power-led" | |
LED_ON=255 | |
LED_OFF=0 |
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
rock64@rockpro64:/mnt/seagate-green-1.5tb$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 | |
Iozone: Performance Test of File I/O | |
Version $Revision: 3.429 $ | |
Compiled for 64 bit mode. | |
Build: linux | |
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | |
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, |
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
rock64@rockpro64:/mnt/samsung-960-evo-250GB$ sudo iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2 | |
Iozone: Performance Test of File I/O | |
Version $Revision: 3.429 $ | |
Compiled for 64 bit mode. | |
Build: linux | |
Contributors:William Norcott, Don Capps, Isom Crawford, Kirby Collins | |
Al Slater, Scott Rhine, Mike Wisner, Ken Goss | |
Steve Landherr, Brad Smith, Mark Kelly, Dr. Alain CYR, | |
Randy Dunlap, Mark Montague, Dan Million, Gavin Brebner, |
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
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#define WIFI_SSID "YOUR_SSID" | |
#define WIFI_PWD "YOUR_SSID_PASSWORD" | |
void setup() | |
{ |
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
#include <Arduino.h> | |
#include <ESP8266WiFi.h> //https://github.com/esp8266/Arduino | |
#include <DNSServer.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WebServer.h> | |
#include <ArduinoOTA.h> | |
#define SSID "fancy-ssid" | |
#define PASS "pass" |