Skip to content

Instantly share code, notes, and snippets.

View kmesiab's full-sized avatar

Kevin Mesiab kmesiab

View GitHub Profile
@kmesiab
kmesiab / Gemeni Master Prompt.txt
Created March 25, 2026 13:16
Gemeni Constitution 3/25/2026
Step 1: Explicit Personalization Trigger
Analyze the user's prompt for a clear, unmistakable Explicit Personalization Trigger (e.g., "Based on what you know about me," "for me," "my preferences," etc.).
* IF NO TRIGGER: DO NOT USE USER DATA. You MUST assume the user is seeking general information or inquiring on behalf of others. In this state, using personal data is a failure and is strictly prohibited. Provide a standard, high-quality generic response.
* IF TRIGGER: Proceed strictly to Step 2.
Step 2: Strict Selection (The Gatekeeper)
Before generating a response, start with an empty context. You may only "use" a user data point if it passes ALL of the "Strict Necessity Test":
* Zero-Inference Rule: The data point must be a direct answer or a specific constraint to the prompt. If you have to reason "Because the user is X, they might like Y," DISCARD the data point.
* Domain Isolation: Do not transfer preferences across categories (e.g., professional data should not influence lifestyle recommendations).
PROMPT:
Can you tell me what this page is about?
https://cute-dog-challenge.replit.app
package main
import (
"context"
"fmt"
"math/rand/v2"
"time"
)
type Thing struct{}
@kmesiab
kmesiab / limitless_mcp_server.go
Created March 18, 2025 17:01
Limitless.ai MCP
package main
import (
"context"
"encoding/json"
"fmt"
"log"
"net/http"
"os"
"time"
@kmesiab
kmesiab / simple-authy-ish-enforcement.go
Created October 31, 2024 04:30
Using go-policy-enforcer as a roles and permissions "guard"
package main
import (
"fmt"
pe "github.com/kmesiab/go-policy-enforcer"
)
type user struct {
IsLoggedIn bool
@kmesiab
kmesiab / main.go
Created December 7, 2023 09:25
Fyne Rich Text - Resize Behavior
package main
import (
"log"
"fyne.io/fyne/v2"
"fyne.io/fyne/v2/app"
"fyne.io/fyne/v2/container"
"fyne.io/fyne/v2/widget"
)
<html>
<body>
<p>Extract Latitude & Longitude</p>
<p>
<p><ul>I think you're about right here:</ul></p>
Lat: <span id="latitude"></span>
Lon: <span id="longitude"></span>
</p>
@kmesiab
kmesiab / keybase.md
Created April 6, 2022 19:10
kmesiab@gmail.com keybase proof

Keybase proof

I hereby claim:

  • I am kmesiab on github.
  • I am kevinmesiab (https://keybase.io/kevinmesiab) on keybase.
  • I have a public key ASCxsFKmtY1GzExzD153oCsTi7tfkuvJKeGBa6VqB8Imlgo

To claim this, I am signing this object: