Skip to content

Instantly share code, notes, and snippets.

View nully0x's full-sized avatar
🎯
Building

nully0x nully0x

🎯
Building
View GitHub Profile
@nully0x
nully0x / 136-k6.sh
Created August 15, 2023 07:08 — forked from vfarcic/136-k6.sh
# Source: https://gist.github.com/fda147804b59fd2a0cbb5fb5deb4d00b
##################################################################
# The Best Performance And Load Testing Tool? k6 By Grafana Labs #
# https://youtu.be/wfanR-Ps-lk #
##################################################################
# Additional Info:
# - k6: https://k6.io
# - Google Cloud Run (GCR) vs Azure Container Instances (ACI) vs AWS ECS with Fargate: https://youtu.be/Jq8MY1ZGjno
@nully0x
nully0x / MyNFT.sol
Created June 3, 2021 09:22 — forked from oliverjumpertz/MyNFT.sol
A basic ERC721 (NFT) implementation. Instantly runnable in remix.ethereum.org
// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/token/ERC721/ERC721.sol";
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Counters.sol";
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/access/AccessControl.sol";
import "https://raw.githubusercontent.com/OpenZeppelin/openzeppelin-contracts/master/contracts/utils/Context.sol";
contract MyNFT is Context, AccessControl, ERC721 {
@nully0x
nully0x / esm-package.md
Created May 9, 2021 22:33 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package linked to from here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@nully0x
nully0x / Getting_Started_with_Fuel_in_NodeJS.js
Created May 2, 2020 23:35 — forked from SilentCicero/Getting_Started_with_Fuel_in_NodeJS.js
The NodeJS example code from the recent Fuel tutorial blog post.
const { Wallet, utils, dbs } = require("fuel-core");
(async () => {
// DB and Key Setup
const db = new dbs.Level(); // persisting db
const privateKey = (await db.get('key')) || utils.randomBytes(32);
await db.put('key', privateKey);