Skip to content

Instantly share code, notes, and snippets.

View Aziz87's full-sized avatar
💾
Loading saved file...

Aziz Aziz87

💾
Loading saved file...
View GitHub Profile
@Aziz87
Aziz87 / NVME
Created November 26, 2021 17:09
1.detach
dmesg -c
nvme detach-ns /dev/nvme0 -n 1 -c 0
nvme delete-ns /dev/nvme0 -n 1
nvme reset /dev/nvme0
2.创建
**#1953125000 = 1,000,000,000,000/512 = 1,953,125,000 (1TB)**
nvme create-ns /dev/nvme0 -s 976562500 -c 976562500 -f 0 -d 0 -m 0
nvme attach-ns /dev/nvme0 -n 1 -c 0
@Aziz87
Aziz87 / smart contracts multicall
Last active October 9, 2021 15:16
smart contracts multicall, eth multicall, trx multicall, binance chain multicall
BSC 0x99d364e98cdc3c9fa9dadb14756061a29c2eaddd
ETH 0xb1F8e55c7f64D203C1400B9D8555d050F94aDF39
TRX TYPACdASdAe4ZjcACwHscmqy6KCssP2jDt
@Aziz87
Aziz87 / wrapUnwrap.js
Created July 26, 2021 05:50 — forked from korrio/wrapUnwrap.js
wrapUnwrap.js
export default function useWrapCallback(
inputCurrency: Currency | undefined,
outputCurrency: Currency | undefined,
typedValue: string | undefined
): { wrapType: WrapType; execute?: undefined | (() => Promise<void>); inputError?: string } {
const { chainId, account } = useActiveWeb3React()
const wethContract = useWETHContract()
const balance = useCurrencyBalance(account ?? undefined, inputCurrency)
// we can always parse the amount typed as the input currency, since wrapping is 1:1
const inputAmount = useMemo(() => tryParseAmount(typedValue, inputCurrency), [inputCurrency, typedValue])
@Aziz87
Aziz87 / BulkSender.sol
Created July 26, 2021 05:49 — forked from korrio/BulkSender.sol
BulkSender.sol
// File: contracts/EternalStorage.sol
// Initial code from Roman Storm Multi Sender
// To Use this Dapp: https://bulktokensending.github.io/bulktokensending
pragma solidity ^0.6.6;
import 'VonderToken.sol';
/**
@Aziz87
Aziz87 / pancake.js
Created July 26, 2021 05:48 — forked from korrio/pancake.js
pancake.js
const ethers = require(`ethers`)
const { ChainId, Token, TokenAmount, Fetcher, Pair, Route, Trade, TradeType, Percent } =
require(`@pancakeswap-libs/sdk`);
const Web3 = require(`web3`);
const { JsonRpcProvider } = require("@ethersproject/providers");
require(“dotenv”).config()
const provider = new JsonRpcProvider(`https://bsc-dataseed1.binance.org/`);
const web3 = new Web3(`wss://apis.ankr.com/wss/c40792ffe3514537be9fb4109b32d257/946dd909d324e5a6caa2b72ba75c5799/binance/full/main`);
@Aziz87
Aziz87 / HexAddress.js
Last active November 24, 2019 10:09
Convert hex to base58 for crypto addresses ( TRON, ETHEREUM, etc ...)
/*** Usage
const HexAddress = require("./utils/HexAddress");
let base58 = HexAddress.toBase58(res.result.contributor);
*/
const jsSHA = require("jssha");
const BASE = 58;
const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
@Aziz87
Aziz87 / trx.md
Last active November 13, 2019 12:31

SHASTA

  • TLVpEncW9Bw6xv8U5AdN9m7Dc8zqv2y9CY
Bytecode 6080604052348015600f57600080fd5b5060a28061001e6000396000f3fe608060405260043610601c5760003560e01c806392d282c1146021575b600080fd5b60276029565b005b60003411603557600080fd5b60408051348152905133917f510ffb4dcab972ae9d2007a58e13f1b0881776d23cd8f5cc32f8c5be2dbf70d2919081900360200190a256fea265627a7a723158202b32e23daa8c1a35f32f854a7ae1c541a40fd11e6dc1d8007a6baf3e8b7b911464736f6c634300050b0032