Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Crunching code

Kirtan Gajjar kirtangajjar

😎
Crunching code
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am kirtangajjar on github.
  • I am kirtangajjar (https://keybase.io/kirtangajjar) on keybase.
  • I have a public key ASCXIuB2dd5Pucb0lWpxzfEhhWMR60UV5yu1WULPBrcIbgo

To claim this, I am signing this object:

@kirtangajjar
kirtangajjar / ee3-wpredis.conf
Created Jul 2, 2018
Config file for single wpredis site on ee3
View ee3-wpredis.conf
# configuration file /etc/nginx/nginx.conf:
user www-data;
worker_processes auto;
worker_rlimit_nofile 100000;
pid /run/nginx.pid;
events {
worker_connections 4096;
multi_accept on;
}
@kirtangajjar
kirtangajjar / Migrations.md
Last active Jun 27, 2018
Handling Migrations In EE [RFC]
View Migrations.md

Handling migrations in EE,

Migration Classes & file structure

Migrations will be used to make changes(db/file/containers) to existing ee installation. Migrations will be stored in /migrations folder in EE root. Each migration will be stored in seperate file. Name would be like 'timestamp_migration_title.php' i.e '1530101102_migrate_to_beta2.php'

Each of them will have a class that will extend a base abstract class. The abstract class will have one method - migrate(). The class that implements it can create more methods to group different types of changes.

View slideshow-plugin.php
<?php
/**
* Plugin Name: rtCamp Slideshow Plugin Assignment
* Description: A simple plugin that can add slideshow to any post
* Version: 1.0.0
* Author: Kirtan Gajjar
* License: MIT License
*/
/**