Skip to content

Instantly share code, notes, and snippets.

View iv7dev's full-sized avatar
🎯
Focusing

Iv7dev iv7dev

🎯
Focusing
View GitHub Profile
@iv7dev
iv7dev / tokenPriceApi.js
Created November 24, 2022 15:18 — forked from Linch1/tokenPriceApi.js
Retrive the price of any bsc token from it's address without using external service like poocoin/dextools
let pancakeSwapAbi = [
{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"}],"name":"getAmountsOut","outputs":[{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"stateMutability":"view","type":"function"},
];
let tokenAbi = [
{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},
];
const Web3 = require('web3');
/*
Required Node.js
@iv7dev
iv7dev / Install_PHP_on_Arch_Linux.md
Created May 9, 2024 21:12 — forked from michaelbutler/Install_PHP_on_Arch_Manjaro.md
Install multiple PHP versions on Arch Linux

Install Any PHP on Arch / Manjaro

Through the AUR it is possible to install older and newer PHP versions, simultaneously on the same system. I often had trouble installing using pacman and pamac so here's what I did:

mkdir -p $HOME/bin
mkdir ~/src
cd ~/src
git clone https://aur.archlinux.org/php81.git
cd php81