while true; do curl -s -I http://www.example.com/ | egrep Varnish-Host\|X-Cache | egrep –color pres\|X-Cache; done
sudo rm /private/var/log/asl/*.asl Note *.asl, not all the files in the directory.
find . -name .DS_Store -print0 | xargs -0 git rm –ignore-unmatch Also add “.DS_Store” to your git “.gitignore” file git add .gitignore git commit -m '.DS_Store bye bye!' UPDATED You might want to exclude some file for a specific repository then you can use: your-repo/.git/info/exclude…
This can be easily achieved using your terminal zip -r foo.zip foo -x "*.DS_Store" Where: a. -r for recursively including all directories underneath the targets we want to zip. b. foo.zip is the name of the zip archive we are creating c. foo is the…
The following shows how to match a word in a string and return previous word. The following will return “word1” base on “=” as a search term sed: echo "bla bla word word1 = string1 string2" | sed -e 's/.* \([^ ]*\) =.*/\1/g' perl: echo…
Check the version installed: /usr/libexec/java_home -V Then choose the version you need to run: /usr/libexec/java_home -v 1.8.0_05 –exec java -version
List of Mac symbolic links in private folder: ls -aFGl / | grep private This will return: lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:43 etc@ -> private/etc drwxr-xr-x@ 6 root wheel 204 Jan 9 12:53 private/ lrwxr-xr-x@ 1 root wheel 11 Jan 9 12:44…
In short: Uninstall Java plugin (Java Web Start) for your browser type: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin To remove a specific Java version go to: /Library/Java/JavaVirtualMachines/ and remove the related jdk. If you want to remove the Java Control Panel you have under ‘System Preferences’…