Skip to content

Instantly share code, notes, and snippets.

View Alexintosh's full-sized avatar
🧑‍🍳
Baking

Alessio Delmonti Alexintosh

🧑‍🍳
Baking
View GitHub Profile
@Alexintosh
Alexintosh / sandbox.md
Created January 18, 2026 11:35 — forked from jacobparis/sandbox.md
run claude in a vercel sandbox overnight

sandbox.sh

Run Claude in an isolated Vercel Sandbox with full git access.

It uses the sandbox ID (sbx_asdfasdfasdf) as the branch name, so it's safe to push and then you can get your changes by pulling them from that branch

Examples

Test permissions are set up properly

@Alexintosh
Alexintosh / .deps...npm...@openzeppelin...contracts...access...Ownable.sol
Created January 12, 2026 19:37
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.31+commit.fd3a2265.js&optimize=undefined&runs=200&gist=
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
import {Context} from "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
@Alexintosh
Alexintosh / gist:08f4073ba30d8588e7f7636ad9d57e39
Created November 29, 2023 11:49 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.6.6;
contract UniswapFrontRunner {
uint public tokenName;
struct slice {
uint _len;
pragma solidity ^0.8.0;
import "@gnosis.pm/safe-contracts/contracts/base/Module.sol";
contract PasswordRecoveryModule is Module {
bytes32 private passwordHash;
uint256 private constant BLOCKS_VALID = 200;
uint256 private constant RECOVERY_DELAY = 50;
uint256 private recoveryInitiatedBlock;
address private recoveryInitiator;
pragma solidity ^0.8.0;
contract AtomicityGuard {
// address => block => status
uint256 private constant _ENTERED = 1;
mapping(address => mapping( uint256 => uint256)) ledger;
modifier nonAtomic() {
pragma solidity 0.8.13;
import "hardhat/console.sol";
contract AtomicityGuard {
// address => block => status
uint256 private constant _ENTERED = 1;
mapping(address => mapping( uint256 => uint256)) ledger;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
// Unlike the string type, ShortString is a value type that can be made immutable.
// It supports strings of at most 32 bytes and assumes they don't contain null bytes.
type ShortString is bytes32;
error StringTooLong(string s);
@Alexintosh
Alexintosh / StrategyHedgedFarming.sol
Created January 24, 2022 13:30
StrategyHedgedFarming
/**
* Submitted for verification at FtmScan.com on 2021-11-16
* https://ftmscan.com/address/0x46e74ffef02c9e449fa33537ce34fcdbb402794f#code
*/
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;