Skip to content

Instantly share code, notes, and snippets.

Mutt/Gmail/OS X Keychain

Create a new keychain item, enter the Keychain Item Name as mutt, the Account Name as your gmail email address and then enter your password, then add the keychain item.

2-step auth

If you're using Google 2-step auth, you'll need to generate an Application-specific password from your Google Account settings and enter that as the password.

@vhbit
vhbit / twitter.m
Created May 6, 2011 10:34
Follow us on Twitter button for iOS
- (BOOL)openTwitterClientForUserName:(NSString*)userName {
NSArray *urls = [NSArray arrayWithObjects:
@"twitter:@{username}", // Twitter
@"tweetbot:///user_profile/{username}", // TweetBot
@"echofon:///user_timeline?{username}", // Echofon
@"twit:///user?screen_name={username}", // Twittelator Pro
@"x-seesmic://twitter_profile?twitter_screen_name={username}", // Seesmic
@"x-birdfeed://user?screen_name={username}", // Birdfeed
@"tweetings:///user?screen_name={username}", // Tweetings
@"simplytweet:?link=http://twitter.com/{username}", // SimplyTweet
@vhbit
vhbit / git-versioning.sh
Created May 6, 2011 07:50
Git versioning for iOS project sample
version=`git describe --long`
commit=`echo $version | sed 's#.*g\([a-z0-9]\{7\}\)#\1#'`
version=`echo $version | sed 's#[a-zA-Z]*##'`
versionNum=`echo $version | sed 's#\-[0-9]*\-[a-zA-Z0-9]*##'`
echo "#define BUILD_VERSION $version" > InfoPlist.h
echo "#define PRODUCT_VERSION $versionNum" >> InfoPlist.h
echo "#define GIT_COMMIT $commit" >> InfoPlist.h
@vhbit
vhbit / gist:874549
Created March 17, 2011 15:44 — forked from anonymous/gist:867690
OpenCV iPhone
################################################################################
# This script will create universal binaries for OpenCV library for
# iOS-based devices (iPhone, iPad, iPod, etc).
# As output you obtain debug/release static libraries and include headers.
#
# This script was written by Eugene Khvedchenya
# And distributed under GPL license
# My site, where you can get support: http://computer-vision-talks.com
################################################################################