Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am johnwhitton on github.
  • I am johnwhitton (https://keybase.io/johnwhitton) on keybase.
  • I have a public key ASAfURBy0l4N-v536XrdOlHja0XJveHPOmAeJBeu-lOfmwo

To claim this, I am signing this object:

@johnwhitton
johnwhitton / Stellar dependency issue.md
Created September 18, 2018 23:52
Stellar go dependency issue using dep ensure -v
Johns-MacBook-Pro-2:go jincubator$ pwd
/Users/jincubator/go/src/github.com/stellar/go
Johns-MacBook-Pro-2:go jincubator$ brew list --versions mercurial
mercurial 4.7.1
Johns-MacBook-Pro-2:go jincubator$ dep ensure -v
(1/97) Wrote github.com/rubenv/sql-migrate@53184e1edfb4f9655b0fa8dd2c23e7763f452bda
(2/97) Wrote github.com/btcsuite/btcutil@501929d3d046174c3d39f0ea54ece471aa17238c
(3/97) Wrote github.com/goji/httpauth@master
(4/97) Wrote github.com/valyala/fasthttp@0a7f0a797cd66b89588d0a7fdd670b706579a621
@johnwhitton
johnwhitton / gist:48258a4aad398273e8184202d14ae8ed
Created January 18, 2019 02:00
Harmony Test Before Submit
Johns-MacBook-Pro-2:harmony jincubator$ ./test/test_before_submit.sh
~/go/src/github.com/harmony-one/harmony ~/go/src/github.com/harmony-one/harmony
Running go test...
# github.com/harmony-one/harmony/core/state
core/state/state_test.go:27:2: cannot find package "gopkg.in/check.v1" in any of:
/Users/jincubator/go/src/github.com/harmony-one/harmony/vendor/gopkg.in/check.v1 (vendor tree)
/usr/local/Cellar/go/1.11.4/libexec/src/gopkg.in/check.v1 (from $GOROOT)
/Users/jincubator/go/src/gopkg.in/check.v1 (from $GOPATH)
FAIL github.com/harmony-one/harmony/core/state [setup failed]
# github.com/harmony-one/harmony/internal/utils
@johnwhitton
johnwhitton / docusarus_compile_errror.txt
Last active June 12, 2020 19:48
Docusarus compile error
johnweb website (master) $ yarn build
yarn run v1.22.4
$ docusaurus build
Creating an optimized production build...
✔ Client
Compiled successfully in 23.92s
✖ Server
Compiled with some errors in 28.24s
@johnwhitton
johnwhitton / yarn install error
Last active June 17, 2020 01:03
Window not defined when running redoc as an npm package with swagger-ui-react
ohndesktop emasset $ yarn build
yarn run v1.22.4
$ docusaurus build
Creating an optimized production build...
✔ Client
Compiled successfully in 20.75s
✖ Server
Compiled with some errors in 25.15s
@johnwhitton
johnwhitton / generate-error.txt
Created June 23, 2020 00:09
Rosetta grpc definition generation error
$ gnostic api.yaml --grpc-out=.
level:INFO code:"SCHEMAFIELDS" text:"Field: 'required' is not supported for the schema: AccountBalanceRequest" keys:"components" keys:"schemas" keys:"AccountBalanceRequest" keys:"required"
level:INFO code:"SCHEMAFIELDS" text:"Field: 'required' is not supported for the schema: AccountBalanceResponse" keys:"components" keys:"schemas" keys:"AccountBalanceResponse" keys:"required"
level:INFO code:"SCHEMAFIELDS" text:"Field: 'example' is not supported for the schema: metadata" keys:"components" keys:"schemas" keys:"AccountBalanceResponse" keys:"properties" keys:"metadata" keys:"example"
level:INFO code:"SCHEMAFIELDS" text:"Field: 'required' is not supported for the schema: BlockRequest" keys:"components" keys:"schemas" keys:"BlockRequest" keys:"required"
level:INFO code:"SCHEMAFIELDS" text:"Field: 'required' is not supported for the schema: BlockResponse" keys:"components" keys:"schemas" keys:"BlockResponse" keys:"required"
level:INFO code:"SCHEMAFIELDS" text:"Field: 'required' is
@johnwhitton
johnwhitton / tmp200.log
Created February 6, 2021 03:28
Parachain not producing Blocks
2021-02-05 19:11:15.463 INFO main sc_cli::runner: Parachain Collator Template
2021-02-05 19:11:15.464 INFO main sc_cli::runner: ✌️ version 2.0.0-422bc45-x86_64-macos
2021-02-05 19:11:15.464 INFO main sc_cli::runner: ❤️ by Anonymous, 2017-2021
2021-02-05 19:11:15.464 INFO main sc_cli::runner: 📋 Chain specification: Local Testnet
2021-02-05 19:11:15.464 INFO main sc_cli::runner: 🏷 Node name: Alice
2021-02-05 19:11:15.464 INFO main sc_cli::runner: 👤 Role: AUTHORITY
2021-02-05 19:11:15.464 INFO main sc_cli::runner: 💾 Database: RocksDb at local-test/chains/local_testnet/db
2021-02-05 19:11:15.464 INFO main sc_cli::runner: ⛓ Native runtime: cumulus-test-parachain-100 (cumulus-test-parachain-1.tx1.au1)
2021-02-05 19:11:17.343 INFO main parachain_collator::command: Parachain id: Id(200)
2021-02-05 19:11:17.343 INFO main parachain_collator::command: Parachain Account: 5Ec4AhPTL6nWnUnw58QzjJvFd3QATwHA3UJnvSD4GVSQ7Gop
@johnwhitton
johnwhitton / 1. android build problem
Last active April 12, 2021 19:23
Polakwallet build issue
johnlaptop wallet (master) $ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.4, on macOS 11.2.3 20D91 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] VS Code (version 1.55.0)
[✓] Connected device (2 available)
@johnwhitton
johnwhitton / John Week 2.md
Created August 14, 2021 00:30
John Harmony update

Summary

  • Owner: john
  • Week 2: 08/09-08/15
  • Total: 15 hours
  • Overtime: 0 hours

Time Table

date start time end time duration note
08/09 00:00 00:00 0 Deployed Kanga Finance on Harmony Testnet see additional development