Skip to content

Instantly share code, notes, and snippets.

import abc
import typing
from decimal import Decimal as D
from dataclasses import dataclass
class IComparable(abc.ABC):
@abc.abstractmethod
def diff(self, other) -> typing.Union[None, str, dict]:
"""Compare self with the "other" object and return differences"""
@nav
nav / keybase.md
Last active March 13, 2019 05:25

Keybase proof

I hereby claim:

  • I am nav on github.
  • I am nav (https://keybase.io/nav) on keybase.
  • I have a public key whose fingerprint is 6452 60D0 10FE D21A 4E67 A408 A725 CE8A 706A 4C1C

To claim this, I am signing this object:

@nav
nav / gist:9e284558d639fd1a6bc8
Created August 17, 2015 17:56
SSL Key, CSR and Self-signed certificate
openssl genrsa 2048 > domain.key
openssl req -new -sha256 -out domain.csr -key domain.key
openssl x509 -req -sha256 -days 365 -in domain.csr -signkey domain.key -out domain.pem -extensions v3_req
openssl x509 -fingerprint -text -noout < domain.pem > domain.info