Skip to content

Instantly share code, notes, and snippets.

View developerfred's full-sized avatar
🥇
🔥

codingsh developerfred

🥇
🔥
View GitHub Profile
@developerfred
developerfred / mac.md
Last active September 6, 2021 21:24
How to Delete ALL node_modules folders on your machine and Free up HD space!

List Files

$ cd development_folder
$ find . -name "node_modules" -type d -prune | xargs du -chs

10G total

// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
// Used in the `name()` function
// "Yul Token"
bytes32 constant nameLength = 0x0000000000000000000000000000000000000000000000000000000000000009;
bytes32 constant nameData = 0x59756c20546f6b656e0000000000000000000000000000000000000000000000;
// Used in the `symbol()` function
// "YUL"
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
import {ERC721A} from "erc721a/contracts/ERC721A.sol";
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
error MintLimitExceeded();
contract SampleNFT is ERC721A, Ownable {
uint256 public constant MINT_LIMIT = 10;