Categories
Automation

How I Went Paperless And Clutter-free For $32

Ever since I discovered Dropbox, I felt weighed down by the clutter of physical documents.  I use it for all of my digital documents.  After a while, physical documents and pieces of paper began to get on my nerves.  It was much easier to have searchable PDFs that I could access anywhere.  To that end, […]

Categories
Tips and Tricks

Make Animated GIFs In OS X With A Right-click

Create animated GIFs from the OS X Finder in just seconds.  It only takes a few minutes to set up and will give you a “native” feeling without the need to install any additional software.  Plus, you never need to open an app to create the GIF, you can just highlight files > right-click > Make Animated […]

Categories
Tips and Tricks Uncategorized

Automatically Sort Dropbox Camera Uploads Based On Their Geographical Data

I have been a long time fan of using Dropbox to manage my photos, even with the release of Photos.  I have especially liked it ever since Dropbox enabled Camera Uploads from their iOS app.  With my latest script, I can now upload photos from my iPhone and have them automatically sorted into folders based […]

Categories
System Administration Uncategorized

Bash Script: Fix Paused Printers In OS X

You need an administrator password to un-pause a printer in OS X.  It is possible to add a user to the lpadmin group. sudo dseditgroup -n /Local/Default -o edit -a username lpadmin This will give them rights to the printer, but if your users aren’t admins of their machines, this might not be something you want […]

Categories
System Administration Uncategorized

Python Script: pmset–Set Energy Saver Settings For Multiple Computers At Once

If you have 1,000 computers and don’t want them all to power on at the same time, but rather come on at different times, you can use a simple Python script to do so.  I use this in an educational setting where each lab needs a different power setting so that they don’t all power […]

Categories
System Administration Uncategorized

Bash Script: Set Favorite Servers In “Connect To…” Menu

The Connect To… menu (Command+K) lets you quickly connect to a server using different protocols.  If you are deploying these settings to a bunch of computers, it can be done quickly using a simple bash script.  Just replace or add whatever servers you want into the servers variable (one per line in single quotes).

Categories
System Administration Uncategorized

Send Commands To All Installed Printers

Using a simple for  loop, you can send a PJL command to all of the printers installed on your machine.  For instance, if you wanted to change the display message on all your networked HP printers, you could loop through all the IP addresses and send it a command.

Categories
System Administration Uncategorized

Prevent Access To Certain Wi-Fi Network SSIDs Via Bash Script

In enterprise environments, there is often an open guest network and a secured enterprise network.  Often, you do not want users to connect to the guest network because it is throttled down and does not grant access to organizational network resources.  Below is a script that can be run as a Launch Daemon, which will […]

Categories
Tips and Tricks Uncategorized

OS X: Triggering Automation Scripts Using launchd

Desktop management software, such as Casper, has the feature of running scripts when a computer meets a certain criteria.  You can create a similar effect using launchd by creating a Launch Daemon or Launch Agent.  These run in the background and you can use them to trigger a script to run.  Basically, if you know how […]

Categories
Automation Uncategorized

Batch Rotate Photo Files With Hazel and sips

If you have a ton of photos that are all facing the wrong direction and don’t want to do them individually, you can use Hazel to automatically go through a folder and rotate the images for you.  All it takes is a one-line bash script and a Hazel rule. sips -r 90 “$f” This rotates the image 90 […]