Ben Hamilton

Get the Weather From the Command Line

On Mac OS X or Linux (in fact anywhere you get the finger command) you can quickly get the weather. Jared, in our office here, just showed this to me, neato! :) finger brisbane@graph.no I particularly like the one line weather report finger o:brisbane@graph.no To get more info on how to use this, run this […]

Posted in *nix, How to, Productivity | Tagged , , | Comments Off on Get the Weather From the Command Line

Find Process to Kill Process

Need to find a process so you can kill it? Find the process first, replace NAMEOFPROCESS with the name or part thereof of the process you’re trying to find: ps -ax | grep NAMEOFPROCESS The first column lists the process id. Then kill the process, replacing PROCESSID with the actual number of the process: kill […]

Posted in *nix, How to | Tagged , , | Comments Off on Find Process to Kill Process

Find an IP address in files

Ever been looking for a config file that contains an incorrect IP address? If the IP address you’re looking for is 8.8.8.8 Then this command is for you: find . -type f -exec grep -l 8.8.8.8 {} \; It’ll find all occurrences of 8.8.8.8 that appear in files in the current directory and folders below […]

Posted in *nix, How to | Tagged , | Comments Off on Find an IP address in files

Set Windows power states from the command line

Use powercfg to set Windows power states from a script or command line.

Posted in General | Tagged , | Comments Off on Set Windows power states from the command line

How to backup SugarCRM from the command line

From the linux command line, these commands let you backup and restore a SugarCRM database. Update 2016-04-26: Just saw this SugarCRM KB Providing a Backup Without Sensitive Data which is really useful. Thanks Jared. Firstly, for a proper back up of SugarCRM you’ll need two files, one containing the application files, one containing the SQL database. […]

Posted in *nix, SQL | Tagged , , , , | Comments Off on How to backup SugarCRM from the command line

Linux Load Averages

For when you’re trying to explain what the load average figure means (which you get from running either top or w from the linux command line) this link will help explain it easily. Easier than spending 10 minutes talking about it.

Posted in *nix, How to | Tagged , | Comments Off on Linux Load Averages

Howto: Lock Windows Machines From Command Line

I’ve recorded a short video on how to lock windows machines from the windows command line. Let me know if you found it useful.

Posted in How to | Tagged , , , , | Comments Off on Howto: Lock Windows Machines From Command Line