Skip to content

Instantly share code, notes, and snippets.

View Amar-Chaudhari's full-sized avatar

Amar Chaudhari Amar-Chaudhari

  • Boulder, CO
View GitHub Profile
@Amar-Chaudhari
Amar-Chaudhari / Vagrantfile
Created August 28, 2016 05:27
Vagrantfile for Junos Topology
#
# 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 May 26, 2023 15:55
How To Compile And Install PHP Extensions From Source

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 November 13, 2023 18:35
Install PHP-5.6.22 from source

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 December 4, 2020 17:27
Nginx + Gunicorn + Django Centos 7

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 July 6, 2016 12:47
Nginx configuration for Wordpress blog on subdirectory

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;