Skip to content

Instantly share code, notes, and snippets.

View saxenap's full-sized avatar

Praveen Saxena saxenap

  • West Lafayette, IN
View GitHub Profile
DB_NAME=
DB_USER=
DB_PASSWORD=
DB_HOST=
DISPLAY_ERRORS=
AUTH_KEY=''
SECURE_AUTH_KEY=''
LOGGED_IN_KEY=''
NONCE_KEY=''
find / -xdev -type f -exec grep -rlPo '(?<=href=")[^"]*/index.html' -l {} \; -exec sed -i 's/index.html//g' {} \;
yum install php70 php70-devel php70-json php70-mbstring php70-mcrypt php70-mysqlnd php70-pdo php70-opcache php70-pecl-uuid php70-pecl-yaml
wget http://pear.php.net/go-pear.phar
php go-pear.phar
sed -i "$ s|\-n||g" /usr/bin/pecl
@saxenap
saxenap / apache-php7-environment.sh
Last active April 9, 2018 16:14
Sets up Apache and Php-7 Environment with folder permissions.
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf apache-php7-environment && wget -O apache-php7-environment https://gist.githubusercontent.com/saxenap/571c05380c62c865c96ef32c578eb573/raw && chmod 777 apache-php7-environment && ./apache-php7-environment
sudo ln -sf /usr/share/zoneinfo/EST /etc/localtime
echo " Timezone modified to EST."
The GMAT essays should be written in standard written English. That is, you should not use spoken English, or the casual English you use when writing an email to a friend, but the English used for writing papers and assignments, a resume, formal letters, etc.
Specifically, this means the following:
A. Do not use contractions:
Incorrect: John doesn't smoke.
Correct: John does not smoke.
B. Do not use abbreviations:
Incorrect: Intl.
Correct: International
@saxenap
saxenap / xdebug-webgrind.sh
Last active February 29, 2020 18:56
Install debug & webgrind on Amazon EC2
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf xdebug-webgrind && wget -O xdebug-webgrind https://gist.githubusercontent.com/saxenap/a2d96a30629f83d60ead1dcabec9fc35/raw && chmod 777 xdebug-webgrind && ./xdebug-webgrind
pecl install xdebug
echo "zend_extension=/usr/lib64/php/modules/xdebug.so" > /etc/php.d/xdebug.ini
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf phalcon && wget -O phalcon https://gist.githubusercontent.com/saxenap/76c805f6adc5ba8995c374e84ff03743/raw && chmod 777 phalcon && ./phalcon
git clone git://github.com/phalcon/cphalcon.git
@saxenap
saxenap / mysql_secure_installation.sh
Last active January 15, 2018 20:44 — forked from naillizard/mySQLSecure.sh
Automate mysql secure installation for Red Hat Enterprise Linux (RHEL) compatible distributions
#!/bin/bash
#
# Copyright (c) 2014-2017 Praveen Saxena <>
# License: BSD-3-Clause
#
# To get:
# rm -rf mysql_secure_installation && wget -O mysql_secure_installation https://gist.githubusercontent.com/saxenap/b84d67f63a5fc315c5895648438fd2d0/raw && chmod 777 mysql_secure_installation && ./mysql_secure_installation
#
# Automate mysql secure installation for Red Hat Enterprise Linux (RHEL) compatible distributions
#
@saxenap
saxenap / gist:596b5bf709856a677f03ed9397a36a0f
Created January 15, 2018 22:39 — forked from sheikhwaqas/gist:5577119
Install Apache / MySQL & PHP on a freshly created Red Hat Enterprise Linux Amazon EC2 Instance
# Login to your Amazon EC2 Instance via SSH.
# If you are logged in as root, you don't need to use the sudo command in the commands below.
# Update the current packages installed on the system
sudo yum upgrade
# Install the required packages before installing Apache / MySQL and PHP
sudo yum install gcc gcc-c++ autoconf automake pcre-devel \
libxml2-devel bzip2-devel libcurl-devel freetype-devel \
openldap-clients cyrus-sasl-devel openldap-devel \
# rm -rf datetime.conf && wget -O datetime.conf https://gist.githubusercontent.com/saxenap/cecdcc6d4b0755d41784a16e5ecaff40/raw
php_value date.timezone "America/Indiana/Indianapolis"