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
# Install tmux on CentOS 6: | |
sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm | |
sudo yum install tmux -y |
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
kill -9 `ps aux | grep middleman | awk '{print $2}'` |
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
# Start new session with myname | |
tmux new -s myname | |
#Attach to tmux with named | |
tmux a -t myname | |
#List all tmux session | |
tmux ls |
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
# 1. Introduction | |
With page cached in memcached, nginx will serve this page cached (html render) from nginx directly to user. So it’s very fast compared to norway it does. | |
# 2. Requirements | |
Memcached storage module | |
# 3. Installation | |
For sites/default/settings.php | |
## Advanced usage of Drupal page cache. | |
$conf['cache_backends'][] = ‘sites/all/modules/memcache_storage/memcache_storage.page_cache.inc'; |
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
# 1. Installation | |
git clone https://github.com/apache/tika.git | |
cd tika | |
export M2_HOME=/opt/apache-maven/apache-maven-2.2.1 | |
mvn install | |
.... | |
# 2. Usage | |
## Standlone commandline |
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
http://coenraets.org/blog/2012/10/nodecellar-sample-application-with-backbone-js-twitter-bootstrap-node-js-express-and-mongodb/ | |
https://github.com/hiattp/express3-mongodb-bootstrap-demo |
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
$ ssh-copy-id "user@host -p 6842" | |
OR | |
$ cat /home/tim/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys' |
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
## 1. http://www.cyberciti.biz/python-tutorials/linux-tutorial-install-ansible-configuration-management-and-it-automation-tool/ | |
## 2. http://www.tecmint.com/install-and-configure-ansible-automation-tool-in-linux/ | |
## 3. http://thornelabs.net/2014/03/08/install-ansible-create-your-inventory-file-and-run-an-ansible-playbook-and-some-ansible-commands.html |
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
# /etc/ansible/hosts | |
[project1] | |
192.168.175.30 ansible_ssh_user=sysadmin ## nginx - load balancer | |
192.168.175.51 ansible_ssh_user=sysadmin ## web1 | |
192.168.175.52 ansible_ssh_user=sysadmin ## web2 | |
192.168.175.50 ansible_ssh_user=sysadmin ## MySQL | |
192.168.175.56 ansible_ssh_user=sysadmin ## MongoDB | |
[localhost] |
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
from bs4 import BeautifulSoup | |
soup = BeautifulSoup(html) | |
print soup.title.string |
OlderNewer