Skip to content

Instantly share code, notes, and snippets.

View mayankguptadotcom's full-sized avatar
🏠
Working from home

Mayank Gupta mayankguptadotcom

🏠
Working from home
View GitHub Profile
@agokrani
agokrani / claude-code-prompt.txt
Last active March 16, 2026 23:07
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.
@tearstains
tearstains / .htaccess
Last active March 29, 2023 17:50
cache-control headers for htaccess
# cache-control headers
<ifModule mod_headers.c>
# One year for image files
<filesMatch ".(gif|ico|jpg|jpeg|png|svg|webp)$">
Header set Cache-Control "max-age=31536000, public"
</filesMatch>
# One year for JavaScript and CSS files
<filesMatch ".(js|css)$">
Header set Cache-Control "max-age=31536000, public"
@rsiddle
rsiddle / delayed-retargeting.js
Last active February 3, 2021 18:56
Hide Retargeting Cookies (Delayed Scripts)
/*
Description
Using the window.setTimeout function will allow you to hide retargeting cookies and execute them after 45 seconds.
This helps provide higher quality leads/audience. The example below shows Facebook's pixel tracker.
It could be used for other pixel tracking services too.
Case Study @ http://imscalable.com/blog/case-study-retargeting-done-wrong/
*/
// Facebook Code
@Adirael
Adirael / fix-wordpress-permissions.sh
Created August 17, 2012 23:16
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@Rarst
Rarst / r-debug.php
Last active June 12, 2025 01:56
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/