Skip to content

Instantly share code, notes, and snippets.

View ohhkaneda's full-sized avatar

ohhkaneda.eth ohhkaneda

View GitHub Profile
@pashov
pashov / MAKE_NO_MISTAKES_CLAUDE.md
Created February 18, 2026 09:31
MAKE NO MISTAKES
name description
make-no-mistakes
Appends "MAKE NO MISTAKES." to every user prompt before processing it. Use this skill whenever you want Claude to be maximally precise, careful, and error-free in its responses.

Make No Mistakes

This skill instructs Claude to append the directive "MAKE NO MISTAKES." to every user prompt it receives before generating a response.

Instructions

@alexgreenland
alexgreenland / bad-deps.txt
Last active December 16, 2025 18:18
[Updated 27 Nov 2025 00:21 UTC] Deep scan for bad NPM packages nested across projects - DFIR for Shai-Hulud cyberattack, Sep-Nov 2025
@ahmedhfarag/ngx-perfect-scrollbar
@ahmedhfarag/ngx-virtual-scroller
another-shai
@art-ws/common
@art-ws/config-eslint
@art-ws/config-ts
@art-ws/db-context
@art-ws/di-node
@art-ws/di
@art-ws/eslint
@technophile-04
technophile-04 / scaffold.config.ts
Last active September 22, 2024 12:49
SE-2 frontend config custom chain
import * as chains from "viem/chains";
// Blast chain
export const blast = {
id: 81457,
name: "Blast",
network: "blast",
nativeCurrency: { name: "Blast", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: { http: ["https://rpc.blast.io"] },
@sbarratt
sbarratt / rpc_multiplexer.py
Created December 12, 2022 22:21
RPC Multiplexer
from flask import Flask, request
from flask_restful import Resource, Api
import requests
app = Flask(__name__)
api = Api(app)
default_rpc = "https://rpc.builder0x69.io/"
rpcs = [
@shobhitic
shobhitic / ABToken.sol
Last active January 5, 2023 20:08
Soulbound tokens or Account Bound Tokens - https://youtu.be/_6Zt70PZbAs
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./EIP4973.sol";
contract ABT is ERC4973 {
address public owner;
uint256 public count = 0;
constructor () ERC4973("MyToken", "MTK") {
@Vectorized
Vectorized / Summary.md
Last active July 12, 2022 10:04
Vyper vs Solidity Gas Benchmarks

Vyper vs Solidity Gas Benchmarks

Summary

EDCSA.recover(bytes32 hash, bytes calldata signature)

Solidity: 26869
Vyper: 27729

Note that the Solidity version has the added functionality:

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts@4.6.0/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts@4.6.0/access/Ownable.sol";
contract RainbowKitNFT is ERC1155, Ownable {
uint256 public totalSupply;
constructor() ERC1155("https://rainbowkit-mint-nft-demo.vercel.app/nft.json") {}
@corbanbrook
corbanbrook / multi-wallet-extension-support.md
Last active December 17, 2024 10:35
Multi Wallet Extension Support

Multi Wallet Extension Support

As more and more web3 wallet projects enter the space, each with their own stregnths and weaknesses, users will have a great deal of choice for not only which wallet they use but which combination of wallets they use. This presents a problem for browser extensions which all expose the window.ethereum provider object.

How do we allow multiple providers to "play nice" with each other?

Problems

1. When multiple wallets extensions are installed which wallet is used?

@Rahat-ch
Rahat-ch / MetaDataNFT.sol
Created April 7, 2022 12:17
ERC721 minting with timed slowdown
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
contract MetaDataNFT is ERC721URIStorage {
using Counters for Counters.Counter;
Counters.Counter private _tokenIds;
@dabit3
dabit3 / marketplace.sol
Last active April 29, 2025 06:06
NFT Marketplace Smart Contract (V2)
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "hardhat/console.sol";
contract NFTMarketplace is ERC721URIStorage {