Skip to content

Instantly share code, notes, and snippets.

View peterpeerdeman's full-sized avatar

Peter Peerdeman peterpeerdeman

View GitHub Profile
@peterpeerdeman
peterpeerdeman / gist:510232905d333c970947f88bbc41b964
Last active February 26, 2024 15:03
influx-to-prophet-workinprogress.js
"use strict";
const Influx = require("influxdb-nodejs");
const axios = require("axios").default;
const INPUT_MEASUREMENT = "pvstatus";
const OUTPUT_MEASUREMENT = "pvstatus_predictions";
function writeOriginalsToInflux(influxClient, pair) {
if (!pair[1]) return;
const fields = {
Verifying that I control the following Nostr public key: npub1fldgkyxjm92mr7zlrejmhd3ymlzx2awhpxpwserzl5v2w7a7a93q0n7wu7
@peterpeerdeman
peterpeerdeman / listing.txt
Created May 21, 2020 17:07
recurisve listing of influxdb/data
_internal
destiny
doorbell
fitbit
huelights
listing.txt
parking
pv
raspweather-outside
router

Keybase proof

I hereby claim:

  • I am peterpeerdeman on github.
  • I am peterpeerdeman (https://keybase.io/peterpeerdeman) on keybase.
  • I have a public key whose fingerprint is 172D 04E0 DC3B C35C 636D 95A9 5768 ECC7 959B 1C55

To claim this, I am signing this object:

@peterpeerdeman
peterpeerdeman / APPLE-PUSH-NOTIFICATIONS-CERTIFICATES.md
Created June 8, 2016 19:54
Quick Apple Push Notification Certificates Guide
// AOW age calculated through http://www.rijksoverheid.nl/onderwerpen/algemene-ouderdomswet-aow/vraag-en-antwoord/wanneer-krijg-ik-aow.html
function calculateAOWDate(birthdate) {
if(!birthdate) {
throw 'birthdate parameter not defined';
}
if(birthdate < new Date('1 january 1948')) {
// voor 1 januari 1948 -> 65
birthdate.setFullYear(birthdate.getFullYear()+65);
return birthdate;
} else if (birthdate > new Date('31 december 1947') &&
{
"_id" : "wB9QZAFYacyoRiH5g",
"createdAt" : ISODate("2015-06-26T07:35:15.993Z"),
"services" : {
"password" : {
"bcrypt" : "xx"
},
"resume" : {
"loginTokens" : [