Restrict access to Tomcat 9 manager
To prevent access to the Tomcat 9 Manager to all IPs except those authorized, it is necessary to configure the file context.xml of the manager application. The file should be found in the following path:…
To prevent access to the Tomcat 9 Manager to all IPs except those authorized, it is necessary to configure the file context.xml of the manager application. The file should be found in the following path:…
using System; public class Program { public static void Main() { var request = (System.Net.HttpWebRequest) System.Net.WebRequest.Create(“https://api.dotmaui.com/client/1.0/jsmin/”); var postData = “apikey=YOUR_API_KEY”; postData += “&url=https://code.jquery.com/jquery-3.4.1.js”; postData += “&asciionly=false”; var data = System.Text.Encoding.ASCII.GetBytes(postData); request.Method = “POST”; request.ContentType =…
TRUNCATE schema.mytable RESTART IDENTITY CASCADE;
Here is a small function to remove empty lines from a string without the need for regular expressions. function delBlankLines(myString) { var stringArray = myString.split(‘\n’); var temp = [""]; var x = 0; for (var…
XML Beautifier 1.5.2 released, fixed the bug in case of xml declaration with single quotes. https://dotmaui.com/xmlbeautify/
We have released HTML Encode Decode online, another fast and advertising-free tool. Try it now! https://dotmaui.com/html-encode-decode/
This script written in PHP will delete emails older than 120 days from an imap email account. <?php $days = 120; $time = strtotime(date(“Y-m-d”) . ” – ” . $days . ” days”); $date =…
This function written in plpgsql splits the string according to the separator and returns the last part. If the separator is not present in the string this function returns an empty string. CREATE OR REPLACE…
The first thing to do is to compile the .go file to make it executable: go build myfile.go This will produce a file called myfile that is executable. After that run the command from the…
Production applications should not be heavily dependent on CDN activities. Applications should use a fallback resource when the CDN is not available. <script src=”https://cdn.dotmaui.com/libs/jquery/3.4.0/jquery.min.js”></script> <script> window.jQuery || document.write(‘<script src=”/js/jquery.min.js”><\/script>’); </script>