Skip to content

Instantly share code, notes, and snippets.

View jaretburkett's full-sized avatar

Jaret Burkett jaretburkett

View GitHub Profile
@jaretburkett
jaretburkett / makeItWeird
Created March 19, 2018 16:44
Deep Dream Zooming Video Bash
#!/bin/bash
DREAMS=5
#use 6 numbers important
ITERATIONS=5
FILE=$1
## Get the file name and path
LOCALPATH="$(dirname "$FILE")"
LOCALPATHSLASH="$LOCALPATH/"
@jaretburkett
jaretburkett / SimpleWebcam.html
Created August 20, 2017 22:46
A simple webcam viewer that can be flipped both vertically and horizontally
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>Simple Webcam Viewer</title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<style>
* {
box-sizing: border-box;
@jaretburkett
jaretburkett / setupwaveshare.sh
Last active November 1, 2016 18:24
Setup 5" waveshare display script
#!/bin/bash
echo 'max_usb_current=1' >> /boot/config.txt
echo 'hdmi_group=2' >> /boot/config.txt
echo 'hdmi_mode=87' >> /boot/config.txt
echo 'hdmi_cvt=800 480 60 6 0 0 0' >> /boot/config.txt
wget http://www.waveshare.com/w/upload/3/3d/LCD-show-160811.tar.gz
tar xzvf LCD-show-160811.tar.gz
rm LCD-show-160811.tar.gz
cd LCD-show && sudo ./LCD5-show
@jaretburkett
jaretburkett / installreadonly
Last active November 1, 2016 16:01
Script to put pi in readonly mode
#!/bin/bash
#update apt-get
apt-get update
#replace syslog with busybox
apt-get install busybox-syslogd
dpkg --purge rsyslog
#remove problem packages
#include "TimerOne.h"
#include <Adafruit_NeoPixel.h>
#define PIN 6 // neopixel pin
// How many NeoPixels are attached to the Arduino?
#define NUMPIXELS 16
bool pixOn = false; //holds current value of pixels
@jaretburkett
jaretburkett / ESP8266_AP_Telnet.ino
Created February 23, 2016 00:33
ESP8266 Telnet AP Mode in Arduino
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
//how many clients should be able to telnet to this ESP8266
#define MAX_SRV_CLIENTS 1
/* Set these to your desired credentials. */
const char *ssid = "ESPtelnet";
const char *password = "password";
@jaretburkett
jaretburkett / ESP8266_wifimotion.ino
Last active June 30, 2025 13:03
ESP8266 on Arduino using wifi signal strength to detect motion
#include <ESP8266WiFi.h>
// Connection Settings
const char* ssid = "YourSSID";
const char* password = "YourPasskey";
// show debug output data on serial
// shows rssi readings when true
bool debug = false;