Skip to content

Instantly share code, notes, and snippets.

F:\Workspaces\codechain>cargo build --release
Compiling cfg-if v0.1.3
Compiling nodrop v0.1.12
Compiling winapi v0.3.4
Compiling memoffset v0.2.1
Compiling winapi-build v0.1.1
Compiling lazy_static v1.0.0
Compiling scopeguard v0.3.3
Compiling rayon-core v1.4.0
Compiling semver-parser v0.7.0

Keybase proof

I hereby claim:

  • I am gurrpi on github.
  • I am gurrpi (https://keybase.io/gurrpi) on keybase.
  • I have a public key ASCfTClX4-H3kkGIXIJWZpMg6g-M7HAuBC6zuoFPy9Rt4wo

To claim this, I am signing this object:

@baumstern
baumstern / ignite.sh
Created February 3, 2021 08:49
Create micro-vm w/ random id
#!/bin/bash
NODE_ID=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 7)
sudo ignite run weaveworks/ignite-ubuntu:20.04 \
--name k8s-worker-"${NODE_ID}" \
--cpus 4 \
--memory 4GB \
--size 16GB \
--ssh
@baumstern
baumstern / haproxy.cfg
Last active March 11, 2021 07:09
haproxy.cfg: k8s control-plane HA
# reference: https://thebsdbox.co.uk/2020/01/02/Designing-Building-HA-bare-metal-Kubernetes-cluster/#Networking-load-balancing
frontend http_stats
bind *:8080
mode http
stats uri /haproxy?stats
frontend kube_api_server
bind 0.0.0.0:6443
mode tcp
@baumstern
baumstern / pod.yaml
Created March 16, 2021 08:00
Launch pod in k8s
apiVersion: batch/v1
kind: Job
metadata:
name: hello
spec:
template:
spec:
containers:
- name: hello
image: busybox
@baumstern
baumstern / result.log
Created March 22, 2022 07:31
maci_contract-test_20220322.log
> maci-contracts@1.0.4 test
> npx jest --runInBand
(node:392) V8: /app/contracts/node_modules/rustbn.js/lib/index.asm.js:2 Linking failure in asm.js: Unexpected stdlib member
(Use `node --trace-warnings ...` to show where the warning was created)
console.log
Deploying Poseidon contracts
at log (ts/deploy.ts:179:17)
@baumstern
baumstern / gist:c557d97bb171163ce1b88653051bf84a
Last active March 24, 2022 16:27
qfi-contract-test-log_20220325
yarn run v1.22.17
$ hardhat test
Generating typings for: 0 artifacts in dir: typechain/ for target: ethers-v5
Successfully generated 3 typings!
Successfully generated 11 typings for external artifacts!
 ·-----------------------------------|-------------·
 |  Contract Name                    ·  Size (KB)  │
 ····································|··············
 |  AccQueueBinary0                  ·      6.568  │
@baumstern
baumstern / maci_small_new_attestation.txt
Created May 9, 2022 13:12
Attestation for MACI small new MPC Phase 2 Trusted Setup ceremony
Hey, I'm gurrpi and I have contributed to the MACI small new MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (tally_votes_small)
Contributor # 2
Contribution Hash: a155ff41 16ca0ecc 47e76ad1 668ebc24
65685464 13d81d1e 0a1815c5 f176b52c
0e3f2c1e ca164d8b 6b564375 d4e5dbe1
81abefbe 762ccf3d fe5aa6bd 573f8171
@baumstern
baumstern / dummy_ceremony_attestation.txt
Created May 11, 2022 15:29
Attestation for dummy ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm gurrpi and I have contributed to the dummy ceremony MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (multiplier_2)
Contributor # 2
Contribution Hash: 7340ffb1 2f1b41db 6aee4961 2b48f266
ba4d5171 bbd8837e 7cb3ea7a 1f849e2d
dd9207c3 a5e1fdfd f43592fe 2f501b96
4fd5b11b 5ea986bb 120b22a0 b714fc0f
@baumstern
baumstern / maci_small_attestation.txt
Created May 11, 2022 15:43
Attestation for maci small MPC Phase 2 Trusted Setup ceremony
Hey, I'm gurrpi and I have contributed to the maci small MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (process_messages_small)
Contributor # 1
Contribution Hash: 2cc19939 20bc340b 76c175ec c44e4969
06fa18ec 8b92ec7a 329e385e 160c5d32
7725bdfc 721caf17 898eaeec 34ebf42f
60e8d19a 525df9d1 398c1f8c 02b750df