Skip to content

Instantly share code, notes, and snippets.

@AhmedKammorah
AhmedKammorah / new_gist_file
Created August 29, 2013 09:52
make async task ios
dispatch_queue_t queue = dispatch_get_global_queue(
DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queue, ^{
//any thing
});
//ref
#wstars sphinx index files location
cd /var/intafeen/sphinx/
# remove all indexes
rm *
su searchd
# rerun index
/usr/local/bin/indexer --config /usr/local/etc/sphinx.conf venues_idx
ls -alh
Edit php.ini
sendmail_path = /usr/sbin/sendmail -t -i
Turn on the mail server your hostconfig file:
Run sudo nano -w /etc/hostconfig in Terminal. Look for the line starting MAILSERVER=, if you don’t see it, add it and make sure it reads:
MAILSERVER=-YES-
Edit /etc/postfix/main.cf and add the following to the end:
@AhmedKammorah
AhmedKammorah / ant datastore
Created July 24, 2013 13:49
Ant build for Data store
ant clean build -Denv.name=development -Dapi.type=internal
cp internal-datastore.war /Users/ahmedkammorah/apache-tomcat-7.0.37/webapps
@AhmedKammorah
AhmedKammorah / new_gist_file
Created July 15, 2013 16:45
take screen shot
_