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
ARRAYFORMULA(JOIN(CHAR(10),SPLIT(IMPORTDATA("https://google.com")&CHAR(10),CHAR(10)))) |
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
curl -sSL github.com/assafmo.keys >> ~/.ssh/authorized_keys |
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
#!/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 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 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 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 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 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 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 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
# Put in /etc/systemd/system/script-name.service | |
# Then run `sudo systemctl enable script-name` | |
[Unit] | |
Description=bla bla | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/mount -o remount,exec /dev | |
RemainAfterExit=true |