基础环境安装
sudo apt update -y &&sudo apt upgrade -y
sudo apt install curl tar wget lz4 jq build-essential git make -y
go 安装
| /** | |
| * 配置中的规则"config.rules"是一个数组,通过新旧数组合并来添加 | |
| * @param prependRule 添加的数组 | |
| */ | |
| const prependRule = [ | |
| "DST-PORT,22,DIRECT", | |
| "DOMAIN-SUFFIX,oray.com,DIRECT", | |
| "DOMAIN-SUFFIX,oray.net,DIRECT", | |
| "DOMAIN-SUFFIX,sunlogin.net,DIRECT" | |
| ]; |
| import { makeCosmoshubPath, rawSecp256k1PubkeyToRawAddress } from "@cosmjs/amino"; | |
| import { Slip10, Slip10Curve, Secp256k1 } from "@cosmjs/crypto"; | |
| import { toBech32 } from "@cosmjs/encoding"; | |
| import bip39 from 'bip39'; | |
| //只支持普通prefix 类型 如 cosmos | |
| //evmos injective dym 等有eth地址的 无法用此方法 | |
| //`m/44'/118'/0'/0/a` | |
| const subPath = 0 |
基础环境安装
sudo apt update -y &&sudo apt upgrade -y
sudo apt install curl tar wget lz4 jq build-essential git make -y
go 安装
| Hey, I'm bolabola-7332446 and I have contributed to the nocturne-v1 MPC Phase2 Trusted Setup ceremony. | |
| The following are my contribution signatures: | |
| Circuit # 1 (canonaddrsigcheck) | |
| Contributor # 49 | |
| Contribution Hash: ba47ff58 157b3a3f c5211f5c be229f50 | |
| 204b2df1 dd161ee3 e3cf7a9f 4fac4f1c | |
| de0a38b5 8a6439cf 9b6c1b02 4f8e2dd4 | |
| 69e782b4 2e9bf467 014892c9 8dc1f5a7 |
| # -*- coding: utf-8 -*- | |
| """ | |
| @Time : 2021/10/3 19:18 | |
| @Auth : d1rrick DanielGao.eth | |
| @File :autochat.py | |
| @IDE :vscode | |
| """ | |
| import requests | |
| import json |
| // MP Hooks © 2016 Mitchell Pell | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| namespace mp.hooks{ | |
| /** | |
| * Converts an RGB color value to HSL. Conversion formula | |
| * adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
| * Assumes r, g, and b are contained in the set [0, 255] and | |
| * returns h, s, and l in the set [0, 1]. | |
| * | |
| * @param Number r The red color value | |
| * @param Number g The green color value | |
| * @param Number b The blue color value | |
| * @return Array The HSL representation |
| #ifndef __MATRIX_INCLUDED__ | |
| #define __MATRIX_INCLUDED__ | |
| #define IDENTITY_MATRIX float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1) | |
| float4x4 inverse(float4x4 m) { | |
| float n11 = m[0][0], n12 = m[1][0], n13 = m[2][0], n14 = m[3][0]; | |
| float n21 = m[0][1], n22 = m[1][1], n23 = m[2][1], n24 = m[3][1]; | |
| float n31 = m[0][2], n32 = m[1][2], n33 = m[2][2], n34 = m[3][2]; | |
| float n41 = m[0][3], n42 = m[1][3], n43 = m[2][3], n44 = m[3][3]; |