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
const puppeteer = require('puppeteer') | |
const sleep = require('await-sleep') | |
const screenshot = 'twitter.png' | |
const USERNAME = '' | |
const PASSWORD = '' | |
const HTMLMESSAGE = 'My first tweet from puppeteer (Headless Chrome Node API)' | |
; | |
(async () => { |
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
// include library from https://opentimestamps.org/assets/javascripts/vendor/opentimestamps.min.js | |
const file = 'Hello World!' | |
const op = new OpenTimestamps.Ops.OpSHA256() | |
const enc = new TextEncoder() | |
const buffer = enc.encode(file) | |
const detachedTimestamp = OpenTimestamps.DetachedTimestampFile.fromBytes(op, buffer) | |
OpenTimestamps.stamp(detachedTimestamp).then( ()=>{ | |
const serializedTimestamp = detachedTimestamp.serializeToBytes() | |
const detachedOts = OpenTimestamps.DetachedTimestampFile.deserialize(serializedTimestamp) |
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
004f70656e54696d657374616d7073000050726f6f6600bf89e2e884e8929401086e0c777e376b7007434a62a567f0dfbcf0b2ae28c14f4da4f078ba836848d8b0f01001a45afef6e0b90f26ade6e3632b401708fff0100d04f763445f8d4032c55788935aa34208f10459258418f008b90266e6048cd7140083dfe30d2ef90c8e2e2d68747470733a2f2f616c6963652e6274632e63616c656e6461722e6f70656e74696d657374616d70732e6f7267fff0102d4733ddd23707ec57e4ba1f27a36df808f10459258417f008924e9e86297797c10083dfe30d2ef90c8e2c2b68747470733a2f2f626f622e6274632e63616c656e6461722e6f70656e74696d657374616d70732e6f7267f010319e8701419ebbb26c3f7b4431daa17808f10459258417f008c9e9b330693b9f3c0083dfe30d2ef90c8e292868747470733a2f2f66696e6e65792e63616c656e6461722e657465726e69747977616c6c2e636f6d |
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
004f70656e54696d657374616d7073000050726f6f6600bf89e2e884e8929401086376095939d40934db5a6dea587d1a1e88284c4c3ad15b4bbc750d78167d5a14f0103f6f26c785ff413e3659eac5c29ea7a208fff0108fca4b1dde9ef4995af6f842b2e04d0908f1045925815af0087d32978d4970f42c0083dfe30d2ef90c8e292868747470733a2f2f66696e6e65792e63616c656e6461722e657465726e69747977616c6c2e636f6dfff0109fc8c77c04c00c913f98ee4de7419a9108f1045925815af00855d64b42724a997b0083dfe30d2ef90c8e2e2d68747470733a2f2f616c6963652e6274632e63616c656e6461722e6f70656e74696d657374616d70732e6f7267f010dd266f153c9cbda58d107c3c117fd0a708f1045925815bf008adb8c48221c3589c0083dfe30d2ef90c8e2c2b68747470733a2f2f626f622e6274632e63616c656e6461722e6f70656e74696d657374616d70732e6f7267 |
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
### Keybase proof | |
I hereby claim: | |
* I am lvaccaro on github. | |
* I am lvaccaro (https://keybase.io/lvaccaro) on keybase. | |
* I have a public key whose fingerprint is 63A4 0FF7 978D 946A 5C79 8AC3 5D78 4A51 1999 F212 | |
To claim this, I am signing this object: |