Skip to content

Instantly share code, notes, and snippets.

@JohnAdamsy
JohnAdamsy / cursor-plan-mode-prompt.md
Last active December 9, 2025 01:06
A prompt for Cursor to do planning similar to Kiro or Claude Code. Modify as you wish, then paste it in the custom mode's instructions field.

Identity

You are an expert AI assistant integrated into the Cursor IDE. Your current specialty is Plan Mode. Your sole purpose in this mode is to collaborate with developers to transform a high-level feature idea into a comprehensive and actionable software plan.

You guide the user through a structured process of defining requirements, creating a technical design, and generating a detailed list of implementation tasks. You are a methodical planner and architect.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

Rules

@piotrekkaminski
piotrekkaminski / docker_beta.md
Last active July 2, 2025 00:06
Docker Beta Installation Info & FAQ
@jlem
jlem / ApplicationsServiceProvider.php
Created August 21, 2015 14:35
Laravel 5 App Skeleton
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Request;
use View;
use App;
abstract class ApplicationsServiceProvider extends ServiceProvider
{
public function register()
@tegansnyder
tegansnyder / Magento_Crons.md
Last active January 11, 2017 15:47
Magento Scheduled Crons / Debugging Tips

Stock Magento Enterprise Cronjobs:

These indexers will run at the schedules list below automatically. No need to have a custom cron job setup. Keep indexers at "Update When Scheduled"

enterprise_targetrule_index_reindex
<cron_expr>0 * * * *</cron_expr>
enterprise_search_index_reindex_all
0 3 * * *
@brandonkelly
brandonkelly / templating.md
Last active November 14, 2025 22:07
Templating in EE vs. Craft
@svenvarkel
svenvarkel / fix_permissions.sh
Created December 20, 2013 22:40
Fix file permissions in your Magento project folder. It has some constraints: - use group name "dev" for your developers and your "php/web server user" (www-data) - it's untested in other environments than Debian/Ubuntu
#!/bin/bash
#
# This script fixes permissions on Magento subtree
#
# Usage:
# cd to virtual host folder
# run script by issuing utils/fix_permissions.sh . command
#
# Author Sven Varkel <sven@mageflow.com>
# Copyright 2013 MageFlow Ltd
@Marko-M
Marko-M / magento-dump-import-ssh.sh
Last active November 22, 2017 14:00
Almost one-liner dump and import of Magento database trough SSH (with ignore tables and triggers definer adjustment)
#!/bin/bash
# Marko Martinović
# Prints command traces
set -x
# Tables to ignore
IGNORE_TABLES=(dataflow_batch_export dataflow_batch_import log_customer log_quote log_summary log_summary_type log_url log_url_info log_visitor log_visitor_info log_visitor_online report_event index_event enterprise_logging_event_changes core_cache core_cache_tag core_session core_cache_tag)
# Source SSH
delimiter ;;
drop procedure if exists build_catalog;;
create procedure build_catalog(IN categories INT, IN products INT)
begin
SET @category_count = 1;
SET @CATNAMEPREFIX = "Category ";
SET @CATURLKEYPREFIX = "cat-";
SET @CATURLPATHPREFIX = "catpath-";
SET @ROOTCATEGORY = 2;
SET @INCLUDEINMENU = 1;
@trinitronx
trinitronx / truecrypt_fix.bash
Last active November 4, 2025 11:07 — forked from jimjh/truecrypt_fix.bash
Fixes annoying brew doctor messages caused by Truecrypt
#!/bin/bash
libs=( "/usr/local/lib/libmacfuse_i32.2.dylib" \
"/usr/local/lib/libosxfuse_i32.2.dylib" \
"/usr/local/lib/libosxfuse_i64.2.dylib" \
"/usr/local/lib/libmacfuse_i64.2.dylib" \
"/usr/local/lib/libosxfuse_i32.la" \
"/usr/local/lib/libosxfuse_i64.la" \
"/usr/local/lib/pkgconfig/osxfuse.pc" )
@mystix
mystix / magento-reset-dashboard.sql
Last active May 3, 2022 22:16
Magento: reset dashboard data
SET foreign_key_checks = 0;
-- Last 5 Search Terms / Top 5 Search Terms
TRUNCATE TABLE catalogsearch_fulltext;
TRUNCATE TABLE catalogsearch_query;
TRUNCATE TABLE catalogsearch_result;
-- Dashboard stats (e.g. "Most Viewed Products" etc)
TRUNCATE TABLE report_compared_product_index;
TRUNCATE TABLE report_event;