Skip to content

Instantly share code, notes, and snippets.

View minhhieuuet's full-sized avatar
🌴
On vacation

minhhieuuet

🌴
On vacation
  • Đại học Bôn Ba
  • ...loading [■■■■■■■■■□] 99%
View GitHub Profile
@minhhieuuet
minhhieuuet / id_rsa.pub
Created November 13, 2024 04:49
public-key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjj2r/e8sgck4H++xhFy6aNYQBulSdxLo6yxQLOdsEcORvgozcZY5BgeBHbDI82tUZMcdU6hQ2Gxw0vo05Za33BMdoKzML92yvQeYF7ew6n7sJ8a68p3CLP7t/2Ka6qPyg5h/PG3/rRaIxnzpOPz23egS7efDI8k/rOxN0UMm/XkLc17lBxoxQi6VMPgLu4rKGVnrfoe93xdLRhdmrOxe7GxBNojEfH2HZp1KfynJIWKmqMBHq/7Ai7JoSOaYu33PRcU0uIuovB/nxEwTuipFdaXDSmZzvrsOMtmQHeCTZjfpMIgz1olfslqTYc9yNpFtT16OGbviwzauBnK6gzJbr mickey@apples-Air.net.fpt
@minhhieuuet
minhhieuuet / swap.ts
Last active October 15, 2024 03:59
LIQUIDSWAP
import {
Aptos,
AptosConfig,
Network,
Account,
Ed25519PrivateKey,
AnyRawTransaction,
UserTransactionResponse,
} from "@aptos-labs/ts-sdk";
[{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"previousAdmin","type":"address"},{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"AdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"beacon","type":"address"}],"name":"BeaconUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"in
@minhhieuuet
minhhieuuet / event_watcher.ts
Last active August 1, 2023 03:25
Solana Event Watcher
import { Connection } from "@solana/web3.js";
import * as anchor from "@project-serum/anchor";
// The IDL for your program (TicketBought event is defined here)
const idl = {
version: "0.1.0",
name: "skool",
instructions: [],
accounts: [],
events: [
{
@minhhieuuet
minhhieuuet / metadataReload.js
Last active June 8, 2023 10:11
Pupeteer Refresh metadata Opensea
var puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())
const {executablePath} = require('puppeteer')
puppeteer.launch({ headless: false, executablePath: executablePath() }).then(async browser => {
const page = await browser.newPage();
await page.setUserAgent('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36');
await page.goto('https://testnets.opensea.io/assets/mumbai/0xb5814080da0d7b9b263f31370b4fea97338cfab5/512');
// Set screen size
@minhhieuuet
minhhieuuet / contracts...DragonFarm...Context.sol
Created August 6, 2021 04:51
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.4+commit.c7e474f2.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application