Did you suddenly find no more space on your mac? Did you discover that .MobileBackup is taking a lot of space? I usually use an external drive to backup, but when not available Time Machine create an internal backup! The easy way to get your…
Did you suddenly find no more space on your mac? Did you discover that .MobileBackup is taking a lot of space? I usually use an external drive to backup, but when not available Time Machine create an internal backup! The easy way to get your…
Raise an hand who does not have two versions of Java installed on your computer namely Java 6 as distributed by Apple and Java 7 as distributed by Oracle. When installing Java 7, it will take over the place from Java 6 as the Java…
grep -rl "string" /path find . -name "*.jar" | xargs grep Topic locate try.txt | xargs grep hello The methods serve different purposes. recursive search and replace old with new string, inside files $ grep -rl oldstring . |xargs sed -i -e 's/oldstring/newstring/' find ….
Custom delay time You may have noticed that there is a short delay before the Dock appears when your mouse hits the edge of the screen. There is a hidden setting that allows you to adjust the delay time using the Terminal. Start by opening…
Install the JDK Download he 32bit or 64bit Linux “compressed binary file” – it has a “.tar.gz” file extension i.e. “[java-version]-i586.tar.gz” for 32bit and “[java-version]-x64.tar.gz” for 64bit Uncompress it tar -xvf jdk-7u2-linux-i586.tar.gz (32bit) tar -xvf jdk-7u2-linux-x64.tar.gz (64bit) JDK 7 package is extracted into ./jdk.1.7.0_02 directory….
Now, what if you need to decrypt a file that has been encrypted for your old master key, or you have create a subkey, moved away the primary key, do everything with your subkey, but still you need the primary key to sign, create new…
These instructions assume you use one computer, and keep the master keys on an encrypted USB flash drive, or preferably at least two (you should keep backups of your secret keys). Here comes the tricky part. You need to remove the private master key, and…
From Varnsih documentation it is quite clear that Varnishstat gives a good representation of the general health of Varnish, including cache hit rate, uptime, number of failed backend connections and many other statistics; everything above 80% is in a good state. I like to use…
varnishtop -i TxStatus Log client requests (you can also add :503 to check only for 503 being returned to a client varnishncsa -F "%r %s" | grep " 200" Give the url that returns 200 varnishlog -c -m RxURL:/specific/url/ Only show client-requests for the url…