Skip to content

Instantly share code, notes, and snippets.

View Man-Jain's full-sized avatar
🏖️
Working from home

Manank Patni Man-Jain

🏖️
Working from home
View GitHub Profile
{
"type": "Error",
"message": "bad response (status=403, headers={\"access-control-allow-credentials\":\"true\",\"access-control-allow-headers\":\"Content-Type,Authorization,User-Agent\",\"access-control-allow-methods\":\"GET, POST, OPTIONS\",\"access-control-allow-origin\":\"\",\"content-type\":\"application/json\",\"vary\":\"Accept-Encoding\",\"x-node-id\":\"08777362-575c-4584-aa42-4f09eb19af92\",\"date\":\"Fri, 12 Jan 2024 11:50:10 GMT\",\"content-length\":\"132\",\"connection\":\"close\"}, body=\"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"id\\\":40720,\\\"error\\\":{\\\"code\\\":-32612,\\\"message\\\":\\\"custom traces are blocked. contact sales at quicknode.com to enable\\\"}}\", requestBody=\"{\\\"method\\\":\\\"debug_traceCall\\\",\\\"params\\\":[{\\\"to\\\":\\\"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789\\\",\\\"data\\\":\\\"0xee2194230000000000000000000000000000000000000000000000000000000000000020000000000000000000000000e6c18e77782c628eb2d0501f5adf654c08e62a980000000000000000000000000000000000000000
@Man-Jain
Man-Jain / bazel-dockerfile
Last active December 28, 2023 12:40
Bazel Dockerfile
# docker buildx build --platform=linux/amd64 -t bazel .
FROM ubuntu:22.04
RUN apt-get update
RUN apt upgrade -y
RUN apt-get install -y git
RUN apt-get install -y vim
RUN apt-get install -y wget
RUN apt-get install -y curl
RUN apt-get install -y unzip
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
This file has been truncated, but you can view the full file.
{"data":[{"traceID":"98bf292e7440680128d1f74439b7ec53","spans":[{"traceID":"98bf292e7440680128d1f74439b7ec53","spanID":"b8752a8b1dcd2d74","flags":1,"operationName":"KademliaDHT.ProviderManager.GetProviders","references":[],"startTime":1698654076186930,"duration":4463,"tags":[{"key":"internal.span.format","type":"string","value":"jaeger"}],"logs":[],"processID":"p1","warnings":[],"process":{"serviceName":"Kubo","tags":[{"key":"otel.library.name","type":"string","value":"go-libp2p-kad-dht"},{"key":"service.version","type":"string","value":"0.21.0"},{"key":"telemetry.sdk.language","type":"string","value":"go"},{"key":"telemetry.sdk.name","type":"string","value":"opentelemetry"},{"key":"telemetry.sdk.version","type":"string","value":"1.16.0"}]},"relativeStartTime":0,"depth":0,"hasChildren":false,"childSpanIds":[]}],"processes":{"p1":{"serviceName":"Kubo","tags":[{"key":"otel.library.name","type":"string","value":"go-libp2p-kad-dht"},{"key":"service.version","type":"string","value":"0.21.0"},{"key":"telemetry.sdk.
@Man-Jain
Man-Jain / ipnslog.log
Created October 22, 2023 05:31
IPNS Logs 22 Oct 2023
This file has been truncated, but you can view the full file.
2023-10-22T04:45:12.396Z INFO bitswap messagequeue/messagequeue.go:518 Could not open message sender to peer 12D3KooWNB9SWmFWWpdV2wVybhBYjhSoqcc8sWqyJ8rfh5iNCRfH: context canceled
2023-10-22T04:45:12.397Z INFO bitswap messagequeue/messagequeue.go:518 Could not open message sender to peer 12D3KooWFrn9uWwVgh95KYdQ2tozrXMRd3JPV5sfB9vxWbJcomz5: context canceled
2023-10-22T04:45:12.397Z INFO bitswap messagequeue/messagequeue.go:518 Could not open message sender to peer 12D3KooWAcrwiwzL4XXSp89VjXPEqCneigbHBF92Ubjk96YC66sZ: context canceled
2023-10-22T04:45:12.408Z INFO net/identify identify/id.go:434 failed negotiate identify protocol with peer {"peer": "12D3KooWK97iq2ymE9RY7z4isHRmagEnMfQDPDz1P4f3ucmCnUeR", "error": "received a stateless reset with token b9ec60032dc6a52872651e3600f8dd01"}
2023-10-22T04:45:12.410Z WARN net/identify identify/id.go:406 failed to identify 12D3KooWK97iq2ymE9RY7z4isHRmagEnMfQDPDz1P4f3ucmCnUeR: received a stateless reset with token b9ec60032dc6a52872651e3600f8dd01
2023-10-22T04:45:12.417
ln -s /usr/src/app /home/node/app/validator
sleep 10;
echo "Install PM2"
npm i -g pm2
echo "/home/node/.pm2/logs/*.log /home/node/app/cli/build/logs/*.log {
daily
rotate 7
@Man-Jain
Man-Jain / Public IPFS Gateway.md
Created January 20, 2023 12:08 — forked from NatoBoram/Public IPFS Gateway.md
The complete guide to hosting a public IPFS gateway

Hosting a public IPFS gateway

This guide assumes that you've used ssh before. If not, then you must read How to Set Up SSH Keys.

I'm also going to assume you've used ipfs before. If not, then take some time to discover IPFS with IPFS Desktop, IPFS Companion and go-ipfs!

Get a host

A public IPFS gateway can be hosted at home or on the cloud.

@Man-Jain
Man-Jain / sui.sh
Last active December 23, 2022 13:30
curl -fLJO https://github.com/MystenLabs/sui-genesis/raw/main/devnet/genesis.blob
curl -o fullnode.yaml https://raw.githubusercontent.com/MystenLabs/sui/main/crates/sui-config/data/fullnode-template.yaml
/usr/local/bin/sui-node --config-path fullnode.yaml
{
"anchor": {
"ethereum-rpc-url": "https://eg_infura_endpoint" // Replace with an Ethereum RPC endpoint to avoid rate limiting
},
"http-api": {
"cors-allowed-origins": [
".*"
]
},
"ipfs": {
@Man-Jain
Man-Jain / pool.sh
Last active December 12, 2022 11:25
echo "Downloading Kyve Linux Binary..."
wget https://github.com/KYVENetwork/kyvejs/releases/download/%40kyve%2Fkysor%401.0.0-beta.1/kysor-linux-x64.zip
unzip kysor-linux-x64.zip
mv kysor-linux-x64 kysor
chmod +x kysor
echo wget -O ./arweave.json $LINK_ARWEAVE_WALLET
wget -O ./arweave.json $LINK_ARWEAVE_WALLET