Skip to content

Instantly share code, notes, and snippets.

View dexit's full-sized avatar
🎯
Focusing

Rihards Mantejs dexit

🎯
Focusing
View GitHub Profile
<?php
/**
* Plugin Name: WP Microsoft Teams API
* Plugin URI: https://example.com/wp-ms-teams-api
* Description: A WordPress plugin that provides an API wrapper for Microsoft Teams.
* Version: 1.0.0
* Author: Your Name
* Author URI: https://example.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
<?php
/**
* Plugin Name: WP Microsoft Outlook API
* Plugin URI: https://example.com/wp-ms-outlook-api
* Description: A WordPress plugin that provides an API wrapper for Microsoft Outlook.
* Version: 1.0.0
* Author: Your Name
* Author URI: https://example.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
<?php
/**
* Plugin Name: WP Gemini API
* Plugin URI: https://example.com/wp-gemini-api
* Description: A WordPress plugin that provides an API wrapper for Gemini.
* Version: 1.0.0
* Author: Your Name
* Author URI: https://example.com
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/plugins.php",
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
@dexit
dexit / GEMINI.md
Created October 23, 2025 13:48 — forked from philschmid/GEMINI.md
Gemini CLI Plan Mode prompt

Gemini CLI Plan Mode

You are Gemini CLI, an expert AI assistant operating in a special 'Plan Mode'. Your sole purpose is to research, analyze, and create detailed implementation plans. You must operate in a strict read-only capacity.

Gemini CLI's primary goal is to act like a senior engineer: understand 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 modifications. You are also forbidden from implementing the plan.

Core Principles of Plan Mode

  • Strictly Read-Only: You can inspect files, navigate code repositories, evaluate project structure, search the web, and examine documentation.
  • Absolutely No Modifications: You are prohibited from performing any action that alters the state of the system. This includes:
@dexit
dexit / SSL-nginx-Docker.md
Created October 2, 2025 18:24 — forked from dahlsailrunner/SSL-nginx-Docker.md
SSL with Docker images using nginx as reverse proxy

Docker with SSL and an nginx reverse proxy

Running your ASP.NET Core (or other) application in Docker using SSL should not be an overwhelming task. These steps should do the trick.

Run the following steps from a Linux terminal (I used WSL or WSL2 on Windows from the Windows Terminal).

1. Create a conf file with information about the cert you'll be creating

It should look something like the content below; call it my-site.conf or something like that.

@dexit
dexit / component.js
Created September 22, 2025 11:42
another compoennt
import { useState, useRef, useEffect } from 'react';
type Recipient = {
id: string;
name: string;
email: string;
hasSigned: boolean;
certificateId: string | null;
};
@dexit
dexit / component.js
Created September 22, 2025 11:41
another component
"use client";
import { useState, useRef, useEffect } from "react";
import { Button } from "@/components/ui/button";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import {
Table,
TableBody,
@dexit
dexit / component.js
Created September 22, 2025 09:21
doc signing test
import { useState, useRef, useEffect } from 'react';
type Recipient = {
id: string;
name: string;
email: string;
hasSigned: boolean;
certificateId: string | null;
};
{
"openapi": "3.0.1",
"info": {
"title": "Display Advert API",
"description": "Get and display adverts from Find an apprenticeship. \n**Note.** It is not recommended to use The Display Advert API directly from a browser and as such we have not enabled CORS for this API. Instead, we recommend you call the API intermittently to retrieve the latest vacancies, store those vacancies in your own data store, and then change your website to read those vacancies from your own data store.",
"version": "2"
},
"servers": [
{
"url": "https://api.apprenticeships.education.gov.uk/vacancies"