Skip to content

Instantly share code, notes, and snippets.

Friedrich Mäckle pfried

Block or report user

Report or block pfried

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
@pfried
pfried / README.md
Created Jun 13, 2019 — forked from bryan-hunt/README.md
Example Certificate Provisioning
View README.md

Microchip Secure Element Tools

These tools are used to set up an example chain of trust ecosystem for use with Microchip ATECC508A and ATECC608A parts. Included are utilities to create the ecosystem keys and certificates.

Dependencies

Python scripts will require python 3 to be installed. Once python is installed install the requirements (from the path of this file):

@pfried
pfried / gist:5876966
Last active Dec 19, 2015
polyglot.js example
View gist:5876966
$(document).ready(function() {
var phrases = {
"car" : "%{smart_count} Auto |||| %{smart_count} Autos"
};
var polyglot = new Polyglot({phrases : phrases, locale : "de"});
// Zero form
console.log(polyglot.t("car",{ "smart_count" : 0}));
View accounts
module.exports = function(mongoose) {
var hasher = require('pbkdf2-hasher');
var toLowerCase = function(string) {
return string.toLowerCase();
}
// Generate a new password hash
var hashPassword = function(password, callback) {
You can’t perform that action at this time.