Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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

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:

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