My technical short notes

Containerization – Is it the future?

An interesting read:-

Remove a folder history from git

If you accidentally pushed to git a folder that you don’t want in version control, here is what you can do to get rid of it from git completely

Here the example assumes you pushed the folder node_modules, and you want to remove it’s complete history

git filter-branch --tree-filter 'rm -rf node_modules' --prune-empty HEAD

git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d

echo node_modules/ >> .gitignore

git add .gitignore

git commit -m 'Removing node_modules from git history'

git gc

git push origin master --force

Source: stackoverflow

Solr Cloud: Start & Stop


  • Start the leader node

bin/solr -c -p 8983 -s example/products/node1/solr

where: –

8983 is the port where you want Solr leader node to run

example/products/node1/solr is the solr home for this node.

  • Start the other nodes providing the Zookeeper host and port

bin/solr -c -p 7574 -s example/products/node2/solr -z localhost:9983

where: –

7574 is the port where you want this Solr node to run

example/products/node2/solr is the solr home for this node.

localhost:9983 is the hostname:port for Zookeeper


bin/solr stop -all


Download Solr Config from Zookeeper

Solr Cloud uses zookeeper to store the config files. Here is how you can download those files from zookeeper. You can use these files to be committed to your version control system.
cd solr-6.1.0/server/scripts/cloud-scripts
./ -zkhost  -cmd downconfig -confdir  -confname


./ -zkhost -cmd downconfig -confdir myconffolder -confname products

Starting kafka

Start Zookeeper
bin/ config/

Start kafka server

bin/ config/

Create a free website or blog at

Up ↑