Skip to content

Instantly share code, notes, and snippets.

View georgeredinger's full-sized avatar
💭
Coding

George Redinger georgeredinger

💭
Coding
View GitHub Profile
@georgeredinger
georgeredinger / sleep_from_wake_stub_example.c
Created April 9, 2019 11:55 — forked from igrr/sleep_from_wake_stub_example.c
ESP32 ESP-IDF example illustrating how to go back to sleep from deep sleep wake stub
/*
* This sample illustrates how to go back to deep sleep from the
* deep sleep wake stub.
*
* Consider the use case of counting pulses from an external sensor,
* where the pulses arrive at a relatively slow rate.
*
* ESP32 is configured to go into deep sleep mode, and wake up from
* a GPIO pin connected to the external pulse source.
* Once the pulse arrives, ESP32 wakes up from deep sleep and runs
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
@georgeredinger
georgeredinger / index.html
Created September 20, 2017 15:08 — forked from shalotelli/index.html
Creating Web Components in JavaScript (ES6) to use in your Angular, React and Ember projects
<!DOCTYPE html>
<html>
<head>
<title>Web Components</title>
<style>
body {
font-family: 'Helvetica Neue';
}
</style>
@georgeredinger
georgeredinger / Sparkline.js
Created September 12, 2017 04:08 — forked from garcon/Sparkline.js
Sparkline.js
/**
* Javascript Sparklines Library
* Written By John Resig
* http://ejohn.org/projects/jspark/
*
* This work is tri-licensed under the MPL, GPL, and LGPL:
* http://www.mozilla.org/MPL/
*
* To use, place your data points within your HTML, like so:
* <span class="sparkline">10,8,20,5...</span>
@georgeredinger
georgeredinger / database.rules.json
Created August 29, 2017 02:01 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
@georgeredinger
georgeredinger / Cloud Storage Backup Tutorial.md
Created August 25, 2017 19:46
Tutorial for making an encrypted backup on cloud storage using rclone.

Amazon Cloud Drive Advisory

Over the past few days, a security issue came to light regarding an authentication service used by another tool, acd_cli. acd_cli had its authentication keys for Amazon Cloud Drive blocked after Amazon engineers reviewed their source code for their authentication service and found a security issue.

This morning, rclone's authentication keys were apparently blocked by Amazon. No reason has been brought forth at this time, and rclone does not use a cloud service to authenticate users - it uses a local web server. Theories include an influx of rclone users after acd_cli was blocked, people extracting the API authentication keys from rclone and using them with acd_cli, a combination of both, or Amazon wanting to clamp down on heavy users with several terabytes of data, and blocking the tools they use to do so.

The Amazon rep that I spoke with over the phone speculated that it "may be because of a recent event," but offered nothing more. I was offered a full refund, four month

@georgeredinger
georgeredinger / range-slider.html
Created June 11, 2016 14:33 — forked from kuitos/range-slider.html
range slider base on angular-material slider
<!--
Created by Kuitos on 2015/03/06 10:15 AM.
Email: kuitos.lau@gmail.com
author: EdwardCTaylor
author: Kuitos
Licence: MIT
-->
<!DOCTYPE html>
<html>
<head>
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages

Keybase proof

I hereby claim:

  • I am georgeredinger on github.
  • I am georgeredinger (https://keybase.io/georgeredinger) on keybase.
  • I have a public key whose fingerprint is 1A57 BBA0 5988 E370 4240 67C0 A7CD 8D16 8BA9 4B09

To claim this, I am signing this object:

// Copyright (c) 2014 Electric Imp
// This file is licensed under the MIT License
// http://opensource.org/licenses/MIT
const PLOTLY_USER = "XXXXX";
const PLOTLY_KEY = "XXXXX";
// Name your plot
const PLOTLY_FILENAME = "Compensated Weight vs Temp Graph 3kg";
// How much historical data to show in hours (autorange must be disabled)
const GRAPH_WINDOW = 24;