Skip to content

Instantly share code, notes, and snippets.

View warengonzaga's full-sized avatar
🚢
Shipping In Silence

Waren Gonzaga warengonzaga

🚢
Shipping In Silence
View GitHub Profile
@warengonzaga
warengonzaga / tinyclaw_CLA.md
Created February 16, 2026 11:53
Tiny Claw CLA

Tiny Claw Contributor License Agreement

Version: 1.0
Effective Date: February 16, 2026

Thank you for your interest in contributing to Tiny Claw (the "Project"), maintained by Waren Gonzaga (the "Maintainer"). This Contributor License Agreement ("Agreement") documents the rights granted by contributors to the Maintainer. This is a legally binding document, so please read it carefully before agreeing to it.

Why a CLA?

Tiny Claw is built on the belief that AI should be accessible to everyone. To keep the project open source forever while also making it sustainable long-term, the Maintainer offers a dual-licensing model - free under GPL-3.0, with an optional commercial license for companies that need it. Revenue from commercial licenses goes directly into funding development, infrastructure, and keeping Tiny Claw free for the community.

@warengonzaga
warengonzaga / github-cli-delete-all-labels.md
Created October 2, 2025 20:45
GitHub CLI commands to delete all labels from a repository - different approaches and methods

GitHub CLI: Delete All Labels

This gist provides different approaches to delete all labels from a GitHub repository using the GitHub CLI (gh).

Why the obvious approach doesn't work

# ❌ This doesn't work - gh doesn't support wildcards
gh label delete *
@warengonzaga
warengonzaga / addtodashboard.ts
Last active May 17, 2024 07:12
method to add contract to dashboard
import { config } from "dotenv";
import {
createThirdwebClient,
getContract,
prepareContractCall,
resolveMethod,
sendAndConfirmTransaction,
} from "thirdweb";
import { contractURI } from "thirdweb/extensions/common";
import { defineChain } from "thirdweb/chains";
@warengonzaga
warengonzaga / setclaimconditionERC1155.js
Last active May 6, 2024 01:48
Set Claim Condition in Batch in thirdweb SDK v4
import { config } from "dotenv";
import { ThirdwebSDK } from "@thirdweb-dev/sdk";
config();
const main = async () => {
if (!process.env.WALLET_PRIVATE_KEY) {
throw new Error("No private key found");
}
@warengonzaga
warengonzaga / README.md
Created September 27, 2023 17:01
Recover Ownership of Contract (thirdweb)

Recover Ownership of Contract

This is useful when your admin for your contract has been compromised. For example, when you add balance to your admin address and suddenly your admin balance goes to random address. It is painful to remove your admin address if you don't have a gas to spend to assign a new admin address.

Setup

  1. Do npx thirdweb create app --node --javascript --evm
  2. Rename the .env.example to .env
  3. Copy and paste this to your .env
@warengonzaga
warengonzaga / build_your_own_react.md
Last active September 20, 2023 03:12
React - Plain Javascript

Build Your Own React

Here's the code on how you can build your own react. So you can understand how react works.

@warengonzaga
warengonzaga / git-update-remote-branch-list.md
Created August 29, 2022 08:40
Git - Update Remote Branch List

Update Remote Branch List - Git Commands

  1. Update your remote branch list.
git remote update origin --prune
  1. After that, check your remote branch list.
git branch -a
@warengonzaga
warengonzaga / profiles.yml
Last active April 16, 2022 08:43
Minecraft Configs - FarmControl
# Please visit https://github.com/froobynooby/FarmControl/wiki/Profiles for help with making profiles.
profiles:
###########################################################
# PROACTIVE MODE
###########################################################
# ======================================================= #
# nerf animal farms
@warengonzaga
warengonzaga / git-new-empty-branch.md
Last active March 15, 2022 13:25
Git - New Empty Branch

New Empty Branch - Git Commands

  1. Switch to a new empty branch.
git switch --orphan <branch-name>
  1. Remove all the files, mostly all in the .gitignore file will start to show here.
rm -rf *
@warengonzaga
warengonzaga / logout-without-confirmation.php
Created November 25, 2021 15:10
WP Snippet - Logout Without Confirmation
<?php
// logout without confirmation
function logout_without_confirmation($action, $result) {
if ($action == "log-out" && !isset($_GET['_wpnonce'])) {
$redirect_to = isset($_REQUEST['redirect_to'])?$_REQUEST['redirect_to']:'';
$location = str_replace('&amp;', '&', wp_logout_url($redirect_to));
header("Location: $location");
die;
}