Skip to content

Instantly share code, notes, and snippets.

Amar Chaudhari Amar-Chaudhari

  • Boulder, CO
Block or report user

Report or block Amar-Chaudhari

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Amar-Chaudhari
Amar-Chaudhari / Vagrantfile
Created Aug 28, 2016
Vagrantfile for Junos Topology
View Vagrantfile
#
# Juniper lab v0.1
#
# ge-0/0/0.0: management interface
# ge-0/0/1.0 - ge-0/0/7.0: user interfaces
Vagrant.configure(2) do |config|
config.vm.box = "juniper/ffp-12.1X47-D15.4-packetmode"
config.vm.provider "virtualbox" do |vb|
@Amar-Chaudhari
Amar-Chaudhari / Readme.md
Last active Sep 21, 2018
How To Compile And Install PHP Extensions From Source
View Readme.md

If you have already compiled and installed PHP and need to install more extension, I will show you a quick-n-dirty way of installing and compiling your desired extension without re-compiling everything

Download & unzip the PHP5 source code

cd /tmp
wget -O php-5.6.22.tar.gz http://pl1.php.net/get/php-5.6.22.tar.gz/from/this/mirror
tar -zxvf php-5.6.22.tar.gz
cd php-5.6.22
@Amar-Chaudhari
Amar-Chaudhari / Readme.md
Last active Dec 30, 2018
Install PHP-5.6.22 from source
View Readme.md

Install Requirments

yum install bzip2-devel curl-devel libjpeg-devel libpng-devel freetype-devel libxml2-devel libc-client-devel libmcrypt-devel -y

Download Package

cd /tmp
wget -O php-5.6.22.tar.gz http://pl1.php.net/get/php-5.6.22.tar.gz/from/this/mirror
tar -zxvf php-5.6.22.tar.gz
cd php-5.6.22
@Amar-Chaudhari
Amar-Chaudhari / Readme.md
Last active May 10, 2019
Nginx + Gunicorn + Django Centos 7
View Readme.md

Nginx + Gunicorn + Django

Gunicorn configuration

Filename : /etc/systemd/system/gunicorn.service

[Unit]
Description=gunicorn daemon
After=network.target
@Amar-Chaudhari
Amar-Chaudhari / Readme.md
Created Jul 6, 2016
Nginx configuration for Wordpress blog on subdirectory
View Readme.md

Nginx configuration

WordPress single site rule Blog running on - /blog/ Example : www.xyz.com/blog

Filename : xyz.com

server {
     listen  80;
     server_name xyz.com;
You can’t perform that action at this time.