Restart service on no log output

how to check if something has been written to the log in past X seconds and if not, then restart server/app.   Shell #!/bin/bash # simple script to check logs, if no entries have been made in 45 seconds restart set -x PATH=$PATH:/usr/sbin TS=$(date +%s)...

WordPress file access denied on update or plugin install

Ever try to update wordpress or a plugin or install a theme or plugin and get this error : “To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you...
Mount HTC one M8 system partition as read write

Mount HTC one M8 system partition as read write

So why cant you write to system partition on HTC devices even after rooting? it’s because they are S-ON by default.¬†which means that neither can you access certain areas of the system nor can you guarantee a permanent root. S-OFF means that the NAND part of the...
Sample apt.sources file with

Sample apt.sources file with

Remove the us. part if you arent on a US server. change the word precise to whatever your version of ubuntu is.       sample aot.sources file Shell deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse deb...