Skip to content

Instantly share code, notes, and snippets.

View sheikhwaqas's full-sized avatar

Waqas Ashraf sheikhwaqas

View GitHub Profile
<?php
### --- Snip --- ###
App::after(function($request, $response)
{
// HTML Minification
if(App::Environment() != 'local')
{
if($response instanceof Illuminate\Http\Response)
@sheikhwaqas
sheikhwaqas / .bash_profile
Created June 13, 2013 16:04 — forked from JeffreyWay/.bash_profile
Recommended Bash Profile for Mac OS X
# laravel new-app
alias laravel="git clone -o laravel -b develop https://github.com/laravel/laravel.git"
alias artisan="php artisan"
alias migrate="php artisan migrate"
alias serve="php artisan serve"
alias dump="php artisan dump"
alias t="phpunit"
# Generators Package
@sheikhwaqas
sheikhwaqas / gist:5577119
Last active November 28, 2018 07:21
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 \
@sheikhwaqas
sheikhwaqas / gist:5575303
Created May 14, 2013 11:38
Install Apache 2.x.x on Red Hat Enterprise Linux
# To install C/C++ Compilers, AutoConf and AutoMake
yum install gcc gcc-c++ autoconf automake -y
# Install Perl Compatible Regular Expressions Libraries (PCRE)
yum install pcre-devel -y
# Download Apache Source from Apache's Website
# http://httpd.apache.org/download.cgi
wget http://www.us.apache.org/dist/httpd/httpd-2.x.x.tar.gz