This file contains hidden or 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
| cd my-project | |
| heroku login | |
| heroku create appname | |
| git init |
This file contains hidden or 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
| replace 503 with your keyword | |
| tail -f /var/log/apache2/access.log | perl -pe 's/ 503 /\e[1;31;43m$&\e[0m/g' | |
| sudo bash -c 'tail -f /var/log/apache2/access.log| grep "[0-9] 5[0-9][0-9] \"" | (while read; do date; /usr/local/sbin/profile-php; done)' |
This file contains hidden or 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
| sudo sync && sudo echo 3 | sudo tee /proc/sys/vm/drop_caches |
This file contains hidden or 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
| ps -ylC apache2 | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' |
This file contains hidden or 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
| touch README.md | |
| git init | |
| git add README.md | |
| git commit -m "first commit" | |
| git remote add origin https://github.com/abc/myproject.git | |
| git push -u origin master |
This file contains hidden or 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
| MozRank represents a link popularity score. It reflects the importance of any given web page on the Internet. Pages earn MozRank by the number and quality of other pages that link to them. The higher the quality of the incoming links, the higher the MozRank. | |
| How is MozRank scored? | |
| We calculate this score on a logarithmic scale between 0 and 10. Thus, it's much easier to improve from a MozRank of 3 to 4 than it is to improve from 8 to 9. An "average" MozRank of what most people think of as a normal page on the Internet is around 3. | |
| How can MozRank be improved? | |
| A web page's MozRank can be improved by getting lots of links from semi-popular pages or a few links from very popular pages. |
This file contains hidden or 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
| apt-get install libcurl4-gnutls-dev libexpat1-dev gettext \ libz-dev libssl-dev | |
| apt-get install git-core | |
| cd ~/.ssh | |
| ls -al | |
| # Lists the files in your .ssh directory | |
| ssh-keygen -t rsa -C "[email protected]" | |
| # Creates a new ssh key, using the provided email as a label | |
| # Generating public/private rsa key pair. |
This file contains hidden or 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
| JAVA-JDK ( software development kit) | |
| apt-get install openjdk-7-jdk | |
| --------------------------------------------------------------------------------------------------------------- | |
| INSTALL SELENIUM | |
| mkdir /home/ubuntu/selenium | |
| cd /home/ubuntu/selenium | |
| http://selenium-release.storage.googleapis.com/2.41/selenium-server-standalone-2.41.0.jar |