Skip to content

Instantly share code, notes, and snippets.

You are a prompt engineer specializing in crafting instructions for Google Gemini to create AI chatbots. Your goal is to generate clear, concise, and effective instructions for a chatbot that will respond to the following user task:

[[User task]]

Format your response as follows:

  1. AI ROLE:
    • Begin with: "YOU ARE A..."
    • Clearly define the AI's role based on the task (e.g., "YOU ARE A HELPFUL ASSISTANT AI," "YOU ARE A CREATIVE STORYTELLING AI," or "YOU ARE A KNOWLEDGEABLE TUTORING AI").
<?php
/**
* Contact Form 7 Conditional Enqueues WordPress Plugin.
*
* @package CF7_Conditional_Enqueues
* @author Weston Ruter, Google
* @license GPL-2.0-or-later
* @copyright 2023 Google Inc.
*
* @wordpress-plugin
@adamsilverstein
adamsilverstein / add-lazy-loading-to-oembeds.php
Last active November 22, 2023 22:16
Add lazy loading to oEmbed iframes (in WordPress)
<?php
/**
* Add lazy loading to oEmbed iframes.
*
* @wordpress-plugin
* Plugin Name: Lazy Load oEmbeds.
* Description: Add lazy loading to oEmbed iframes.
* Plugin URI:
* Version: 1.0.0
* Author: Adam Silverstein, Google
@alsyundawy
alsyundawy / freshclam.conf
Last active April 7, 2024 23:45
ClamAV Unofficial Sign Database Repository
# Custom Database Clamav With token (register for free https://www.securiteinfo.com/clients/customers/account )
DatabaseCustomURL https://www.securiteinfo.com/get/signatures/7e7af83dd8eb714f77d6ddb08932b66c5e3779c805e52dec70df86995c55e040e5ebe37b01edb1bfcf538bf39e3e0d61dfd5f2b086694fae2866500a37a504be/securiteinfo.hdb
DatabaseCustomURL https://www.securiteinfo.com/get/signatures/7e7af83dd8eb714f77d6ddb08932b66c5e3779c805e52dec70df86995c55e040e5ebe37b01edb1bfcf538bf39e3e0d61dfd5f2b086694fae2866500a37a504be/securiteinfo.ign2
DatabaseCustomURL https://www.securiteinfo.com/get/signatures/7e7af83dd8eb714f77d6ddb08932b66c5e3779c805e52dec70df86995c55e040e5ebe37b01edb1bfcf538bf39e3e0d61dfd5f2b086694fae2866500a37a504be/javascript.ndb
DatabaseCustomURL https://www.securiteinfo.com/get/signatures/7e7af83dd8eb714f77d6ddb08932b66c5e3779c805e52dec70df86995c55e040e5ebe37b01edb1bfcf538bf39e3e0d61dfd5f2b086694fae2866500a37a504be/spam_marketing.ndb
DatabaseCustomURL https://www.securiteinfo.com/get/signatures/7e7af83dd8eb714f
@rstormsf
rstormsf / bedrock-ansible-setup.sh
Last active January 29, 2018 10:23
Bedrock ansible setup
#!/bin/bash
#Script to install Bedrock Wordpress stack on OSX
brew doctor
brew tap caskroom/cask
brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup
brew cask install virtualbox vagrant
brew install rbenv ruby-build
#use bashrc if you are not on zsh
cat >> ~/.zshrc << EOF
# ###
@ziadoz
ziadoz / AbstractForm.php
Created September 24, 2014 17:57
Aura Input / Filter Wrapper
<?php
/**
* A simple wrapper around Aura Input.
*/
use Aura\Input\Form;
use Aura\Input\Builder;
use Aura\Input\Filter;
use Aura\Html\HelperLocatorFactory;
use Aura\Filter\FilterFactory;
@adamsilverstein
adamsilverstein / gist:542528726a67797e3cbf
Created July 21, 2014 17:20
Strict Error Reporting Off
<?php
/**
* Plugin Name: Force Strict OFF
* Description: Forces Strict errors off
* Author: John P. Bloch
* Version: 0.1
* License: GPLv2
*/
if ( WP_DEBUG ) {
@dmlogic
dmlogic / AngularTrait.php
Last active August 29, 2015 14:03
Securing Angular with Laravel
<?php namespace MyApp\Response;
use Cookie;
use Request;
use Session;
use Symfony\Component\HttpFoundation\Cookie as SymfonyCookie;
trait AngularTrait {
/**
@adamsilverstein
adamsilverstein / expanded_alowed_tags
Last active April 3, 2024 18:15
WordPress expanded allowed tags for wp_kses with iframe, forms, etc.
function expanded_alowed_tags() {
$my_allowed = wp_kses_allowed_html( 'post' );
// iframe
$my_allowed['iframe'] = array(
'src' => array(),
'height' => array(),
'width' => array(),
'frameborder' => array(),
'allowfullscreen' => array(),
);
<?php
/**
* Plugin Name: Static Templates
*
* If most of your site content is in .php template files, and you're tired of
* creating new pages, assigning them page templates, creating page templates
* then doing it all over again on production, this plugin is for you.
*
* Examples:
*