I saw this today when trying to run a nosetest in MacVim: DistutilsPlatformError: $MACOSX_DEPLOYMENT_TARGET mismatch: now "10.4" but "10.7" during configure Add this to your .vimrc to fix this weird message. let $MACOSX_DEPLOYMENT_TARGET = "10.7"
- This isn’t just for virt-manager, but any X-Windows app you’d want to tightly integrate into your daily routine. Instead of firing up X11, then SSH’ing to your VM box and typing out virt-manager (insane!) you can script X11 to do everything with 1 mouse click. I have it in my Dock, and Launchbar also recognizes it as an app. tell application "Finder" launch application "X11" end tell set results to do shell script “ssh -X haddad-vmserver ‘virt-manager’”
- Many command line utils have a . file that people rarely use. Ack is one of them. For a project I’m working on, there’s a var folder (ignored in git) where all the logs go. When I perform an ack search, I have no interest in ack looking through the var folder every single time. By default, ack only checks your ~/.ackrc file for it’s default switches. You can have per directory ack settings if you add this to your .
- I tend to open up several terminals when working on a project, so I usually want them to start in the same directory I’ve been working with. Stick this in your ~/.bash_profile to have your new terminal windows automatically cd to the directory you last used. export PROMPT_COMMAND='echo `pwd` > ~/.lastpwd' cd `cat ~/.lastpwd ``
- I’m finding this useful as I work with snipmate and have defined custom snippets for solr config files. I still want to use the XML filetype, but I have no real use for the solr fields outside of editing the schema.xml file. set filetype=xml.solr Booya.
- Excellent question on superuser.com with a fantastic answer. If anyone needs to jump through multiple servers via ssh (or any other protocol) take a look at this answer. ssh -L 9999:localhost:9999 host1 ssh -L 9999:localhost:1234 -N host2
- iWatch is a perl script that uses inotify to monitor files directories. It’s similar to the watch tool, which can do all sorts of stuff if the files or directories it’s watching are modified or affected in pretty much any way at all. Install iWatch apt-get install iwatch I’ve got this 1 liner in a file to quickly watch my directory and execute a PHP unit test . #!/bin/bash iwatch -c "phpunit $1" -t '.
- This was really useful for me in scripting TextEdit to run my unit tests, as Erlide has been crashing every time I use it. erl -run mymodule myfunc -run init stop -noshell http://www.trapexit.org/Running_Erlang_Code_From_The_Command_Line
- Pretty sure this stops TextMate from creating the ridiculous backup files in my network shares. defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1
- To get a quick idea of what ports you have open on your local box, you can use nmap. ~ jhaddad$ nmap localhost Starting Nmap 5.00 ( http://nmap.org ) at 2010-01-05 11:06 PST Interesting ports on localhost (127.0.0.1): Not shown: 499 closed ports, 492 filtered ports PORT STATE SERVICE 80/tcp open http 88/tcp open kerberos-sec 548/tcp open afp 631/tcp open ipp 3306/tcp open mysql 3325/tcp open unknown 5900/tcp open vnc 9000/tcp open cslistener 10000/tcp open snet-sensor-mgmt