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
// Copied by https://gist.github.com/dotcypress/8fd12d6e886cd74bba8f1aa8dbd346aa, | |
// thanks for improving code style | |
const { createHash, createHmac } = require('crypto'); | |
const TOKEN = "ABC:12345..."; | |
// I prefer get the secret's hash once but check the gist linked | |
// on line 1 if you prefer passing the bot token as a param | |
const secret = createHash('sha256') | |
.update(TOKEN) |
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
{ | |
"git.autofetch": true, | |
"editor.fontFamily": "Operator Mono Medium", | |
"terminal.integrated.fontFamily": "Hack", | |
"editor.fontSize": 16, | |
"editor.fontLigatures": true, | |
"editor.renderWhitespace": "all", | |
"editor.tabSize": 2, | |
"editor.formatOnPaste": true, |
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
# Make Google Chrome automatically select a self signed certificate | |
# Linux: create /etc/opt/chrome/policies/managed/policies.json with the following content | |
{ | |
"AutoSelectCertificateForUrls": [ | |
"{\"pattern\":\"https://[.*]zerynth.com\",\"filter\":{}}" | |
] | |
} |
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
{ | |
"title": "CapsLock -> Cmd/Ctrl based on current app", | |
"rules": [ | |
{ | |
"description": "CapsLock -> Cmd/Ctrl based on current app", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
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 { makeAuthInfoBytes, makeSignDoc } from "@cosmjs/proto-signing"; | |
import { toBech32 } from "@cosmjs/encoding"; | |
import { Int53 } from "@cosmjs/math"; | |
import { ethers } from "ethers"; | |
import { ethermint, cosmos, google, warden, getSigningWardenClientOptions } from "@wardenprotocol/wardenjs"; | |
const { Any } = google.protobuf; | |
const { TxBody, TxRaw, SignDoc } = cosmos.tx.v1beta1; | |
const { MsgNewSpace } = warden.warden.v1beta3; | |
const PubKey = ethermint.crypto.v1.ethsecp256k1.PubKey; |
OlderNewer