Welcome To Snipplr
Everyone's Recent Snippets Tagged mac
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Put the script in the app "Spark" (download from http://www.shadowlab.org/Software/spark.php) and give it a shortcut
0
1457
posted 15 years ago by Macgeeky
the os x version of realpath works differently than the linux version; the following allows you to attain the same functionality in a shell on os x as `readlink -f $0` on a standard linux dist.
0
1520
posted 15 years ago by iloveitaly
C#
Get the network interface card (NIC) from a known MAC address (and get the IP addresses on that NIC)
The code shows how to take a known MAC (e.g. "00:00:00:11:22:33") and locate the NIC which has that MAC. Note that the built-in MAC class for .NET is called PhysicalAddress (in System.Net.NetworkInformation). PhysicalAddress.Parse can take a string,...
0
2295
posted 15 years ago by pckujawa
To config Terminal do move (left and right) word-by-word:
- Esc + b (left)
- Esc + f (right)
To configure it to Alt + left and right:
- Open Terminal preferences (command + ,);
- At Keyboard tab, select "control cursor left (or right)" and...
0
3270
posted 15 years ago by nalmeida
If you're writing a preference pane and you'd like to exit back to the main System Preferences view, just use this code.
1
2190
posted 15 years ago by Carter
Instructions for enabling multiple virtual hosts on Mac OSX. Based on default Apple Apache install. If you don't want to be manually changing these files, checkout the very slick GUI application - VirtualHostX (http://clickontyler.com/virtualhostx/)
3
1646
posted 16 years ago by benjaminpearson