This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/ecdsa" | |
"crypto/subtle" | |
"encoding/base64" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import re | |
class NRIC: | |
def __init__(self, value=None): | |
if isinstance(value, NRIC): | |
self.nric = value.nric | |
elif isinstance(value, str): | |
self.nric = value.strip().upper() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -o allexport | |
source conf-file | |
set +o allexport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BINANCE:BTCUSDT,BINANCE:ETHUSDT,BINANCE:BNBUSDT,BINANCE:NEOUSDT,BINANCE:LTCUSDT,BINANCE:QTUMUSDT,BINANCE:ADAUSDT,BINANCE:XRPUSDT,BINANCE:EOSUSDT,BINANCE:IOTAUSDT,BINANCE:XLMUSDT,BINANCE:ONTUSDT,BINANCE:TRXUSDT,BINANCE:ETCUSDT,BINANCE:ICXUSDT,BINANCE:NULSUSDT,BINANCE:VETUSDT,BINANCE:LINKUSDT,BINANCE:WAVESUSDT,BINANCE:ONGUSDT,BINANCE:HOTUSDT,BINANCE:ZILUSDT,BINANCE:ZRXUSDT,BINANCE:FETUSDT,BINANCE:BATUSDT,BINANCE:XMRUSDT,BINANCE:ZECUSDT,BINANCE:IOSTUSDT,BINANCE:CELRUSDT,BINANCE:DASHUSDT,BINANCE:OMGUSDT,BINANCE:THETAUSDT,BINANCE:ENJUSDT,BINANCE:MATICUSDT,BINANCE:ATOMUSDT,BINANCE:TFUELUSDT,BINANCE:ONEUSDT,BINANCE:FTMUSDT,BINANCE:ALGOUSDT,BINANCE:DOGEUSDT,BINANCE:DUSKUSDT,BINANCE:ANKRUSDT,BINANCE:WINUSDT,BINANCE:COSUSDT,BINANCE:COCOSUSDT,BINANCE:MTLUSDT,BINANCE:TOMOUSDT,BINANCE:PERLUSDT,BINANCE:DENTUSDT,BINANCE:DOCKUSDT,BINANCE:WANUSDT,BINANCE:FUNUSDT,BINANCE:CHZUSDT,BINANCE:BANDUSDT,BINANCE:BUSDUSDT,BINANCE:XTZUSDT,BINANCE:RENUSDT,BINANCE:RVNUSDT,BINANCE:HBARUSDT,BINANCE:NKNUSDT,BINANCE:STXUSDT,BINANCE:KAVAUSDT,BI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.4" | |
volumes: | |
data: | |
services: | |
rcon: | |
image: forewing/webrcon-server | |
ports: | |
- 8000:8000 | |
restart: unless-stopped | |
command: "-conf /app/config.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var RegexNRIC = regexp.MustCompile(`^(S|T|F|G)\d{7}[A-Z]$`) | |
func ValidateNRIC(s string) bool { | |
nric := strings.ToUpper(s) | |
if !RegexNRIC.Match([]byte(nric)) { | |
return false | |
} | |
weight := 0 | |
n, _ := strconv.Atoi(string(nric[1])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
gsrpc "github.com/centrifuge/go-substrate-rpc-client" | |
"github.com/centrifuge/go-substrate-rpc-client/config" | |
"github.com/centrifuge/go-substrate-rpc-client/signature" | |
"github.com/centrifuge/go-substrate-rpc-client/types" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"regexp" | |
) | |
var reResVars = regexp.MustCompile(`\\\{[^{}]+\\\}`) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf /usr/local/go/ | |
wget https://golang.org/dl/go1.13.12.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.13.12.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"sync" |
NewerOlder