Skip to content

Instantly share code, notes, and snippets.

View kwunyeung's full-sized avatar
💛
When we are all yellow...

Kwun Yeung kwunyeung

💛
When we are all yellow...
View GitHub Profile
@kwunyeung
kwunyeung / install.sh
Last active October 20, 2020 10:50
Install services for Big Dipper
### Install Passenger
# Install our PGP key and add HTTPS support for APT
sudo apt-get install -y dirmngr gnupg
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7
sudo apt-get install -y apt-transport-https ca-certificates
# Add our APT repository
sudo sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger focal main > /etc/apt/sources.list.d/passenger.list'
sudo apt-get update
{"app_hash":"","app_state":{"accounts":[{"account_number":"118","address":"desmos1qpg3hsvmlu8pz866tspn64nmat6sgrwa982q6m","coins":[{"amount":"10000000","denom":"udaric"}],"delegated_free":[],"delegated_vesting":[],"end_time":"0","module_name":"","module_permissions":null,"original_vesting":[],"sequence_number":"3","start_time":"0"},{"account_number":"1","address":"desmos1qrnfe2emyc5p8dvg3luaeta973lvdklk5auhk6","coins":[{"amount":"990000000000","denom":"udaric"}],"delegated_free":[],"delegated_vesting":[],"end_time":"0","module_name":"","module_permissions":null,"original_vesting":[],"sequence_number":"2","start_time":"0"},{"account_number":"107","address":"desmos1q8df8fp3tpx6gxjlhsc0vzqaxet6wa2pmxrhzh","coins":[{"amount":"10000000","denom":"udaric"}],"delegated_free":[],"delegated_vesting":[],"end_time":"0","module_name":"","module_permissions":null,"original_vesting":[],"sequence_number":"2","start_time":"0"},{"account_number":"117","address":"desmos1qvsf9ss2ukn8rkewxeps0x7399z72wttwlmmsx","coins":[{"amount"
{"claims":[{"timestamp":1579115903,"type":"ACCOUNT","address":"0x0474FE22B801e5684AC54F65c2C5C34352C1e479"}],"meta":{"address":"0x307501123022F0E78A523FFfc40788Ee2381Ac22","signature":"0x0e4e2b8f78143e94f70bb38e185353c1adabd6c11653fa20c28995dba28a755c754c2e5225e354a8c8a6fc9167a8bbb17c78ef8e987f15b538a5a944f22874ad1c"}}
{"claims":[{"url":"http://35.239.128.95:80","timestamp":1579115716,"type":"ATTESTATION_SERVICE_URL"},{"timestamp":1579115730,"type":"ACCOUNT","address":"0x307501123022F0E78A523FFfc40788Ee2381Ac22"}],"meta":{"address":"0x0474FE22B801e5684AC54F65c2C5C34352C1e479","signature":"0x280dcc33d3c64e93514552b071d13b69d44fdccac4397079a48a7ff6710f7f7032f0a8903161525c7dd9ae3236bbfe9510bef5bb56dd09b0a0419794f1df891d1b"}}

CELO_VALIDATOR_GROUP_ADDRESS=307501123022f0e78a523fffc40788ee2381ac22 CELO_VALIDATOR_ADDRESS=0474fe22b801e5684ac54f65c2c5c34352c1e479

@kwunyeung
kwunyeung / polkadot.service
Created August 24, 2019 22:12
systemd unit file for polkadot
[Unit]
Description=Polkadot Node
After=network-online.target
[Service]
User={user running polkadot}
ExecStart={path to polkadot bin}/polkadot --chain alex --validator --name {validator name} --key {validator key}
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
@kwunyeung
kwunyeung / kava_install.sh
Created June 27, 2019 13:19
Install Kava node
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables
@kwunyeung
kwunyeung / iris_upgrade.sh
Created May 31, 2019 06:15
Upgrade IRISnet
#!/bin/bash
# Upgrade IRIS and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
@kwunyeung
kwunyeung / iris_install.sh
Last active April 27, 2019 15:48
Install IRIShub
#!/bin/bash
# Upgrade the system and install go
sudo apt update
sudo apt upgrade -y
sudo apt install gcc git make -y
sudo snap install --classic go
sudo mkdir -p /opt/go/bin
# Export environment variables
@kwunyeung
kwunyeung / addrbook.json
Created December 12, 2018 07:03
address book of genki-2000
{
"key": "396c2b6ffff9f409da13997b",
"addrs": [
{
"addr": {
"id": "4173a31e168b139989d87d2a3e6462ba138c6e74",
"ip": "85.214.84.224",
"port": 26656
},
"src": {