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 bash | |
# Everything needs to be run as root | |
if [ $(id -u) -ne 0 ]; then | |
printf "Script must be run as root.\n" | |
exit 1 | |
fi | |
OS=$(lsb_release -si) | |
VERSION=$(lsb_release -sc) |
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
function getAnchorBalance(addr) { | |
const contract = 'terra1hzh9vpxhsk8253se0vv5jj6etdvxu3nv8z07zu'; | |
const aUstBalance = JSON.parse(JSON.parse(UrlFetchApp.fetch("https://mantle.terra.dev/?cw20--balance=" + contract, { | |
method: 'post', | |
headers: { 'Accept-Encoding': 'gzip, deflate, br', 'Content-Type': 'application/json', 'Accept': 'application/json' }, | |
payload: JSON.stringify({ | |
operationName: null, | |
variables: {}, | |
query: `{\n ${contract}: WasmContractsContractAddressStore(ContractAddress: \"${contract}\", QueryMsg: \"{\\\"balance\\\":{\\\"address\\\":\\\"${addr}\\\"}}\") {\n Height\n Result\n __typename\n }\n}\n` | |
}) |
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
#!/run/current-system/sw/bin/sh | |
nix-env -iA nixos.git nixos.gnupg nixos.pinentry-curses | |
gpg --receive-keys DE749C31D060A160 | |
echo "$( \ | |
gpg --list-keys \ | |
| grep DE749C31D060A160 -A 1 \ | |
| head -1 | tr -d '[:space:]' \ | |
):6:" | gpg --import-ownertrust; |
OlderNewer