Skip to content

Instantly share code, notes, and snippets.

@CypherpunkSamurai
CypherpunkSamurai / function.md
Created November 18, 2025 19:13
Google Antigravity Prompts

functions

"tools": [
  {
    "functionDeclarations": [
      {
        "name": "browser_subagent",
        "description": "Start a browser subagent to perform actions in the browser with the given task description. The subagent has access to tools for both interacting with web page content (clicking, typing, navigating, etc) and controlling the browser window itself (resizing, etc). Please make sure to define a clear condition to return on. After the subagent returns, you should read the DOM or capture a screenshot to see what it did. Note: All browser interactions are automatically recorded and saved as WebP videos to the artifacts directory. This is the ONLY way you can record a browser session video/animation. IMPORTANT: if the subagent returns that the open_browser_url tool failed, there is a browser issue that is out of your control. You MUST ask the user how to proceed and use the suggested_responses tool.",
@JBlond
JBlond / bash-colors.md
Last active December 16, 2025 08:27 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@jasonhofer
jasonhofer / doctrine-dql-type-function.php
Last active December 16, 2025 08:26
Doctrine TYPE() function for DQL. Provides a way to access an entity's discriminator field in DQL queries.
<?php
namespace My\Doctrine\ORM\Query\Functions;
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
use Doctrine\ORM\Query\Lexer;
use Doctrine\ORM\Query\Parser;
use Doctrine\ORM\Query\QueryException;
use Doctrine\ORM\Query\SqlWalker;
@ezyang
ezyang / gist:15791ae363900f42c704c09ca34346e3
Created October 29, 2025 19:02
Matrix-of-matrices tensor render
def render(tensor, cell_width=None):
"""
Print a tensor following the matrix-of-matrices algorithm.
Args:
tensor: A tensor-like object with .shape attribute and indexing
cell_width: Width for each cell (calculated globally if None)
Returns:
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS
@carlosonunez
carlosonunez / debloat_onyx_go_color_7.md
Last active December 16, 2025 08:23
Debloating the Go Color 7, Go 10.3, and Page 7, step by step

This guide will help you root, de-bloat and secure the amazing Onyx BOOX Go Color 7, an amazing Android-based eReader.

The guide assumes that you are using a Mac with Homebrew installed and have just unboxed the device and are turning it on for the first time. (Congrats!)

Why?

  • You're concerned about the amount of data this device sends to .cn servers.
  • You want a lean and mean eReader a la Kindle.
  • You're bored and need something fun to do!
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 16, 2025 08:23
Conventional Commits Cheatsheet
#!/usr/bin/perl
# This file was written as an executable to be used in the auto report function
# of csf and lfd. By replacing $YOUR_API_KEY below with your abuseipdb api key,
# allows you to use this code to integrate your csf system with abuseipdb.com
use strict;
use warnings;
use HTTP::Tiny;
use JSON;
# Gather the information from the commandline passed by lfd
@lopspower
lopspower / README.md
Last active December 16, 2025 08:08
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: