Skip to content

Instantly share code, notes, and snippets.


Waqas Ashraf sheikhwaqas

View GitHub Profile
sheikhwaqas / gist:5575303
Created May 14, 2013
Install Apache 2.x.x on Red Hat Enterprise Linux
View gist:5575303
# 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
View filters.php
### --- Snip --- ###
App::after(function($request, $response)
// HTML Minification
if(App::Environment() != 'local')
if($response instanceof Illuminate\Http\Response)
View .gitignore
# .gitignore file for Xcode4 / OS X Source projects
# Version 2.0
# For latest version, see:
# 2013 updates:
# - fixed the broken "save personal Schemes"
# NB: if you are storing "built" products, this WILL NOT WORK,
sheikhwaqas /
Created Jun 30, 2014
Setting up LAMP on Vagrant
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Install essential packages
apt-get -y install \
gcc g++ autoconf automake make sendmail git ruby zsh acl zip unzip \
pkg-config gettext curl enchant \
libpcre3-dev libssl-dev libxml2 libxml2-dev libcurl4-openssl-dev libenchant-dev libfreetype6 libfreetype6-dev libbz2-dev \
libedit-dev libedit2 libtidy-dev libxslt1.1 libxslt1-dev libvpx-dev libxpm-dev libedit-dev libreadline-dev \
libjpeg8-dev libmcrypt4 libmcrypt-dev libmhash-dev libmhash2 mcrypt libc-client2007e libc-client2007e-dev
sheikhwaqas / gist:e26cd1fec78c1af986c8a269482e0e3e
Created Jan 6, 2017 — forked from learncodeacademy/gist:ebba574fc3f438c851ae
Nginx Node Frontend / Load Balancer / Static Assets Caching
View gist:e26cd1fec78c1af986c8a269482e0e3e
upstream project {
server {
listen 80;
location / {
sheikhwaqas /
Last active May 19, 2017
Install MongoDB Server on Ubuntu
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
sheikhwaqas /
Created Apr 9, 2018
Install Docker & Docker-Compose on Ubuntu 16.04 LTS (Xenial). Run this file with sudo.
# Install Pre-requisites
apt update
apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL | apt-key add -
add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
apt update
# Install Docker CE
apt install docker-ce -y
sheikhwaqas / P12toPEM.txt
Created Oct 10, 2018 — forked from shahdhiren/P12toPEM.txt
Convert P12 file for Push Notification to PEM format
View P12toPEM.txt
Development Phase:
Step 1: Create Certificate .pem from Certificate .p12
Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
Step 2: Create Key .pem from Key .p12
Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12
Step 3: Optional (If you want to remove pass phrase asked in second step)
Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem
sheikhwaqas / gist:5577119
Last active Nov 28, 2018
Install Apache / MySQL & PHP on a freshly created Red Hat Enterprise Linux Amazon EC2 Instance
View gist:5577119
# 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 \

Keybase proof

I hereby claim:

  • I am sheikhwaqas on github.
  • I am sheikhwaqas ( on keybase.
  • I have a public key ASAKmnco7goOktG8mZzZlAGmHelvaZu8joSYtU_C3Zem-go

To claim this, I am signing this object: