Skip to content

Instantly share code, notes, and snippets.

@tianyicui
tianyicui / port -y install git
Created November 13, 2010 20:15
This is why MacPorts sucks...
port -y install git-core
---> Computing dependencies for git-core
---> Dependencies to be installed: curl curl-ca-bundle perl5 perl5.8 libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib pkgconfig p5-error python26 bzip2 db46 gdbm readline sqlite3 rsync popt
For perl5.8: skipping org.macports.main (dry run)
For perl5: skipping org.macports.main (dry run)
For curl-ca-bundle: skipping org.macports.main (dry run)
For expat: skipping org.macports.main (dry run)
For gperf: skipping org.macports.main (dry run)
For libiconv: skipping org.macports.main (dry run)
For ncursesw: skipping org.macports.main (dry run)
$ brew install -vd mit-scheme
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
==> Downloading http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-c-9.0.1.tar.gz
curl -f#LA Homebrew 0.7.1 (Ruby 1.8.7-174; Mac OS X 10.6.4) http://ftp.gnu.org/gnu/mit-scheme/stable.pkg/9.0.1/mit-scheme-c-9.0.1.tar.gz -o /Users/tianyi/Library/Caches/Homebrew/mit-scheme-9.0.1.tar.gz
@tianyicui
tianyicui / gist:657543
Created November 1, 2010 03:13
brew install -v ocaml
$ brew install -v ocaml
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
==> Downloading http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.0.tar.bz2
File already downloaded and cached to /Users/tianyi/Library/Caches/Homebrew
tell application "Address Book"
repeat with this_person in every person
if exists (phone of this_person) then
repeat with this_phone in phones of this_person
set temp to value of this_phone
if the length of temp is equal to 12 and the character 1 of temp is equal to "1" then
set value of this_phone to "+86" & temp
end if
if the length of temp is equal to 6 then
set label of this_phone to "short"