Skip to content

Instantly share code, notes, and snippets.

@buzzkillb
buzzkillb / getAnchorBalance.js
Created Apr 30, 2022 — forked from tstachl/getAnchorBalance.js
Google App Script to get Anchor Protocol Earn balance for a terra wallet address.
View getAnchorBalance.js
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`
})
View tomb-tshare.js
//Use Latest NodeJS
//npm install web3
const Web3 = require('web3');
var web3 = new Web3('https://rpc.ftm.tools');
/*let vaultAddress = [ "<ADDRESS1>",
"<ADDRESS2>"
];
*/
View stopdenariusDdaemon.sh
echo "kill -9 denariusd"
ps -ef | grep 'denariusd' | grep -v grep | awk '{print $2}' | xargs -r kill -9
echo "sleep 2 seconds"
sleep 2
@buzzkillb
buzzkillb / VMware Workstation Pro 16 full license keys
Created Nov 26, 2021 — forked from williamgh2019/VMware Workstation Pro 16 full license keys
Free VMware Workstation Pro 16 to 16.1.1 full license keys with tested (updated with latest verion)
View VMware Workstation Pro 16 full license keys
Install new VMware Workstation Pro 16 or upgrade from 15 by download below as trial version first:
https://www.vmware.com/products/workstation-pro/workstation-pro-evaluation.html
After install or upgrade just insert the key and enjoy.
*No virus
*No spam just license key
ZF3R0-FHED2-M80TY-8QYGC-NPKYF --->> This key is 100% worked for me up to VM 16.1.1 build-17801498
YF390-0HF8P-M81RQ-2DXQE-M2UT6
View gist:11521d0e7ca53d6a88d6034a73e6b019
const Web3 = require('web3');
const abiDecoder = require('abi-decoder');
const InputDataDecoder = require('ethereum-input-data-decoder');
const ABI = [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"inte
@buzzkillb
buzzkillb / installnode.txt
Last active Aug 13, 2022
install nodejs ubuntu ez
View installnode.txt
wget https://nodejs.org/dist/v16.16.0/node-v16.16.0-linux-x64.tar.xz
sudo apt-get install xz-utils
sudo tar -C /usr/local --strip-components 1 -xJf node-v16.16.0-linux-x64.tar.xz
View gist:0dd63ca0fd9c13d001a637e7ee0291ad
const Discord = require("discord.js");
const config = require("./config.json");
//global.theTime = 0;
const client = new Discord.Client();
const prefix = "!";
client.on('ready', () => {
View gist:54ea91fe8db2d93acf163dcd41dded19
ps -ef | grep 'denariusd' | grep -v grep | awk '{print $2}' | xargs -r kill -9
View bannedlist.txt
denarius.daemon setban IP add 999999999999999999999
denarius.daemon setban 76.10.217.138 add 999999999999999999999
denarius.daemon setban 98.144.72.102 add 999999999999999999999
denarius.daemon setban 124.180.21.125 add 999999999999999999999
View banwall_addnode.sh
#########
# denariusd daemon addnode ban with port, or switch denariusd to denarius.daemon for snap
#########
#!/bin/bash
#. config.conf
#. rpc.sh
wallet_ip=$(denariusd getpeerinfo | jq -r '.[].addr' | awk '!seen[$0]++')
while IFS= read -r