Welcome To Snipplr
Everyone's Recent Snippets Tagged osx
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Using a gcc predefined macro, __DATE__, the code can know for itself when it was compiled, and build in an expiration date based on that value.
For a internationalised version see: http://snipplr.com/view/7196/kill-app-after-expire-date-suicidal-c...
1
1217
posted 17 years ago by zingo
I use this to test if my internet connection is up, I run it from quicksilver, it's much faster for me than opening up a terminal.
0
799
posted 17 years ago by dbug13
Run this command in the Terminal on Mac OS X to flush the DNS cache on your computer. This is especially helpful when making changes to the host file.
2
1432
posted 17 years ago by jonhenshaw
Mount Samba share from osx terminal, might not show up in Finder
0
1472
posted 17 years ago by vanne
Plist file for heartbeatd to be handled by Launchd - change the ip addresses to match your own - I have called this uk.ac.rave.heartbeatd.plist. Change the "x.x.x.x" in the array within ProgramArguments to the IP's that you are using.
0
667
posted 18 years ago by smoothnoodle
Greatly speeds up a slow Safari by purging any cached icons which have not been accessed in the past 30 days. Works well as a cron job.
From http://www.macosxhints.com/article.php?story=20040323144305318
2
1282
posted 18 years ago by Roshambo
This code maps the apple-pro-keyboard command-key to control (when osx is the server and windowxp is the client).
Synergy lets you easily share a single mouse and keyboard between multiple computers with different operating systems without specia...
0
965
posted 18 years ago by expertseries