Skip to content

Instantly share code, notes, and snippets.

Avatar

Didi d10r

View GitHub Profile
@d10r
d10r / README.txt
Created Apr 30, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@d10r
d10r / attestation.txt
Created Mar 29, 2021
ZKOPRU trusted setup attestation
View attestation.txt
I contributed to the ZKOPRU Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: zk_transaction_1_2
Contributor # 145
Hash: 3e7767e1 8634a9de 10ec121f 5f354775
8e0dd9e1 5b46e875 4a5201a7 1708bb9d
282e48d0 19784e6c 2cab7391 b5f0cf45
5bc3a9d1 f89cfde3 aab2e5b8 e92d170e
@d10r
d10r / artis_monitor_running.sh
Created Jul 18, 2020
minimal script for stateless monitoring/alerting (stall detection) for an Ethereum/ARTIS node via its RPC interface
View artis_monitor_running.sh
#!/bin/bash
# Statelessly checks if the given chain (identified by its rpc) is running.
# Definition of running: the most recent block was authored less than the given number of seconds ago
#
# argument $1: URL to the RPC node to query
# argument $2: threshold for how old - in seconds - the most recent block may be. If older, the chain is considered as not running
# argument $3: space separated list of recipients the Email alert should go to
#
# Note that this script is not designed to give any feedback about what's wrong in case it fails. It just sounds an alarm if it doesn't run through as expected.
View keybase.md

Keybase proof

I hereby claim:

  • I am d10r on github.
  • I am d10r (https://keybase.io/d10r) on keybase.
  • I have a public key ASAxWoUozAPxm1_2D1h8iuMAXFFX9D88s7NJ5AfWUquUeAo

To claim this, I am signing this object:

@d10r
d10r / ipfs_sync_local.sh
Created Mar 30, 2017
Local part of a simple ipfs replication solution. To be executed by a cronjob
View ipfs_sync_local.sh
#!/bin/bash
# Checks the locally pinned files against a previously persisted.
# If something changed, the updated list file is pushed to a given server (needs to be ssh accessible without password).
# Finally, the new list is persisted locally.
# Note that the local ipfs daemon needs to be running in order for the server to be able to fetch.
# The local ipfs config may be restricted to connect only to that server (add as only Bootstrap node and disable discovery).
set -e
set -u
@d10r
d10r / ipfs_sync_remote.sh
Last active Mar 30, 2017
Remote part of a simple ipfs replication solution. To be executed by a cronjob
View ipfs_sync_remote.sh
#/bin/bash
set -e
set -u
# that's where my ipfs executable currently lives
PATH=$PATH:/usr/local/bin/
LOCAL_PINS_FILE="$HOME/.ipfs/pinned.list"
View github_fork.sh
#!/bin/bash
# adjusts remotes of local repo if forking after clone (move origin -> upstream, add fork as origin)
set -u
set -e
die () {
echo >&2 "### $@"
exit 1