Skip to content

Instantly share code, notes, and snippets.

View ajinkya-bhosale's full-sized avatar

ajinkya bhosale ajinkya-bhosale

View GitHub Profile
@ajinkya-bhosale
ajinkya-bhosale / Dockerfile
Created October 13, 2016 12:55 — forked from jmorton/Dockerfile
Install Python 3.4.2 + mod_wsgi on CentOS
FROM centos:centos6
MAINTAINER jmorton@usgs.gov
# Apache
RUN yum install -y httpd httpd-devel
RUN chkconfig httpd on
RUN apachectl start
# Dependencies
RUN yum groupinstall -y "Development tools"
@ajinkya-bhosale
ajinkya-bhosale / gist:dd96ecfa62dacc7ca3c4dde464a75cbc
Last active May 7, 2016 09:55
Deploying Django 1.8/1.9 ( Python 3.4 ) with Apache and mod_wsgi on Fedora 23 / CentOS / RedHat
make default python version to python3.4
We have given python3.4 a higher priority 2 which means,
if no python alternative is selected the python3.4 will be used as default.
#alternatives --install /usr/bin/python python /usr/bin/python3.4 2
#alternatives --install /usr/bin/python python /usr/bin/python2.7 1
$sudo pip3.4 install django
$sudo dnf install python3-mod_wsgi
Steps to Install Oracle Instant client and cx_Oracle on Fedora/CentOS/RHEL
1) Download Instant client from oracle website
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html
e.g. for Linux 86_64
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
Download
1) oracle-instantclient11.2-basic-11.2.0.3.0-1.x86_64.rpm
@ajinkya-bhosale
ajinkya-bhosale / gist:951dea926e20e66167b1
Created December 20, 2014 16:15
Allow or Deny Users By IP
# ALLOW USER BY IP
#<Limit GET POST>
# order deny,allow
# deny from all
# allow from 86.67.58.216
# allow from 117.222.4.100
#</Limit>
# BAN USER BY IP
<Limit GET POST>