Skip to content

Instantly share code, notes, and snippets.

View dexit's full-sized avatar
🎯
Focusing

Rihards Mantejs dexit

🎯
Focusing
View GitHub Profile
<?php
/**
* List Table API: WP_Posts_List_Table class
*
* @package WordPress
* @subpackage Administration
* @since 3.1.0
*/
/**
@dexit
dexit / Wordpress old version function.php
Created December 12, 2025 13:37 — forked from JusTruetice/Wordpress old version function.php
Wordpress old version function.php main
<?php
/**
* Theme functions and definitions
*
* @package HelloElementor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Homeo_Elementor_RealEstate_Search_Form extends Elementor\Widget_Base {
public function get_name() {
return 'apus_element_realestate_search_form';
@dexit
dexit / functions.php
Created December 12, 2025 13:30 — forked from ppcdias/functions.php
WordPress Elementor Form Submit Overlay
<?php
// Adds a custom loading overlay for Elementor forms
function custom_elementor_loading_overlay() {
// Only execute on front-end (not in admin panel)
if (!is_admin()) {
// Enqueue jQuery
wp_enqueue_script('jquery');
?>
<style type="text/css">
/* Main overlay styles remain unchanged */
@dexit
dexit / get-meta-without-email-action-webhook.php
Created December 12, 2025 13:23
request_args elementor form webhooks access the meta without email action
<?php
/**
* @param array $args Webhook request arguments.
* @param Form_Record $record An instance of the form record.
*/
add_filter( 'elementor_pro/forms/webhooks/request_args', function( $args, $record ) {
$meta_keys = [
'date',
'time',
'page_url',
@dexit
dexit / custom-code.js
Created December 8, 2025 13:46
Elementor Popup based LearnerEnquiry Form Hubspot hutk pagename, pageurl, and input masks for phone and postcode
const debuggerMode = true;
const retryCount = 3; // Retry count for setting hutk value
const hutkFieldSelector = '#form-field-hutk';
const pageUriSelector = '#form-field-pageUri';
const formSelector = '#learner_enquiry'; // Use the form ID or a class to select the form
function log(message) {
if (debuggerMode) {
console.log(message);
}
# 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,