egrep valid ip address

Example to egrep valid ip address

To egrep all valid ip addresses in current directory:

neo4j SSL howto

Getting SSL to work with neo4j can be very frustrating.  The crux of the problem is that their documentation isn’t very robust.

Here’s what they don’t tell you:

Both the cert and the key MUST be in DER format!

example to convert a PEM formatted crt key to a der formatted crt key openssl x509 . . . → Read More: neo4j SSL howto

convert valid godaddy cert key to java keystore for tomcat

I spend hours trying to figure this out and here are the fruits of my labor

Howto: Import valid cert and key into a java keystore

note: use the same password in each step

Step 1: Export your key and cert to pkcs12 format

Step 2: Import p12 file to java key store

. . . → Read More: convert valid godaddy cert key to java keystore for tomcat

nginx code igniter remove index.php prefix

Objective

Remove the index.php prefix from your nginx code igniter instance.

Assumptions In your main nginx conf file you define how php is called (unix socket or ip:port) You will replace foo.example.com with whatever your domain name is The proper logging path will be defined per your system as opposed to the location i have . . . → Read More: nginx code igniter remove index.php prefix

passing bash variable to perl command in bash script

Recently I tried passing a bash variable to perl command in bash script, it didn’t end well.

Troy Engel from http://tacticalvim.wordpress.com/ was nice enough to point out the issue:

use sed instead of perl for what you need; it’s simpler, faster and uses the bash variables easily.

I set up a test script /home/someuser/test.sh to show:

. . . → Read More: passing bash variable to perl command in bash script

append text to end of file with cat

Overwrite File with multi-line text

Objective: Append multiline text with cat Examples Tell log rotate to start rotating the http log (this overwrites any existing file)

 

append text to end of file with cat

Q: What is this magical feature? A: Here Documents . . . → Read More: append text to end of file with cat

install geoip php centos

To install geoip php centos follow these steps

Install Steps

Verify Installation

Install Django centos redhat

To install Django on Centos or Redhat

Install Python 2.7.2 redhat centos

To Install Python 2.7.2 on redhat or centos

install varnish centos redhat

To install varnish on centos or redhat