OS X Yosemite Notification Center Command Line Utility For Scripting And More

Download

NCutil.py – Mavericks and Yosemite

Use Case

OS X administrators can appreciate a good command line utility.  In enterprise environments, it is useful to be able to send out settings to multiple computers at once.  This is part of the reason I started NCutil.py.  I wanted to be able to change the Notification Center alert duration via a script.  I also wanted to be able to remove items from Notification Center that I didn’t want. Continue reading “OS X Yosemite Notification Center Command Line Utility For Scripting And More”

Find Out What Sites Paid To Be Whitelisted From AdBlock Plus

AdBlock Plus has a public whitelist, which is considered to be “non-intrusive” or “acceptable” advertising.  However, it seems there is also a private list of Websites that pay to be whitelisted.

I cannot verify those posts and I am definitely not an expert in the subject, but there are clues out there to support these claims  This post is just my personal findings so you can come to your own conclusions.  The posts are a bit old, so it’s possible AdBlock Plus doesn’t even use this method anymore. Continue reading “Find Out What Sites Paid To Be Whitelisted From AdBlock Plus”

Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)

I love when Windows command line tools are actually useful and friendly.  wmic  is a rare one that fits the bill.  I use the following command to uninstall programs silently (using Java as an example).

Find The Program Name

Run this command first to get the list of programs you can uninstall:

wmic product get name

Continue reading “Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)”

Altiris: Fix Error 1618: Another Installation Is Already In Progress

I’m still stuck using Altiris 6.9DS.  It works, but it’s also finicky.  I often run into error 1618, which means another install is in progress (download the full error list here).  This is not always the case, but sometimes, other jobs can make it seem this way.  I run a simple command to clear out this error and then I can finish running the failing job. Continue reading “Altiris: Fix Error 1618: Another Installation Is Already In Progress”

Like cloc-work: Counting Lines Of Code Is An Easy Way To Get Information On Shell Scripts

It is sometimes useful to know how many lines of code your script is.  I enjoy using it as a reference to illustrate how writing a few lines of code can save you a lot of time that you would normally do manually.  I have always used

cat someScript.sh | wc -l

or

cat someScript.sh | grep -v "#" | wc -l

Continue reading “Like cloc-work: Counting Lines Of Code Is An Easy Way To Get Information On Shell Scripts”