- follow guide https://www.raywenderlich.com/123862/push-notifications-tutorial
- create keys through app id preferences screen in developer.apple.com
- export certificate and keys to .p12 from keychain
openssl pkcs12 -in PartupPushProdKeys.p12 -out PartupPushProdKeys.pem -nodes -clcerts
openssl pkcs12 -in PartupPushDevKeys.p12 -out PartupPushDevKeys.pem -nodes -clcerts
- prepare .pem certificates https://github.com/argon/node-apn/wiki/Preparing-Certificates
openssl x509 -in aps.cer -inform DER -outform PEM -out PartupPushProduction.pem
openssl x509 -in aps_development.cer -inform DER -outform PEM -out PartupPushDev.pem
- test with
openssl s_client -connect gateway.push.apple.com:2195 -cert PartupPushProd.pem -key PartupPushProdKeys.pem
- creating pfx package http://stackoverflow.com/questions/6307886/how-to-create-pfx-file-from-certificate-cer-pem-crt-and-private-key
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
{ | |
"_id" : "wB9QZAFYacyoRiH5g", | |
"createdAt" : ISODate("2015-06-26T07:35:15.993Z"), | |
"services" : { | |
"password" : { | |
"bcrypt" : "xx" | |
}, | |
"resume" : { | |
"loginTokens" : [ | |
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
// 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') && |
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:
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
_internal | |
destiny | |
doorbell | |
fitbit | |
huelights | |
listing.txt | |
parking | |
pv | |
raspweather-outside | |
router |
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
Verifying that I control the following Nostr public key: npub1fldgkyxjm92mr7zlrejmhd3ymlzx2awhpxpwserzl5v2w7a7a93q0n7wu7 |
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
"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 = { |