This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant clean build -Denv.name=development -Dapi.type=internal | |
cp internal-datastore.war /Users/ahmedkammorah/apache-tomcat-7.0.37/webapps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_queue_t queue = dispatch_get_global_queue( | |
DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); | |
dispatch_async(queue, ^{ | |
//any thing | |
}); | |
//ref |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// mysql-python location | |
/Users/ahmedkammorah/Desktop/Python WorkSpace/MySQL-python-1.2.4b4 | |
sudo python setup.py build | |
sudo python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 178.79.128.80:443> | |
ServerName api.intafeen.com | |
DocumentRoot /var/www | |
SSLEngine on | |
SSLCACertificateFile /etc/ssl/RapidSSL_CA_bundle.pem | |
SSLCertificateFile /etc/ssl/certs/api.intafeen.com.cert | |
SSLCertificateKeyFile /etc/ssl/private/api.intafeen.com.key | |
<Proxy *> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
md5 -s 'this will be encrypted' | |
MD5 ("this will be encrypted") = 502810f799de274ff7840a1549cd028a | |
md5 -qs 'this will be encrypted' | |
echo -n "this will be encrypted" | md5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top | |
get pid | |
jmap -heap <pid> | |
add \usr\share\tomcat7\bin\setenv.sh | |
add | |
export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xms128m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=256m" | |
>/etc/init.d/tomcat6 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>su postgres | |
>psql navinside # connect to postgresql with db navinside | |
\list # list all DB | |
SELECT * FROM information_schema.tables | |
WHERE table_schema = 'public'; | |
select * From segments; |
OlderNewer