Tag: OSX
-
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.
-
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”
-
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…
-
Running a BASH script when my Laptop is opened at home – Part 1
My laptop hard drive died. I was upset only because there was data on my laptop that had not been moved over to my desktop. My desktop has time machine and is rsynced to several other drives and locations. So I lost data. My own fault because I was not diligent in moving data off…
-
Using a MacBook to connect to a Cisco router
We have a “USBG-232MINI” USB to Serial adapter and I needed to connect to a Cisco router. GNU screen to the rescue!! The command is screen /dev/tty.usbserial-A9005yuF 9600 (Where A9005yuF is probably unique) And to exit hit Control+A then K.
-
OS X: Move files based on creation date
I wanted to organize my flip videos – I wanted them moved into a folder named after their creation date. One of the scripts that I found uses ls’s “–time-style” parameter. BSD’s ls does not have this value. MacPorts’ coreutils port contains gls (GNU’s ls) that does support the parameter. So here is my script…
