Use mysql with docker expose port and share data folder
I don’t know why this is not in the list of examples on the mysql website. One of the first thing I want to know is if mysql is up and running and be able to connect to it using a mysql client like...
View ArticleHow to delete all the docker containers that are stopped
docker rm `docker ps -a | grep Created | awk '{print $1}'` The post How to delete all the docker containers that are stopped appeared first on Martin Fournier.
View ArticleHow to store the result of a linux command into a variable
myvariable=`docker ps -a | grep mysql | awk ‘{print $1}’`echo $myvariable The post How to store the result of a linux command into a variable appeared first on Martin Fournier.
View ArticleHow 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...
View ArticleConfigure Spring-boot to run with Fiddler over https
12345-DproxySet=true -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8888 -Djavax.net.ssl.trustStore="C:\Program Files\Amazon Corretto\jdk1.8.0_212\bin\FiddlerKeystore"...
View ArticleHow to Kill a windows process
This is the command 1netstat -aon |find /i "listening" |find "8080" TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 6120 TCP [::]:8080 [::]:0 LISTENING 6120 1taskkill /F /PID 6120 The post How to Kill a windows...
View ArticleHow to monitor remotely a windows tomcat application with visual vm (jmx)
add the following lines under “Java Options: ” in the tab “Java” of the tomcat7w.exe 1234-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8008...
View ArticleHow 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...
View ArticleHow to format XML in GVIM
In this tutorial we are going to format an XML via the VIM tool First, highlight the XML you want to format. Then, in normal mode, type ! xmllint --format - Your command-line at the bottom will look...
View ArticleHow to change the fonts in gvim on windows
add a file named _vimrc to your home directory. 123set nobackup set noswapfile set guifont=Consolas:h7:cANSI:qDRAFT In the gvim menu change the font to the format you would like to have. Then query...
View ArticleHow to split a windows with gvim
To split a window horizontally you need to press ctrl+w in command mode then wait for a “w” to show on the bottom right of the screen then press “s” 1CTRL+w s To split a window vertically you need to...
View ArticleHow to explorer the file system and open a file with gvim
To navigate the file system with gvim 1 :Explore To navigate the file system in a split window 1 :Sexplore To navigate the file system in a vertical window 1 :Vexplore The post How to explorer the file...
View ArticleHow to normalize and denormalize data between 0 and 1
Some AI algo works better with values between 0 and 1 but it is rare to have data already between 0 and 1. The following formula will show you how to convert an array of data to a normalized Normalize...
View ArticleCalculate time spent running a flow with mulesoft
The component “timer-interceptor” is a great tool to get how much time it takes for a flow to complete. All you need to do is put it somewhere in the flow and it will output something like this in the...
View ArticleRunning graphical application like wine on a headless server with xvfb
I needed to run a windows application using wine on linux on a headless server. Here is the solution I have found. Running the application with a software named Xvfb. Xvfb is a virtual frame buffer so...
View ArticleHow to run Junit test with mule
Doing Junit with mule is pretty simple. You only need to extend the class 1org.mule.tck.junit4.FunctionalTestCase here is a simple example : package product_registration;...
View ArticleHow to install metatrader 5 on linux ubuntu xenial
There is 2 basics steps to install Metatrader 5 on linux. You need to install right version of wine and ubuntu xenial does not have the right version in its repository. The one that comes with Ubuntu...
View ArticleHow 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...
View ArticleWork around to make metatrader fonts less ugly on a mac
I was running metatrader 4 and 5 on my mac using wine and the fonts were all ugly. Looking around on the web made me realise taht I could export a system variable to let wine know how to render...
View ArticleHow to do port forwarding using ip tables
1/sbin/iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 The post How to do port forwarding using ip tables appeared first on Martin Fournier.
View Article