Skip to content

Instantly share code, notes, and snippets.

@glorat
glorat / cloudbuild.yaml
Last active May 7, 2024 13:50
Import unstructured-api image to artifact registry for use with Google Cloud Run
steps:
- name: 'gcr.io/cloud-builders/docker'
args:
- 'pull'
- 'quay.io/unstructured-io/unstructured-api:latest'
- name: 'gcr.io/cloud-builders/docker'
args:
- 'tag'
- 'quay.io/unstructured-io/unstructured-api:latest'
- 'asia-southeast1-docker.pkg.dev/glorat-gptapps/sg-unstructured/unstructured-api:latest'
@glorat
glorat / gist:2179505f380b9984cb4f
Last active August 29, 2015 14:05
Brainwallet bitcoinsig with bitcoinjs-lib 1.0.3 - And a bug
/**
* Created by Kevin Tam on 08/08/2014.
*/
var Base58 = require('bs58');
var Crypto = require('crypto');
var BigInteger = require('bigi');
var assert = require('assert');
var Bitcoin = require('../../')