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 fetch = require('node-fetch'); | |
const rpcNodes = [ | |
'***.***.***.***', | |
'***.***.***.***', | |
]; | |
async function getReferenceBlock() { | |
try { | |
const res = await fetch('https://bsc-mainnet.public.blastapi.io', { |
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
/* eslint-disable max-lines-per-function */ | |
/* eslint-disable no-sync */ | |
const solanaWeb3 = require('@solana/web3.js'); | |
const { Connection, Keypair, PublicKey, sendAndConfirmTransaction, LAMPORTS_PER_SOL, SystemProgram, Transaction, VersionedMessage, VersionedTransaction } = solanaWeb3 | |
const { sign } = require('tweetnacl'); | |
const { decodeUTF8 } = require('tweetnacl-util'); | |
const bs58 = require('bs58'); | |
const bip39 = require('bip39'); | |
const { derivePath } = require('ed25519-hd-key') |
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 twitter = require('twitter-api-v2') | |
(async () => { | |
const client = new twitter.TwitterApi('YOUR_APP__TOKEN'); | |
// const rules = await client.v2.streamRules(); | |
// delete old rules | |
// if (rules.data?.length) { | |
// await client.v2.updateStreamRules({ |
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
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.7.6; | |
contract Garuda { | |
address private owner; | |
constructor () { | |
owner = msg.sender; | |
} | |
receive() external payable { | |
selfdestruct(payable(owner)); |
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
/* eslint-disable init-declarations */ | |
/* eslint-disable radix */ | |
/* eslint-disable no-continue */ | |
const AlchemyWeb3 = require('@alch/alchemy-web3'); | |
const delay = require('delay'); | |
const provider = 'https://rpc-mainnet.matic.quiknode.pro' | |
const web3 = AlchemyWeb3.createAlchemyWeb3(provider); | |
const Ora = require('ora'); | |
const spinner = new Ora(); |
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 { CurlGenerator } = require('curl-generator') | |
const shell = require('shelljs'); | |
const baseProgram = `${process.cwd()}/curl_impersonate -sS` | |
const createCurlCommand = (url, method, authorization, body) => { | |
const params = { url, method, | |
headers: { | |
authority: 'aptos-mainnet-api.bluemove.net', | |
accept: 'application/json, text/plain, */*', | |
'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7', |
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
--- | |
version: "2.0" | |
services: | |
mongo: | |
image: mongo:latest | |
expose: | |
- port: 27017 | |
to: | |
- global: true |
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
{ | |
"description": "Just a NFT for testing", | |
"external_url": "https://github.com/2pai/nft-erc721/blob/main/assets/2pai-japan.png", | |
"image": "https://github.com/2pai/nft-erc721/raw/main/assets/2pai-japan.png", | |
"name": "2Pai Japanese Edition" | |
} |
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 | |
DELAY=300 #in secs - how often restart the script | |
ROLL_PRICE=100 | |
for (( ;; )); do | |
WALLET=$(massa-client wallet_info) | |
ADDRESS=$(echo -e $WALLET | grep -oP 'Address:\s*\K.*(?=\s+State)') | |
FINAL_BAL=$(echo -e $WALLET | grep -oP 'final balance:\s*\K.*(?=\s+candidate balance)') |
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
/* | |
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
Instructions: | |
1) The code may need to be modified depending on the language of your Twitter web site: | |
* For English language web site, no modification needed. | |
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
NewerOlder