Neo4j Couldn’t get file lock

Problem

A non-root user is running Neo4j and you are seeing locking errors in the log file

Symptom

Cause

The non-root ID that is being used to start the Neo4j instance does not have a user_home directory. Therefore this non-root ID is unable to access the root user’s “/etc/.java/.systemPrefs”. This produces the aforementioned . . . → Read More: Neo4j Couldn’t get file lock

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

phone laws driving headphones

By State: phone laws driving headphones

Ever wondered if it is legal to wear headphones while driving in a particular state? Wonder no more!

Alabama

No prohibition on wearing of headsets while driving.

Alaska

Wearing an audio headset or earplugs is not permitted while driving.

Exempts headsets when used and designed to improve a driver’s . . . → Read More: phone laws driving headphones

Mandiant Highlighter – Log and Text File Viewer Review

Product Review - Mandiant Highlighter

Today we are looking at Mandiant Highlighter; Log and Text File Viewer

Product home page can be found here

Cost: Free!

Overview

MANDIANT Highlighter is a log file analysis tool. Highlighter provides a graphical component to log analysis that helps the analyst identify patterns. Highlighter also provides a number of features aimed at . . . → Read More: Mandiant Highlighter – Log and Text File Viewer Review

sed delete all lines after

Objective: Prep dev httpd.conf for production

Tasks:

Remove jenkins virtual host entry (which starts with a comment line “#Start Jenkins”) Replace .dev with nothing (ex: www.dev.example.com becomes www.example.com) Replace debug with error (ex: Loglevel debug becomes Loglevel error) Sed to remove lines after match

In this example we will use sed delete all lines after . . . → Read More: sed delete all lines after

rollback httpd.conf changes on error

To rollback httpd.conf changes on error use this script:

Websphere Stop All Servers Script

Here’s a ksh script to stop all running websphere servers. Booyah!

mod_dav_svn.so undefined symbol: dav_register_provider

Recently, I attempted to install subversion on Centos6.  Apache failed to start with this error:

mod_dav_svn.so undefined symbol: dav_register_provider

To fix this error simply add this in your httpd.conf:

Make sure you add the line above BEFORE these lines:

multiple reverse proxy host broken

Nathan Bridgewater explained how to configure multiple reverse proxies properly with apache and IIS (without losing original domain name).  I’m reposting this for myself to keep a record of this fine work.

multiple reverse proxy host broken iis serving up local server name instead of the ServerName that was originally passed to it. How to . . . → Read More: multiple reverse proxy host broken

copy teamsite user

To copy teamsite user permissions i’ve written a python script.

You’ll need to replace the path with the path of your teamsite’s bin directory: