Batch script to monitor Windows Service
@echo off FOR /F "tokens=2 delims= " %%i IN ('"wmic.exe SERVICE GET Name, State" ^| findstr /I Stopped ^| findstr /I SERVICENAME') DO if %%i==Stopped goto :stop FOR /F "tokens=2 delims= " %%i IN...
View ArticleMonitor URL using cron job
Simple cron job to monitor a URL and notify via e-mail if no response is received. You can use cPanel to set these, enter the following: wget --no-cache --spider www.google.com &>...
View ArticleUNIX write message to users on server
You can message users currently logged on to a UNIX server. First, check who’s logged on. Enter the ‘who’ command as below: #>who user1 pts/0 05 Apr 09:30 (10.170.1.50) Here you find that the user...
View ArticleXbox One vs Playstation 4
Xbox One Playstation 4 What should you buy, the PlayStation 4 or the Xbox One. It helps that we’ve finally got some facts to work with in the new console war, instead of just chasing rumors and...
View ArticleiOS 7 battery drain issue – Fixed!
First thing you notice after installing iOS 7 beta (released straight after WWDC 13′) is that the battery drains like never before. Whilst this is a beta version and you shouldn’t really use it on...
View ArticleInstall Joomla 3.1.1 on CentOS 6
First install apache and configure to start up upon reboot:yum install httpd chkconfig --levels 235 httpd on service httpd startAdd the iptables rule on /etc/sysconfig/iptables file and restart the...
View ArticleJava installation on Linux
Download Sun/Oracle Java JDK or JRE from here (current version is JDK 6 Update 45):...
View ArticleVMware disk addition without reboot
The process describes how you can add disks to a VMware Linux based server without the need to reboot the server. Before formatting the disk, you will first need to scan SCSI drives by running:echo "-...
View ArticleBitcoin mining – A quick guide
First thing you need to do is get a “Bitcoin Wallet”. Because Bitcoin is an internet based currency, you need a place to keep your Bitcoins. Got to http://www.bitcoin.org and download the Bitcoin...
View ArticleLitecoin Mining on Amazon EC2
LiteCoin mining on Amazon EC2 was profitable when using g2.2xlarge spot instances. Although the historical average spot price for g2.2xlarge instances has already nearly doubled (presumably because of...
View Article