Skip to content

Instantly share code, notes, and snippets.


Abhishek Ghosh AbhishekGhosh

View GitHub Profile
AbhishekGhosh / opcache.ini
Created Feb 10, 2016 — forked from tegansnyder/opcache.ini
OpCache settings for Magento on PHP 5.5.14. Store this file as /etc/php.d/opcache.ini
View opcache.ini
; Enable Zend OPcache extension module
; Determines if Zend OPCache is enabled
; Determines if Zend OPCache is enabled for the CLI version of PHP
; The OPcache shared memory storage size.
View defer-cf7-scripts.php
<?php # -*- coding: utf-8 -*-
declare( encoding = 'UTF-8' );
* Plugin Name: Defer Contact Form 7 Scripts
* Description: Adds <code>defer='defer'</code> to enqueued javascripts.
* Version: 1.0
* Required: 3.3
* Author: Thomas Scholz
* Author URI:
* License: GPL
AbhishekGhosh / gist:5368861
Last active Dec 16, 2015 — forked from jocubeit/gist:1713910
Run only the commands without the Number sign (#), its not a script. This is thing that should be read...
View gist:5368861
# Install libxml2 using Homebrew
# If you don't have Homebrew, follow the instructions at:
# -------------------------------------------------------
brew install libxml2
# Install libxslt from source code
# If you don't have wget, follow the instructions at:
# Or use Homebrew:
AbhishekGhosh / 0_reuse_code.js
Created Aug 22, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
# Report time to first byte for the provided URL using a cache buster to ensure
# that we're measuring full cold-cache performance
while (($#)); do
echo $1
curl -so /dev/null -H "Pragma: no-cache" -H "Cache-Control: no-cache" \
-w "%{http_code}\tPre-Transfer: %{time_pretransfer}\tStart Transfer: %{time_starttransfer}\tTotal: %{time_total}\tSize: %{size_download}\n" \
"$1?`date +%s`"
View fix_homebrew.rb
# This script fixes /usr/local only.
# 6th January 2010:
# Modified the script to just fix, rather than install. - rpavlik
# 30th March 2010:
# Added a check to make sure user is in the staff group. This was a problem
# for me, and I think it was due to me migrating my account over several