How to purge the cache of a page
I get sometimes requests from customers to invalidate the cache for a particular webpage only. From inside the server the PURGE request is allowed so: curl –insecure -I…
I get sometimes requests from customers to invalidate the cache for a particular webpage only. From inside the server the PURGE request is allowed so: curl –insecure -I…
echo | openssl s_client -connect maven.escenic.com:443 2>/dev/null | openssl x509 -noout -dates
ifdown eth0 ifup eth0
watch -n 5 free -m
If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize
:%s/<Ctrl-V><Ctrl-M>/\r/g Where means type Ctrl+V then Ctrl+M. Explanation :%s substitute, % = all lines <Ctrl-V><Ctrl-M> ^M characters (the Ctrl-V is a Vim way of writing the Ctrl ^…
grep -Fxvf file1 file2 Where -F, –fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. -x, –line-regexp Select…
If you are debugging big txt files, i.e. 6G+, a good start is to check what is at the top and at the end of it. export file=/Users/racoonlab/Downloads/engine.out;…
dos2unix -n oldfile.txt newfile.txt or if the error is within a script: sed -i -e 's/\r$//' your-script.sh Executing a shell script, might end with /bin/bash^M: bad interpreter: No…
The command: grep -Fxvf file1 file2 -F, –fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched. -x, –line-regexp…