Server
Log docker console to file
A simple script to log the docker console log in a file name “out.log” using the docker name
Java
Log/Trace SOAP XML message spring boot
A short guide that briefly explain how to trace all inbound/outbound SOAP XML messages produced with java ws library. In this case it’s used the following implementation of java ws. Set into the “jvmArgs” a “true” the option “com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump” Now all the SOAP messages will be logged on the standard Read more…
Java
Remote debug spring boot
A short guide that briefly explain how to remote debug using visual studio code in a spring boot project gradle based. Spring configuration Open your spring project, detect the build.gradle file and edit as follow add to “jvmArgs” the JDWP configuration passing the address properly (it is possible also to Read more…
Bash
Ubuntu – restore large file from trash
If you are trying to restore really large file from the ubuntu trash, you could experience some nautilus freeze. You can do easily using shell in a few seconds
Java
Convert List to Array
In Java to convert a List (like ArrayList) to an Array is it possible in this way
Bash
Wireshark – Capture loopback – Windows
How to capture loopback traffic using wireshark and rawcap. Windows quick tutorial. If you are trying to capture traffic from a machine to itself, that traffic will not be sent over a real network interface, even if it’s being sent to an address on one of the machine’s network adapters. Read more…
Js,Ts,Css
Google Analytics – Tracking virtual pageviews
If you website use google analytics with “ga” object in page, you can use the following snippet to send custom page viewed. It can be useful to track certain actions, such as a form submitted with success, or whateaver is not a phisical page. In this case we would like Read more…
Bash
Windows alternative for basic shell commands
Just a list of the common commands that I use on cmd console Copy a file Robust copy – file and folders Delete file Delete recursive a folder Netstat – Connections check Process kill using PID number Tail
Js,Ts,Css
WordPress Hestia theme – css tricks
Big Title Section – Big Title Background – Remove overlay If you would like to remove the annoying overlay applied by the default in your wordpress hestia theme to the big tile background image, just put this custom css code inside the “Additional css code” section Front page section – Read more…