Tuesday, August 3, 2010

Localhost postfix relay on OS X


sudo vi /System/Library/LaunchDaemons/org.postfix.master.plist



<plist version="1.0">
<dict>
<key>Label</key>
<string>org.postfix.master</string>
<key>Program</key>
<string>/usr/libexec/postfix/master</string>
<key>ProgramArguments</key>
<array>
<string>master</string>
<!--string>-e</string-->
<!--string>60</string-->
</array>
<key>QueueDirectories</key>
<array>
<string>/var/spool/postfix/maildrop</string>
</array>
<key>AbandonProcessGroup</key>
<true>
<key>RunAtLoad</key>
<true/>
<key>OnDemand</key>
<false/>
<key>KeepAlive</key>
</true>
</dict>
</plist>



sudo launchctl unload /System/Library/LaunchDaemons/org.postfix.master.plist
sudo launchctl load /System/Library/LaunchDaemons/org.postfix.master.plist
sudo launchctl start org.postfix.master

Saturday, February 7, 2009

Installing git step by step


Download and install


git-osx-installer

Configure



git config --global user.name "user.name"
git config --global user.email "user.email"
git config --global color.ui auto
git config --global pager.status true
git config --global alias.st status
git config --global alias.ci commit
git config --global alias.br branch
git config --global alias.co checkout
git config --global alias.amend 'commit --amend'
git config --global core.excludesfile ~/.gitignore
echo '.DS_Store' >> ~/.gitignore


Basic workflow



# Create a new repo:
git init

git co master

# Pull upstream if necessary:
git pull

# Create a topic_branch
git br topic_branch

# edit/compile/test

# checkpoint to the index:
git add filename

# Revert file to index:
git co -- filename

# Revert file to master:
git co master -- filename

# Merge in any changes made in master while on topic_branch:
git rebase master

git commit

# Merge topic_branch back to master and delete:
git co master
git merge topic_branch
git branch -d topic_branch


Useful references


Git home
git ready - daily tips for the noob to the guru
git-fu

Sunday, February 1, 2009

File System Overview Doc



File System Overview

Enabling network volume access in Time Machine



defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1

Saturday, January 31, 2009