Skip to content

Instantly share code, notes, and snippets.

Configure the Raspberry Pi

Install Raspbian Lite

  • Download Raspbian Lite
  • Download and install balenaEtcher
  • Flash the Raspbian Lite .img or .zip to an SD card using balenaEtcher

Optimize & configure the Raspberry Pi

  • Turn on the Raspberry Pi and wait for it to boot to the CLI
  • Enter sudo raspi-config
    • Select 1 Change User Password and create a unique password
  • Optional: Select 2 Network Options > N1 Hostname
#!/usr/bin/env bash
echo "
----------------------
NODE & NPM
----------------------
"
# add nodejs 10 ppa (personal package archive) from nodesource
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
@techieanant
techieanant / fetchPrices.js
Created March 24, 2023 21:09
Fetches prices from coingecko for BTT
const https = require("https");
async function makeRequest(url) {
return new Promise((resolve) => {
https.get(url, res => {
let data = "";
res.on('data', chunk => { data += chunk })
@techieanant
techieanant / AttendedTransfer
Created September 2, 2021 10:28
Attended Transfer JsSIP
const call1Session = callSessionList[0]; // JsSIP.RTCSession instance
const call2Session = callSessionList[1]; // JsSIP.RTCSession instance
const options = {
replaces: call2Session
};
// Finish attended transfer
call1Session.refer(call2Session.remote_identity.uri, options);
@techieanant
techieanant / mappingsFiltered.json
Created April 16, 2021 04:07
Coingecko Ethereum token name -> contract address mapping 04/15/21
[
{
"name": "0chain",
"address": "0xb9ef770b6a5e12e45983c5d80545258aa38f3b78"
},
{
"name": "0x",
"address": "0xe41d2489571d322189246dafa5ebde1f4699f498"
},
{
@techieanant
techieanant / attestation.txt
Created March 27, 2021 06:31
ZKOPRU trusted setup attestation
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 80
Hash: 0b12aa40 ae84f45d 3fb615f5 cae40254
5ae56c06 633f8460 f7a77ac1 bf40e81a
7b5f30bc 392ab4d2 0d304783 bfbf7fe5
e7d92ffa d606770d 9696492a 220520eb
@techieanant
techieanant / attestation.txt
Created March 27, 2021 06:30
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_4",
"ceremonyId": "xN7193Ldf8i0L2SfG8X4",
"time": "2021-03-27T06:30:44.617Z",
"contributionNumber": 44,
"hash": "8d3d1d7a c25aedf4 5a1d7659 56d78f23\n 43df98e0 1eca60c9 a30da270 3e4af98b\n 8ad3cedd 8041cfc4 6da1c2b8 51438b26\n a5561d2c 93908bdf 2665c359 c480d4f3\n"
}
@techieanant
techieanant / attestation.txt
Created March 27, 2021 06:26
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_3",
"ceremonyId": "8i9TsuUmSnqh5cLIQoFd",
"time": "2021-03-27T06:26:03.535Z",
"contributionNumber": 44,
"hash": "374d4552 e4d0f228 d81ca421 d04abfd5\n a51883b4 994eb051 46b7fd86 610774ca\n e7f9791d eccff068 63ca1d58 5c03f113\n 53a858f9 18e3fd49 f3c23ec9 0ca6afc0\n"
}
@techieanant
techieanant / attestation.txt
Created March 27, 2021 06:21
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_2",
"ceremonyId": "NgqtzZuK1la2dU1LiFCN",
"time": "2021-03-27T06:21:26.416Z",
"contributionNumber": 45,
"hash": "a0c24997 6c2021e3 229e2f8d bee540c2\n fe74b5f7 38569365 e6667207 3c91a730\n 492ae4b8 33a0d1aa b48cbcf0 4ccef743\n 94370ff6 87cbde06 b99f4d9a 52293546\n"
}
@techieanant
techieanant / attestation.txt
Created March 27, 2021 06:16
zkparty phase2 tusted setup MPC contribution summary
{
"ceremony": "zk_transaction_4_1",
"ceremonyId": "doQRCJe1WsgoamIs0LGJ",
"time": "2021-03-27T06:16:22.414Z",
"contributionNumber": 46,
"hash": "2293243f c7cb327e ebfbef3c 9fad8b85\n 8e2a60a1 57fc06fc 27d2b3fe 660ec2c7\n d4af6503 713ceb17 419bc9a0 e436d6a7\n ca21f0ab 2c021dc9 39f4853b 84a7f2c1\n"
}