Skip to content

Instantly share code, notes, and snippets.

View dexit's full-sized avatar
🎯
Focusing

Rihards Mantejs dexit

🎯
Focusing
View GitHub Profile
# Gemini CLI SuperSubAgent Plan & Developer Mode
You are Gemini CLI, an expert AI assistant operating in a special 'SuperSubAgent Plan & Developer Mode'. Your sole purpose is to ensure logical and production ready code development, research, analysis, and create function first but detail oriented implementation soluion plans & their code base development and commiting to the codebase. You must operate in a strict SuperSubAgent Plan & Developer Mode capacity.
Gemini CLI's primary goal is to act like a senior engineer: outline existing structure, class calls, use and end results, even when updating code,munderstand the request, investigate the codebase and relevant resources, formulate a robust strategy, and then present a clear, step-by-step plan for approval. You are forbidden from making any unnecessary changes or modifications that do not directly benefit or adhere to the solutions fucntionality as production ready codebase, if in doubt ask for permission by presenting a new plan. You are also forbidden
@dexit
dexit / SYSTEM.md
Created November 19, 2025 12:45 — forked from ksprashu/SYSTEM.md
Personal SYSTEM.md override for hardcoded instructions

This document, SYSTEM.md, defines the external rules and constraints of the Gemini agent. It outlines the environment, available tools, and the fundamental operational mandates that govern my behavior at the system level. This is the rulebook.

You are an interactive CLI agent specializing in software engineering tasks. Your primary goal is to help users safely and efficiently, adhering strictly to the following instructions and utilizing your available tools.

Core Mandates

  • Model Constraint: My core reasoning engine is pinned to the highest-quality, generally available model family, which is currently Gemini 2.5. All my reasoning, planning, and generation tasks must use this model family to ensure consistency and quality. I am forbidden from using older model families (e.g., Gemini 1.5) unless explicitly instructed for a temporary, specific purpose. The adoption of a new, superior model family (e.g., Gemini 3.0) must be a deliberate, user-approved update to this directive.
  • **Conventions:
@dexit
dexit / GEMINI.md
Created November 19, 2025 12:44 — forked from ksprashu/GEMINI.md
Personal GEMINI.md as on 29-07-2025

Gemini Agent: Core Directives and Operating Protocols

@dexit
dexit / cf-logging-table.sql
Created November 6, 2025 10:39
Logging Table
CREATE TABLE request_logs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
timestamp TEXT NOT NULL,
endpoint TEXT NOT NULL,
method TEXT NOT NULL,
url TEXT NOT NULL,
ip_address TEXT,
user_agent TEXT,
referer TEXT,
response_status_code INTEGER NOT NULL,
@dexit
dexit / cf-cors-proxy-requests-postcodes.js
Created November 6, 2025 10:37
cf-cors-proxy-requests-postcodes.js
// --- CONFIGURATION VIA ENVIRONMENT VARIABLES ---
// In your Worker's Settings -> Variables, set the following:
//
// 1. ALLOWED_ORIGINS (Whitelist for target URLs for the proxy)
// Value: *.example.com, api.another.com, my-domain.net
//
// 2. PROXY_ENDPOINT (The path the proxy will run on)
// Value: /corsproxy/
//
// 3. SEARCH_PARAM (The query parameter for the proxy, e.g., 'url' or 'apiurl')
@dexit
dexit / elementor-uk-postcode-lookup-set-region.js
Created November 5, 2025 17:17
Lookup field with yee addons elementor INPUT MASK for postcode uk, then using the lookup against a API postcodes.io or OSM or custom api, determine the region, then update the region and 2more fields
jQuery(document).ready(function ($) {
/* ------------------------------------------------------------------ */
/* 1️⃣ Grab the postcode field and the region dropdown */
/* ------------------------------------------------------------------ */
var $zipInput = $('#form-field-zip'); // postcode field
var $regionSelect = $('#form-field-uk_region'); // region field to set
/* ------------------------------------------------------------------ */
/* 2️⃣ Find the reference point – the last hidden field in the form */
@dexit
dexit / dynamics-hubspot-inject-live-chat.js
Created November 5, 2025 17:13
dynamic hubspot inject live chat dynamically
<!-- <script type="text/javascript" id="hs-script-loader" async defer src="//js-eu1.hs-scripts.com/PORTALID.js"></script> -->
<script>
// WHERE PORTALID is your hubspot instance portalid
document.addEventListener("DOMContentLoaded", function () {
var usedLaterScript = document.createElement('script');
usedLaterScript.src = '//js-eu1.hs-scripts.com/PORTALID.js'; // here set portal ID
usedLaterScript.id = 'hs-script-loader';
usedLaterScript.type = 'text/javascript';
usedLaterScript.setAttribute('cookieconsent','ignore');
usedLaterScript.async = true;
@dexit
dexit / elementor-multi-step-form-hide-fields-after-submit.js
Created November 5, 2025 17:11
elementor multi step form hide fields after submit
(($)=>{
// formID = the form id you have set in elementor form.
$(document).ready(()=>{
const formIdSelector = '#formID';
// on submit_success event triggered on my specific form #itchy002
$(document).on('submit_success', formIdSelector,(e)=>{
// hide all fields in this form
$(formIdSelector).find('.elementor-form-fields-wrapper').hide()
})
@dexit
dexit / as-js.js
Last active November 5, 2025 17:10
Bypass Hubspot non-Hubspot form collection collectforms use with siteid. Ignore a specific non-Hubspot form from being collected I noticed that when you specify in HubSpot to collect info from non-HubSpot forms, it attempts to add the script collectedforms.js to your website. However, before doing so, it checks to see if it's already installed b…
<script type="text/javascript" id="CollectedForms-PORTALID" crossorigin="anonymous" data-leadin-portal-id="PORTALID" data-leadin-env="prod" data-loader="hs-scriptloader" data-hsjs-portal="139581107" data-hsjs-env="prod" data-hsjs-hublet="eu1"></script>
<script>console.log('bypass loaded')</script>
@dexit
dexit / elementor-flatpickr-custom-date-input.js
Last active November 5, 2025 17:04
This is used with combinatin of yeeAddons date, prepare teh dd/mm/yyyy input visually but passed "yyyy-mm-dd" on submit to Hubspot in this case. Accepts Keydown (enter) and leaves it be meaning allows it.
jQuery(document).ready(function ($) {
/* ------------------------------------------------------------------
* 1. Flatpickr options
* ------------------------------------------------------------------ */
const flatpickrOptions = {
// Format that will be written to the hidden input (HubSpot)
dateFormat: "Y-m-d",
// Format that the user sees / types
altFormat: "d/m/Y",