Skip to content

Instantly share code, notes, and snippets.

💛
When we are all yellow...

Kwun Yeung kwunyeung

💛
When we are all yellow...
View GitHub Profile
View Coordinates.php
<?php
/**
* Coordinates.php
* An utility for converting HK80 to WGS84 coordinates
*
* Copyright (C) 2010, 2013 Kelvin Wong
* Licensed under the MIT License (http://opensource.org/licenses/MIT)
*
* Note: For the glossaries and conventions for coordinates convertion, please refer to
* the website of Geodetic Survey of Hong Kong.
View SearchBar.jsx
toggleSearchInput = e => {
e.preventDefault();
this.setState({isShown = !this.state.isShown});
}
render(){
return
<div>
(this.state.isShown?
<SearchInput />:''}
@kwunyeung
kwunyeung / gaiad.service
Last active Jun 6, 2019
systemd unit file of Cosmos gaia testnet
View gaiad.service
[Unit]
Description=Cosmos Gaia Node
After=network-online.target
[Service]
User=gaiad
ExecStart=/opt/go/bin/gaiad start --home=/opt/gaiad/
Restart=always
RestartSec=3
LimitNOFILE=4096
@kwunyeung
kwunyeung / gaia_install.sh
Last active May 5, 2020
bash script for installing go and gaia cosmoshub-1 on Ubuntu
View gaia_install.sh
#!/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 / gaia_upgrade.sh
Last active May 5, 2020
script to upgrade the Cosmos gaia testnet
View gaia_upgrade.sh
#!/bin/bash
# Upgrade Cosmos SDK and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
View keybase.md

Keybase proof

I hereby claim:

  • I am kwunyeung on github.
  • I am kwunyeung (https://keybase.io/kwunyeung) on keybase.
  • I have a public key ASBKle1_ImJusPpwHeOAlNI6BMlKmtb2b-UB_JAZJedtego

To claim this, I am signing this object:

@kwunyeung
kwunyeung / addrbook.json
Created Dec 12, 2018
address book of genki-2000
View addrbook.json
{
"key": "396c2b6ffff9f409da13997b",
"addrs": [
{
"addr": {
"id": "4173a31e168b139989d87d2a3e6462ba138c6e74",
"ip": "85.214.84.224",
"port": 26656
},
"src": {
@kwunyeung
kwunyeung / iris_install.sh
Last active Apr 27, 2019
Install IRIShub
View iris_install.sh
#!/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
View iris_upgrade.sh
#!/bin/bash
# Upgrade IRIS and restart gaiad
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-t|--tag)
View kava_install.sh
#!/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
You can’t perform that action at this time.