This file contains hidden or 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
| go build -ldflags '-linkmode external -extldflags "-static"' |
This file contains hidden or 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
| const forge = require("node-forge"); | |
| let key = forge.util.createBuffer(new Uint8Array(new Array(32).fill(0x7)).buffer); | |
| let iv = forge.util.createBuffer(new Uint8Array(new Array(12).fill(0x0)).buffer); | |
| const input = forge.util.createBuffer(); | |
| input.putString("banana"); | |
| var cipher = forge.cipher.createCipher("AES-GCM", key); | |
| cipher.start({ iv: iv }); |
This file contains hidden or 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
| banana.com | |
| header { | |
| Access-Control-Allow-Origin * | |
| Access-Control-Allow-Methods * | |
| Access-Control-Allow-Headers * | |
| } | |
| @corspreflight { | |
| method OPTIONS |
This file contains hidden or 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
| seq 2 250000 | | |
| parallel --bar 'secretcli q block {} | jq -r ".block.last_commit.signatures[].validator_address | [{}-1,.] | @csv"' |
This file contains hidden or 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
| #!/usr/bin/env jq | |
| .chain_id = "secret-2" | | |
| .genesis_time = (now | todate) | | |
| .consensus_params.block.max_gas = "10000000" | | |
| # Initialize x/register | |
| .app_state.register = { |
This file contains hidden or 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
| #!/bin/bash | |
| # Install | |
| sudo apt install -y tor | |
| # Use | |
| curl --proxy socks5h://localhost:9050 https://check.torproject.org |
This file contains hidden or 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
| #!/bin/bash | |
| NETWORK_BLOCK_NUMBER=$( | |
| curl -s http://client.secretnodes.org:26657/status | jq '.result.sync_info.latest_block_height | tonumber' | |
| ) | |
| LOCAL_BLOCK_NUMBER=$(secretcli status | jq '.sync_info.latest_block_height | tonumber') | |
| BLOCKS_LEFT_TO_SYNC=$(jq -n "${NETWORK_BLOCK_NUMBER} - ${LOCAL_BLOCK_NUMBER}") | |
| sudo journalctl -u secret-node -f | | |
| grep -Po 'height=\d+ txs=' | |
This file contains hidden or 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
| curl -sSL github.com/assafmo.keys >> ~/.ssh/authorized_keys |
This file contains hidden or 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
| ARRAYFORMULA(JOIN(CHAR(10),SPLIT(IMPORTDATA("https://google.com")&CHAR(10),CHAR(10)))) |
This file contains hidden or 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
| sudo wget -O /bin/secretcli https://github.com/enigmampc/SecretNetwork/releases/download/v1.0.4/secretcli-linux-amd64 | |
| sudo chmod +x /bin/secretcli | |
| mkdir -p ~/.secretcli/config | |
| echo 'chain-id = "holodeck-2" | |
| indent = true | |
| keyring-backend = "test" | |
| node = "https://chainofsecrets.secrettestnet.io:26667" | |
| output = "json" |