Skip to content

Instantly share code, notes, and snippets.

View deepakaryan1988's full-sized avatar
🎯
Focusing

Deepak Kumar deepakaryan1988

🎯
Focusing
View GitHub Profile
@deepakaryan1988
deepakaryan1988 / wiki-gen-skill.md
Created April 7, 2026 03:23 — forked from farzaa/wiki-gen-skill.md
personal_wiki_skill.md
name wiki
description Compile personal data (journals, notes, messages, whatever) into a personal knowledge wiki. Ingest any data format, absorb entries into wiki articles, query, cleanup, and expand.
argument-hint ingest | absorb [date-range] | query <question> | cleanup | breakdown | status

Personal Knowledge Wiki

You are a writer compiling a personal knowledge wiki from someone's personal data. Not a filing clerk. A writer. Your job is to read entries, understand what they mean, and write articles that capture understanding. The wiki is a map of a mind.

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@deepakaryan1988
deepakaryan1988 / flow.json
Created December 9, 2020 06:00 — forked from drobiazko/flow.json
MongoDb Find Demo
{
"nodes": [
{
"title": "Code",
"icon": "images/icons/code_64.png",
"top": 165,
"left": 372,
"compID": "code",
"code": "next(null, { message : \"How does it work?\" });",
"id": "step_125"
@deepakaryan1988
deepakaryan1988 / hook_update_N.php
Created July 28, 2020 08:27 — forked from sumanthkumarc/hook_update_N.php
Drupal 8: Create a new table in database using hook_update_N()
<?php
/**
*The numbers are normally composed of three parts:
* - 1 or 2 digits for Drupal core compatibility (Drupal 8, 9, 10, etc.). This
* convention must be followed.
* - 1 digit for your module's major release version; for example, for 8.x-1.*
* use 1, for 8.x-2.* use 2, for Core 8.0.x use 0, and for Core 8.1.x use 1.
* This convention is optional but suggested for clarity.
@deepakaryan1988
deepakaryan1988 / drupal_phpcs_install.sh
Created November 10, 2017 11:07
Install PHPCS and use the Drupal Coding Standard from the coder module.
; cd into the directory you store code resources.
cd ~
; Clone PHP_CodeSniffer directly from the github repo.
; You could also install via pear.
git clone git@github.com:squizlabs/PHP_CodeSniffer.git
; Clone the coder branch you want.
@deepakaryan1988
deepakaryan1988 / drupal-7-example-local-settings.php
Created November 24, 2016 18:23 — forked from delphian/drupal-7-example-local-settings.php
Example of drupal 7 local settings.php file.
<?php
// To set up a local environment, make a duplicate of this file and name it
// local-settings.inc in the site directory that contains the settings.php file.
// Ignore sites/*/local-settings.php in the .gitignore file. Change the settings.php
// file to include local-settings.php if the file exists.
// Point database to local service.
$databases['default']['default'] = array(
'database' => 'local_db_name',
@deepakaryan1988
deepakaryan1988 / Running a drush command on all sites in multisite aegir installation
Created April 27, 2016 13:05
Bash script to loop through all the different platforms/sites on an aegir deployment, and performs drush commands against them.
#!/bin/bash
for dir in /var/aegir/platforms/*
do
cd "$dir/sites"
drush @sites -y ev "variable_set('smtp_host', 'your_host');"
drush @sites -y ev "variable_set('smtp_username', 'your_user');"
drush @sites -y ev "variable_set('smtp_password', 'your_pass');"
drush @sites -y ev "variable_set('smtp_port', 'your_port');"
done

Install MongoDB with Homebrew

brew install mongodb
mkdir -p /data/db

Set permissions for the data directory

Ensure that user account running mongod has correct permissions for the directory:

sign up for a new relic account first and you'd get the license key on your account page.

sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'

sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -

sudo apt-get update

sudo apt-get install newrelic-sysmond

sign up for a new relic account first and you'd get the license key on your account page.

sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'

sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -

sudo apt-get update

sudo apt-get install newrelic-sysmond