Skip to content

Instantly share code, notes, and snippets.

@bwo
bwo / generate
Created February 27, 2019 22:56
(crypto) Ben-Wolfson-Tower ~/src/all-the-things/crypto4/service 02:56:23 $ git checkout -
Switched to branch 'feature/crypto-py3-container'
(crypto) Ben-Wolfson-Tower ~/src/all-the-things/crypto4/service 02:56:25 $ sh generate_all.sh
/home/benwolfson/src/all-the-things/deployable/crypto/src/.venv/local/lib/python2.7/site-packages/cryptography/hazmat/primitives/constant_time.py:26: CryptographyDeprecationWarning: Support for your Python version is deprecated. The next version of cryptography will remove support. Please upgrade to a 2.7.x release that supports hmac.compare_digest as soon as possible.
utils.DeprecatedIn23,
{"algorithm": "ecies-p384-aes-128-gcm", "created": "2019-02-27T22:56:27.607519", "data": {"key": "AssAMFyNTNUXi0GR8Zv1uDf8ULrlFJTeAW4DBaqho3qmtkqREMmZeSdkoYKEnabMeMXjNQ==", "pub": "AssAMDxIgXWedC0PlXxTbDDZH68kd/Qy8GLSBl3DtZX2uRohUmanTipJ2AtHPp/i8DjyfwAwOdqxxPdY6HsGZtQgnjFtdymfhFU8m0OgtoohABLyWNVaUh9iAnpDBOTcktanJ5eg"}, "operation": "encrypt"}
/home/benwolfson/src/all-the-things/deployable/cr
@bwo
bwo / core.clj
Created March 28, 2015 03:53
who are the answeringest mefites?
(ns answeringest.core
(:require [babbage.core :as b]
[babbage.provided.core :as p]
[clojure.java.io :as io]
[clj-time.format :as f]
[clj-time.core :as time]))
(def mefi-format (f/formatter "MMM d YYYY hh:mm:ss:SSSa"))
(defn parse-date [d]
(f/parse mefi-format (.replace d " " " ")))