Skip to content

Instantly share code, notes, and snippets.

@Phantomn
Phantomn / function.md
Created November 27, 2025 03:32 — forked from CypherpunkSamurai/function.md
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.",
@Phantomn
Phantomn / wsl-kvm.sh
Created March 5, 2024 12:05 — forked from afmiguez/wsl-kvm.sh
Script to enable KVM in WSL2
#Fully based on https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/
if [ -z "$1" ]
then
echo "Must supply your Windows 10 username"
exit
fi
WIN_USERNAME=$1
#package updates and installations
@Phantomn
Phantomn / hax.c
Last active March 9, 2022 04:15 — forked from apsun/hax.c
Hook main() using LD_PRELOAD
/*
* LD_PRELOAD를 사용하여 main()을 연결하세요. 왜 안되나요?
* 이 코드는 포터블하지 않다. 사용할때 리스크는 자신이 감당해라.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>