Interesting: Log shell script events to the OS X system consolemacissues.com.
–jeroen
via: If you are familiar with the Unix command line and shell scripting, then you….
Posted by jpluimers on 2015/08/31
Interesting: Log shell script events to the OS X system consolemacissues.com.
–jeroen
via: If you are familiar with the Unix command line and shell scripting, then you….
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2015/05/21
fseventer is a great tool for investigating Mac OS X file system events. Like many low-level tools, it requires admin privileges.
This is apparent through the use of the tool “fseventer” which monitors what files on your hard drive are being accessed.
–jeroen
via: Intermittent but frequent OS X pauses may be from iCloud syncing | MacIssues.
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, OS X 10.10 Yosemite, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2015/04/06
Thanks User Chris Page – Stack Overflow for answering on StackOverflow:
Some quotes of his answer:
As of Mac OS X Lion 10.7, Terminal includes exactly this functionality as a Service. As with most Services, these are disabled by default, so you’ll need to enable this to make it appear in the Services menu.
System Preferences > Keyboard > Keyboard Shortcuts > ServicesEnable New Terminal at Folder. There’s also New Terminal Tab at Folder, which will create a tab in the frontmost Terminal window (if any, else it will create a new window). These Services work in all applications, not just Finder, and they operate on folders as well as absolute pathnames selected in text.
…
In addition, Lion Terminal will open a new terminal window if you drag a folder (or pathname) onto the Terminal application icon, and you can also drag to the tab bar of an existing window to create a new tab.
…
Finally, if you drag a folder or pathname onto a tab (in the tab bar) and the foreground process is the shell, it will automatically execute a “cd” command. (Dragging into the terminal view within the tab merely inserts the pathname on its own, as in older versions of Terminal.)
…
You can also do this from the command line or a shell script:
open -a Terminal /path/to/folderThis is the command-line equivalent of dragging a folder/pathname onto the Terminal application icon.
–jeroen
via: osx – Open terminal here in Mac OS finder – Stack Overflow.
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | 2 Comments »
Posted by jpluimers on 2015/03/30
Even after changing the name of your Mac, from the Windows side it still looks like this:
| C:\Users\developer>net view | |
| Server Name Remark | |
| ——————————————————————————- | |
| \\MACBOOKPRO-4C7F Jeroen's MacBook Pro | |
| The command completed successfully. |
I knew I had solved this in the past, as the MacBook Air showed up correctly in the list:
| C:\Users\developer>net view | |
| Server Name Remark | |
| ——————————————————————————- | |
| \\MACBOOKPRO-4C7F Jeroen's MacBook Pro | |
| \\MBAIR133JWP MBAIR133JWP | |
| The command completed successfully. |
The trick is that there are 2 names for your Mac: the name for the Apple side of things, and the name for the Windows side of things. For the latter you’d think it would be named SMB or NetBIOS. Read the rest of this entry »
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User, SpotLight | Leave a Comment »
Posted by jpluimers on 2015/03/27
One of the most frustrating things on a Mac is that the OS X Finder does not allow you to browse all paths.
Unlike Windows the Windows Explorer, where it is fairly easy to switch a preference for enabling/disabling showing the hidden files and folders, there is no option in the Preferences. There is a command-line trick (see below) to enable/disable showing hidden files and folders.
Luckily, both the Windows Explorer and the Mac OS X Finder allow you to specify the full folder path to browse, where you can enter a path that otherwise would (partially) be invisible.
Menu -> Go -> Go to Folder...), then enter the full path.An alternative for Mac OS X is the payed (but great tool) Path Finder which is one of the best Finder replacements I know.
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User | Leave a Comment »
Posted by jpluimers on 2015/02/18
Mac OS X has md5, but no md5sum.
I agree with Mac OS X: Replicating md5sum Output Format that the second way of emulating md5 is better than the first one.
So here it is:
| #!/bin/bash | |
| /sbin/md5 -r "$@" |
–jeroen
Posted in Apple, bash, Development, Hashing, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, md5, OS X 10.8 Mountain Lion, Power User, Scripting, Security, Software Development | Leave a Comment »
Posted by jpluimers on 2015/01/26
I hadn’t monitored Notepad++ in a very long time, so I was glad that User Thomas Owens mentioned that it can show you the CR and LF codes:
With Notepad++, you can show end-of-line characters. It shows CR and LF, instead of “\r” and “\n”, but it gets the point across. […]
To use Notepad++ for this,
- open the View menu, open the Show Symbols slide out, and
- select either “Show all characters” or “Show end-of-line characters”.
I needed this because many development environments get confused when you have text files using a mix of line-break kinds (in my case LF, CR and CRLF).
–jeroen
Posted in *nix, Apple, Linux, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, OS X 10.8 Mountain Lion, Power User, SuSE Linux, Windows | Leave a Comment »
Posted by jpluimers on 2015/01/12
A long time fan of BgInfo on Windows, I was looking for a Mac OS X replacement.
And I found one: GeekTool is on steroids compared to BgInfo (:
Much more than I needed (plenty of add-on scripts too), but more than enough to get some simple text displayed.
–jeroen
via: windows – Tool to put text on desktop wallpaper – Super User.
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User | Leave a Comment »
Posted by jpluimers on 2014/12/22
NameChanger cool visual tool to do pattern based mass-renames on your Mac.
Needs OS X 10.6 or better (Snow Leopard, Lion, Mountain Lion, Mavericks), though previous versions that are still available support all the way back until 10.3 (Panther).
–jeroen
via: MRR Software.
Posted in Apple, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, OS X 10.9 Mavericks, Power User | Leave a Comment »
Posted by jpluimers on 2014/12/15
Out of the box, a MacBook can do tethering using:
I’ll point to two things about this below:
Posted in *nix, Apple, Google, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, Nexus 4, OS X 10.8 Mountain Lion, Power User | Leave a Comment »