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

linux view disk space usage

Disk Space Usage Visual Tools

Some great tools for viewing disk space usage are: pydf (essential df with colors) Philesight (Web-based implementation of Filelight) ncdu (awesome text-only GUI!)

Philesight

Philesight is a tool to browse your filesystem and see where the diskspace is being used at a glance. Philesight is implemented as a simple command . . . → Read More: linux view disk space usage

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

howto set up local svn repository

Objective

Set up a local svn repository to store some code

Install subversion

Repository Setup

We will set up a path to store the repositories then create the initial repository

Initial Import of content to the repository Linux/Unix

Windows

Network

Accessing your svn repository remotely

If you aren’t using apache . . . → Read More: howto set up local svn repository

RHCSA Training Labs

These are some labs I have crafted to prep for the RHCSA exam.  Hopefully you will find this useful!

Brakertech’s RHCSA Training Labs Objective: Configure NTP Client to sync against a custom NTP server Configure Local NTP Server

The first step is to get your local ntp server running

Install Required Package

Modify /etc/ntp.conf . . . → Read More: RHCSA Training Labs