Not sure if there is another better way to do it. But I wrote this script to perform full or delta imports. more details http://wiki.apache.org/solr/DataImportHandler #!/bin/bash # script to index Solr # by Felipe Ferreira Sept 2013 TYPE=$1 DATE=`date +%d_%m_%y` […]
How to find what process are using Swap
How to find what process are using Swap /proc/meminfo – This file reports statistics about memory usage on the system. It is used by free to report the amount of free and used memory (both physical and swap) on the […]
android 4.4.4 how to hard reset factory moto g
To hard reset the Motorola Moto G Android 4.4.4 Make sure the phone has over 50% of battery, remove the SIM card 1-Press Volume- and Power for 4 seconds 2-When you see Menu use Volume- to Recovery press Volume+ to […]
varnishadm ban
When cleaning the cache on varnish 3.0 there is a way to only ban the specific host. The command is: varnishadm -T localhost:1234 ban req.http.host ~ “site.com” && req.url ~ “/path”
How to get varnish client.ip behind ELB
How to get varnish client.ip behind ELB I needed to filter access by IP using varnish acl, but when your varnish is behind a Amazon ELB Load Balancer, by default it doesn’t work, so here is the solution! Tested using […]
nagios vmware esx plugin
The best script to monitor VMWare ESX using nagios was developed by Steve Shipway. 1. Download the script wget https://felipeferreira.net/wp-content/uploads/2015/05/VMWare.zip unzip VMWare.zip cd VMWare chmod +x check_vmware.pl && sed -i -e ‘s/r$//’ check_vmware.pl ./check_vmware.pl OBS: It is normal to get […]
solr peformance
How to monitor Solr performance under Tomcat. I keep track of how many access and the performance, based on response time. For this I have 2 scripts: Here is the code: #!/bin/bash # script to check how many erros in […]
