Category: Mac
-
How to recursively find all files in OS X Finder
I often want to find all files in a folder and all sub folders. I can never remember this: -kind:folder Seems backwards to me, but it works.
-
Just learned about /etc/resolver in OSX/BSD
I just learned that OSX/BSD has “conditional DNS” built into the os! Thanks to this post. I wish I knew about this earlier! AND I wish the same thing existed for Windows machines!
-
Update DynDNS from the command line
My router is not updating DynDNS correctly, so I wanted to use a simple cron job to do the same. Here is a simple BASH/Shell script to update DynDNS: IP=$(curl -s icanhazip.com) curl -v -k -u username:password “https://members.dyndns.org/nic/update?hostname=DNSHOSTNAME.dyndns.org&myip=$IP”
-
Using cURL to pull Google Reader starred items – Part 2 UnStaring in Google Reader
In the first part of this tutorial, I pulled a couple of variables from the XML feed of my Google Reader’s “starred items”. Now I wanted to “process” the item and UnStar it. This was not easy for me to put together – it was my first attempt at working with the Google API. First…
-
Using cURL to pull Google Reader starred items – Part 1 xpath
A while ago, I wrote a post about using ruby to parse the xml feed of shared starred items in Google Reader. One thing that I did not like about this solution was that I could not get the URL AND mark the item as un-starred. Since I had been playing with REST in these two…
-
Photos.app on my iPhone crashes, and Mac does not see any photos on my iPhone (iOS5)
Crap!!!! I had close to 400 pictures on my iPhone. I back it up all the time, but I had not “processed them” (my workflow is to use Image Capture.app to pull photos off of the iPhone, and into a folder, that I then import into iPhoto. I zip up (compress) the original folder containing…
-
Cisco ASA and smart tunnels – my experience on OS X 10.7
I have been playing with smart tunnels on my Cisco ASA. The documentation is a little scarce on examples, so I thought I would post what I have found. On OS X, not much appears to work (I only tried with Safari). Maybe this post will help someone, or they will post a comment on…
-
VMware Fusion 4 – Did they move vmrun?
Did they move vmrun in VMware Fusion 4? In version 4, I find it here: “/Applications/VMware Fusion.app/Contents/Library/” But this documentation says that the command should be in “/Library/Application Support/VMware Fusion”, but I found it here”/Applications/VMware\ Fusion.app/Contents/Library/vmrun” I don’t see anything in the release notes. Anyone?
-
OS X: Running a script when a USB drive is inserted
I rsync all my data to a USB drive that I keep at work. I wanted a way to have my rsync script automatically run when I plugged in the drive – kinda like Time Machine. It ended up being pretty simple. All I needed to do is create and AppleScript and attach it to…
-
Running a BASH script when my Laptop is opened at home – Part 2
As I mentioned in this post I should be able to run a script to find my current gateway’s MAC address. With this info, I should be able to tell when I am home, and launch a script. In this post, I talk about sleepwatcher, which runs a script when the machine is woken up. Sleepwatcher…
