Git Error: ECMDERR Failed to execute “git ls-remote –tags –heads git://”, exit code of #128 fatal: unable to connect to[0:]: errno=Connection refused

Do the following and try again:

git config --global url."https://".insteadOf git://


Simple server using node.js

Simplest Node.js server is just:

$ npm install http-server -g
Now you can run a server via the following commands:

$ cd MyApp

$ http-server

For more, see

Disable services in OSX Mac using launchctl

Run this in terminal:

sudo launchctl unload -w


sudo launchctl unload -w*

for disabling all the services that start with

VirtualBox Guest Additions

I had a hard time installing these in Lubuntu since it was failing due to not able to find ‘gcc and make’ utils. It is easier to install it from apt repo using:
sudo apt-get install virtualbox-guest-dkms

CSS vertical centering using display: table and display: table-cell.

Sometime the div with display: table doesn’t stretch to the full height of the containing div. It is probably because the position for that div was set as position: absolute. To overcome this limitation, wrap that div with an outer div with position: absolute and make this div’s position: static. That will stretch display: table div element of the height of the parent div.

More on that here:

Running Mac OS X in fullscreen in virtualbox

There are several options to do that, just Bing. But only one did the trick for me. Here it is. During the boot, hit enter and enter the following boot option:
“Graphics Mode”=”1600x900x32”
1600×900 is the resolution of my Dell laptop screen (Host machine). You can find more boot options here:

AEM clear clientlibs cache

Visit this url on Author instance:

If clearing cache or rebuild doesn’t fix the issue with clientlibs not rendering correctly, restarting the publish instance should take care of it.

CQ5 cq:noDecoration supresses editbar

If you add that property to jcr:root element of a component, edit bar will be suppressed. More on that here:

Cookies not getting deleted?

I was doing everything right but cookie still wasn’t getting delete. It turned out to be the request.forward at the last line servlet that was causing the issue. The forward method was overwriting the headers set in the servlet with the response from forwarded page.

CQ5 AEM : org.apache.lucene.index.IndexFormatTooOldException

If your CQ5 instance doesn’t come up and you see this in the logs:

*WARN* [FelixStartLevel] org.apache.jackrabbit.core.query.lucene.DefaultRedoLog Malformed redo entry:
*ERROR* [FelixStartLevel] org.apache.jackrabbit.core.RepositoryImpl Failed to initialize workspace ‘crx.default’ javax.jcr.RepositoryException: Unable to initialize query handler:

Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource: ChecksumIndexInput(segments_1)): 0 (needs to be between -1 and -11). This version of Lucene only supports indexes created with release 1.9 and later.


  1. Stop CQ
  2. Go to crx-quickstart\repository\workspaces\crx.default
  3. Delete the index_* files
  4. In the workspace.xml, add the three lines
    <SearchIndex class=””>
    <param name=”path” value=”${wsp.home}/index”/>
      <param name=”enableConsistencyCheck” value=”true”/>
        <param name=”forceConsistencyCheck” value=”true”/>
        <param name=”autoRepair” value=”true”/>
  5. Restart.
  6. If still have issue, drop the index folder under crx.default.

Related error :