Skip to content

Instantly share code, notes, and snippets.

View chimmykk's full-sized avatar

Rilso chimmykk

View GitHub Profile
@chimmykk
chimmykk / quicktest.ts
Created February 18, 2026 16:37
e2e test of PNFTs deployment and minting on Solana Devnet
/**
* Quicktest: End-to-end pNFT candy machine creation and mint
*
* Runs the full flow:
* 1. Upload assets (skips if cache exists)
* 2. Create collection NFT
* 3. Update timestamps & wallet in config
* 4. Generate allowlists & update config
* 5. Create pNFT candy machine (token standard 4) with guard groups
* 6. Add items to candy machine
import { hash } from "./blake3.js";
function formatSize(bytes) {
if (bytes < 1024) return `${bytes} B`;
if (bytes < 1024 * 1024) return `${bytes / 1024} KB`;
return `${bytes / (1024 * 1024)} MB`;
}
const CASES = [
@chimmykk
chimmykk / blake.js
Created December 9, 2025 11:27
blakeimpl
const OUT_LEN = 32;
const KEY_LEN = 32;
const BLOCK_LEN = 64;
const CHUNK_LEN = 1024;
const CHUNK_START = 1 << 0;
const CHUNK_END = 1 << 1;
const PARENT = 1 << 2;
const ROOT = 1 << 3;
@chimmykk
chimmykk / automate.js
Created November 3, 2025 13:27
Oracle cloud automation
const puppeteer = require('puppeteer');
const fs = require('fs');
(async () => {
const chromePaths = [
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
'/Applications/Chromium.app/Contents/MacOS/Chromium'
];
// update this to your OS enviroment
@chimmykk
chimmykk / testk.sol
Created November 15, 2023 11:38
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;
// final i working
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.4.0/contracts/access/Ownable.sol";
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
import "@chainlink/contracts/src/v0.8/ConfirmedOwner.sol";
contract CustomToken is ERC20, ERC20Burnable, Ownable, ChainlinkClient {
@chimmykk
chimmykk / index.html
Created June 23, 2022 19:23
jonathano.com Coming Soon screen
<div class="container">
<h1>Coming Soon.</h1>
</div>
<footer>
<a href="mailto:me@jonathano.com">me@jonathano.com</a> | &copy; 2016 Jonathan Ohayon
</footer>
@chimmykk
chimmykk / index.pug
Created September 1, 2021 15:30
Pseudo 3D text
canvas
menu
form(onsubmit='init(event)')
input(
type='text'
id='textInput'
maxLength='90'
placeholder='Random text'
)
button Run