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
| jesse@admin-console-002:~ $ telnet 10.40.5.2 80 | |
| Trying 10.40.5.2... | |
| Connected to 10.40.5.2. | |
| Escape character is '^]'. | |
| GET / | |
| HTTP/1.0 302 Redirect | |
| Server: GoAhead-Webs | |
| Date: Tue Feb 16 19:46:32 2010 | |
| Pragma: no-cache |
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
| #!/bin/sh | |
| YEAR=`date -d 'yesterday' +%Y` | |
| MONTH=`date -d 'yesterday' +%m` | |
| DAY=`date -d 'yesterday' +%d` | |
| #DAY=19 | |
| echo grep -B2 -A3 contains /vol/syslog/HOSTS/db-*/$YEAR/$MONTH/$DAY/local3 |
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
| from fabric.api import env, run, sudo, local, put | |
| def production(): | |
| """Defines production environment""" | |
| env.user = "deploy" | |
| env.hosts = ['example.com',] | |
| env.base_dir = "/var/www" | |
| env.app_name = "app" | |
| env.domain_name = "app.example.com" | |
| env.domain_path = "%(base_dir)s/%(domain_name)s" % { 'base_dir':env.base_dir, 'domain_name':env.domain_name } |
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
| # install git | |
| sudo apt-get install g++ curl libssl-dev apache2-utils | |
| sudo apt-get install git-core | |
| # for those super bare-bones systems... | |
| sudo apt-get install gcc make | |
| # download the Node source, compile and install it | |
| git clone https://github.com/joyent/node.git | |
| cd node | |
| ./configure | |
| make |