Skip to content

Instantly share code, notes, and snippets.

这个文档需搭配教程视频使用 YouTubebilibili

  1. 准备一个新的可泄露的以太坊测试地址和私钥

    0xA862BB0Df33D817B235dFfCB747B48F869405C7e

    7a8fc187cd2cb1df17db8b14acc04fb405db3e71948e351e9c9ab471da125aeb

  2. 获取一些测试网(Rinkeby, Kovan, Goerli)的 ETH,只用来支付 gas 费不需要太多。

Keybase proof

I hereby claim:

  • I am bynil on github.
  • I am gexiao (https://keybase.io/gexiao) on keybase.
  • I have a public key ASAqzlQQfduyEmQAO9FEd_JEmSYJ2eSZTuTIJRErzpTryAo

To claim this, I am signing this object:

@bynil
bynil / jwtRS256.sh
Created January 2, 2019 06:34 — forked from ygotthilf/jwtRS256.sh
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
https://press.one/p/address/v?s=0a0917dce434ccc71a48b4af0abad146ba5fd2768e884345c814a8c2e90cd69bd8fa797312179b276867c7f73cece2d23ecca464b26fa9ccf0a704576822facf1&h=fa1cd1e299bc9e795f3cca171c166374f863de2b268385300b8b5fc2aacae2ad&a=64a8cf6ac056cc463b28f2fb60fa6a78be49cde2&f=P1&v=2
# Binaries for programs and plugins
*.exe
*.dll
*.so
*.dylib
# Test binary, build with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
docker images | tail --lines=+2 | while read LINE ; do
REPO=`echo ${LINE} | awk '{print $1}'`
TAG=`echo ${LINE} | awk '{print $2}'`
ID=`echo ${LINE} | awk '{print $3}'`
# Replace '/' characters in REPO with '_'
FILENAME=${REPO//\//_}__${TAG}__${ID}.tar
IMAGE=${REPO}:${TAG}

Keybase proof

I hereby claim:

  • I am bynil on github.
  • I am gexiao (https://keybase.io/gexiao) on keybase.
  • I have a public key ASBKLaQDMvpXadYdTeH7THrd_29yg7Mlei4gi5YBn8zyGQo

To claim this, I am signing this object:

0483cc0c19c0b2dfe2063ff80da2161eb4d6e74e46dbd18619aebe86e0b165667b217ed7a6f725a526f55ea3e55282b10465086164e6156006339f256e2e30e4cf;sun1534
@bynil
bynil / config-git-proxy.txt
Last active January 23, 2024 12:37
Use git over socks5 proxy
Port: 1080
1. Create a file /YOUR PATH/gitproxy.sh with content:
#!/bin/sh
nc -X 5 -x 127.0.0.1:1080 "$@"
2. Edit your ~/.gitconfig
# For git://
@bynil
bynil / xcode-build-bump.sh
Created March 23, 2017 07:41
Xcode auto-increment build number
#!/bin/bash
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "$INFOPLIST_FILE")
buildNumber=$(($buildNumber + 1))
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$INFOPLIST_FILE"