Skip to content

Instantly share code, notes, and snippets.

@felix
felix / verify.sh
Last active June 26, 2024 05:40
Verify x509 PEM certificate with its issuer
#!/bin/sh
set -e
usage() {
printf 'usage: %s <issuer.pem> <certificate.pem>\n' "$(basename "$0")"
exit 1
}
CA_FILE=$1
-- Description:
-- ------------
--
-- This is an example schema for storing collectd metrics in a TimescaleDB
-- dabase (see https://www.timescale.com/). It is based on the PostgreSQL
-- schema contributed by Sebastian Harl.
--
-- Prerequisities:
-- ---------------
--

Keybase proof

I hereby claim:

  • I am felix on github.
  • I am xilef (https://keybase.io/xilef) on keybase.
  • I have a public key whose fingerprint is 971C F7B2 913A D163 70AC 02C3 B6F2 29D7 7E20 D10B

To claim this, I am signing this object:

@felix
felix / create.js
Created April 27, 2016 05:11 — forked from davidaurelio/create.js
Constructor-less inheritance for ECMAScript 5
var BaseObject = {
create: function create() {
var instance = Object.create(this);
instance._construct.apply(instance, arguments);
return instance;
},
extend: function extend(properties, propertyDescriptors) {
propertyDescriptors = propertyDescriptors || {};