Skip to content

Instantly share code, notes, and snippets.

@montycheese
montycheese / gist:806ae0c5ced86fd149a24831b2489907
Created August 8, 2026 01:10
Optimize Google Chrome prompt
You are a careful performance engineer, not a script that reaches
for the first fix it finds.
Goal: make Chrome use less CPU and memory on this specific
machine, without losing anything I didn't agree to lose.
Work in this order.
1. Check my hardware first: CPU core count, whether it has
hyperthreading, total RAM, and current load. Size every
@montycheese
montycheese / abi.json
Created October 31, 2023 19:49
BFF Single Charm renderer
[
{
"inputs": [
{
"internalType": "address",
"name": "bffBraceletContract_",
"type": "address"
},
{
"internalType": "address",
@montycheese
montycheese / sample.sol
Created August 2, 2022 03:21
Solidity code sample
// SPDX-License-Identifier: UNLICENSED
// Creator: Montana Wong <montana@sprise.co> (https://sprise.co)
pragma solidity 0.8.9;
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";
import {IERC721MembershipOwnerChecker} from "./IERC721MembershipOwnerChecker.sol";
import {BFFSingleCharmRenderer} from "./BFFSingleCharmRenderer.sol";
@montycheese
montycheese / leaderboard.scss
Created March 21, 2020 02:13
Leaderboard CSS page.
#root {
height: 100%;
width: 100%;
}
.leaderboard-container {
height: 100%;
overflow: hidden;
font-weight: bold;
font-family: Roboto;
@montycheese
montycheese / megaphone_guide.md
Last active July 8, 2019 22:15
Megaphone Guide

Megaphone User Guide

Play

The default tab is called “Play” and it is where users can type their text-to-speech message. They can additionally select the language as well as gender that they want to use to speak their message. Once they have typed out a message and selected their language & gender, they click the Submit button. The extension validates the message and ensures that it does not contain any profanity. After the message is deemed appropriate, Megaphone extension initiates a bits transaction and once the user confirms, the text-to-speech message is played on each of the viewer’s streams for that channel. Also, a chat message is sent to the chat room to inform users on who sent the current broadcasting message.

Leaderboard

The leaderboard tab ranks the viewers who have spent the most bits broadcasting messages to the channel.

Settings

The settings tab allow users to adjust the volume as well as mute the broadcast messages.

@montycheese
montycheese / megaphone_privacy_policy.MD
Last active May 15, 2019 00:32
Megaphone Privacy Policy

Megaphone Privacy Policy

By using the Megaphone extension, you consent to the data practices described in this statement below. If you have any questions please make sure to Contact Us. Sorry for all the legal talk it is required for us to do business. Also do not forget to be awesome 🙂

COLLECTION OF YOUR PERSONAL INFORMATION Megaphone does NOT collect any personally identifiable information, such as your e-mail address, name, home or work address or telephone number.

INFORMATION USE

Megaphone keeps track of what messages each user sends on the extension to keep track of user's message history and leaderboard score.

@montycheese
montycheese / megaphone-tos.MD
Created February 20, 2019 17:14
Megaphone Terms of Service

Megaphone Terms of Service

  1. Terms By accessing the Megaphone twitch extension hosted at www.twitch.tv, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this extension.

  2. Use License Permission is granted to temporarily download one copy of the materials (information or software) of Megaphones's extension from www.twitch.tv for personal, non-commercial transitory viewing and interaction only. Twitch broadcasters who add the Megaphone extension software to their Twitch channels must abide by the same terms. This is the grant of a license, not a transfer of title, and under this license you may not: modify or copy the materials; use the materials for any commercial purpose, or for any public display (commercial or non-commercial); attempt to decompile or reverse engineer any software contained

@montycheese
montycheese / StreamThreadsGuide.md
Last active January 27, 2019 05:01
StreamThreads Guide

StreadThreads Manual:

Overview

When you are interacting with the extension on the channel for the first time, you will see a list of text posts in a "feed" type of view in the extension. (The list will be empty if this extension was just added to a channel). These posts are called "Threads" and are associated with a user, and contain a title and a body. Threads are unique to a channel, they are not shared across channels. Additionally, they can be "scored" with an upvote or downvote. At the botttom of the list of threads, there are buttons to paginate back and forward to fetch the next page of threads. Threads can be sorted in multiple ways, the default is "Hottest" but other options include, best, worst, and newest! Within a "Thread" are a similar list of posts called "comments" which are replies to the parent thread. Similar to threads, users can vote on comments. Additionally, the extension has configuration options such as enabling/disabling unlinked users and logged out users to post content. W

@montycheese
montycheese / streamthreads-terms-of-service.txt
Created December 25, 2018 16:21
streamthreads terms of service
StreamThreads Terms of Service
1. Terms
By accessing the StreamThreads twitch extension hosted at www.twitch.tv, you are agreeing to be bound by these terms of service, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited from using or accessing this extension.
2. Use License
Permission is granted to temporarily download one copy of the materials (information or software) of StreamThreads's extension from www.twitch.tv for personal, non-commercial transitory viewing and interaction only. Twitch broadcasters who add the StreamThread extension software to their Twitch channels must abide by the same terms. This is the grant of a license, not a transfer of title, and under this license you may not:
modify or copy the materials;
use the materials for any commercial purpose, or for any public display (commercial or non-commercial);
attempt to decompile or reverse engineer any software
@montycheese
montycheese / streamthreads-privacy-policy.txt
Last active December 25, 2018 16:06
StreamThreads privacy policy
STREAMTHREADS Privacy Policy
By using the StreamThreads website, you consent to the data practices described in this statement below. If you have any questions please make sure to Contact Us. Sorry for all the legal talk it is required for us to do business. Also do not forget to be awesome 🙂
COLLECTION OF YOUR PERSONAL INFORMATION
StreamThreads does NOT collect any personally identifiable information, such as your e-mail address, name, home or work address or telephone number.
INFORMATION USE
StreamThreads keeps track of what posts each user makes on the extension to keep track of user's post history and aggregate score.