Skip to content

Instantly share code, notes, and snippets.

Peter pfeerick

  • Australia
Block or report user

Report or block pfeerick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@pfeerick
pfeerick / main.cpp
Created Feb 10, 2019
ESP32 AP platformio forum code
View main.cpp
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <IPAddress.h>
String inputString="";
String inputStringWiFi="";
String hello="hello\r";
@pfeerick
pfeerick / main.cpp
Last active Feb 10, 2019
PlatformIO build_flags docs issue
View main.cpp
#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"
@pfeerick
pfeerick / BasicOTA_MDNS_test.ino
Created Dec 13, 2018
Modified version of the BasicOTA sketch included with the ESP8266 Arduino core to check if MDNS is an issue
View BasicOTA_MDNS_test.ino
#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()
{
@pfeerick
pfeerick / iozone-nvme-0.7.6.txt
Last active Jul 18, 2018
rockpro64 - bionic-containers-0.7.6-arm64 - pci Samsung 960 EVO 250GB - 4.4.132-1062
View iozone-nvme-0.7.6.txt
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,
@pfeerick
pfeerick / iozone.txt
Last active Jul 6, 2018
rockpro64 - bionic-minimal-0.6.59-arm64 - pci SATA - 4.18.0-rc3-1042-ayufan-gc1c3de67a7c1
View iozone.txt
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,
@pfeerick
pfeerick / rock64-power-led-heartbeat.sh
Created Jun 22, 2018
rock64 power led heartbeat indicator
View rock64-power-led-heartbeat.sh
#!/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
@pfeerick
pfeerick / ipcam-capture.sh
Last active Jun 8, 2018
Scripts to capture and generate timelapse footage from Maginon IPC-100 IP camera
View ipcam-capture.sh
#!/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"
@pfeerick
pfeerick / pine64-install-mate-debian.sh
Created Jun 2, 2018
Install MATE Desktop Environment for Debian on the pine64
View pine64-install-mate-debian.sh
#!/bin/bash
set -e
DISTRO=""
if hash apt-get 2>/dev/null; then
DISTRO=debian
fi
if [ -z "$DISTRO" ]; then
@pfeerick
pfeerick / OakManualWifi.ino
Created Dec 18, 2016
Demo sketch showing how to configure a Digistump Oak's wifi manually without a Particle connection
View OakManualWifi.ino
SYSTEM_MODE(MANUAL);
#include <ESP8266WiFi.h>
//Static IP stuff
char SSID[] = "yournetwork"; // your network SSID
char passwd[] = "yourpassword"; // your network password
void setup()
{
@pfeerick
pfeerick / OakManualWifiStatic.ino
Last active Dec 18, 2016
Demo sketch showing how to configure a Digistump Oak's wifi manually with a static IP without a Particle connection
View OakManualWifiStatic.ino
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
You can’t perform that action at this time.