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 "bla bla word word1 = string1 string2" | sed -e 's/.* \([^ ]*\)=.*/\1/g' Some basic regexp hints: the first /…/ is what your string should match s…
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;…
If you need to find the url that serves a particular requests, i.e.: 400, you can try running this on the varnish server: varnishlog -i RxURL,TxStatus | tee…