How to run splunk in docker and view tomcat logs

This might be overkill but why not use splunk on your dev PC to see what is going on in your tomcat log 1 docker run -d -p 8000:8000 -v C:\dev\app\tomcat-7.0.94\logs:/opt/tomcat/logs -e "SPLUNK_START_ARGS=–accept-license" -e "SPLUNK_PASSWORD=password" –name splunk splunk/splunk:latest

Read More »

How to grep recursively for xml files

To grep recursively we need the -r flag. To get only the file name we use the -l flag To get only files with extention .xml  we use the ‘–include’ flag and don’t forget to escape the spcial character with the ‘\’ 1grep -rl –include \*.xml "MARTIN" .

Read More »

How to install wine on linux ubuntu with X11 forwarding via vagrant

The following code should go into a bash file on the linux image that vagrant is running. 1234567echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections yes Y | udo apt-get install ttf-mscorefonts-installer sudo dpkg –add-architecture i386 sudo apt-get update yes Y | sudo apt-get install wine yes Y | sudo apt-get install winetricks yes Y […]

Read More »