Skip to content

Instantly share code, notes, and snippets.

View bitgamma's full-sized avatar

Michele Balistreri bitgamma

View GitHub Profile
@bitgamma
bitgamma / Stubs.sol
Last active November 27, 2025 10:15
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
struct PermitDetails {
address token;
uint160 amount;
uint48 expiration;
uint48 nonce;
}
import argparse
from keycard.keycard import KeyCard
from keycard.constants import StorageSlot
def get_pin():
try:
import tkinter.simpledialog
except ImportError:
raise "Tkinter enabled version of Python required"
return tkinter.simpledialog.askstring("Keycard PIN", "Enter PIN:", show='*')
@bitgamma
bitgamma / np21.ahk
Created August 29, 2022 17:54
AutoHotKey Launcher for Neko Project 21/w
; This script is meant to be used with Neko Project 21/w (64-bit) together with LaunchBox
; and software from the Neo Kobe collection.
;
; Place this script (or compiled exe) in the same folder as the emulator itself and
; import the hdi files in LaunchBox (or hdm for games that don't have a hd).
;
; Configure LaunchBox to use this script as the emulator and leave the default command
; line.
;
; For CD games and/or games with a boot floppy, place all related file, all with the same