Original: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
Node.js is available in official gentoo portage tree. You have to unmask it.
# emerge -aqv --autounmask-write nodejs
# etc-update
# emerge -aqv nodejs
| <!DOCTYPE html> | |
| <html<?php print $html_attributes; ?>> | |
| <head> | |
| <?php print $head; ?> | |
| <title><?php print $head_title; ?></title> | |
| <?php print $styles; ?> | |
| <?php print $scripts; ?> | |
| </head> | |
| <body<?php print $body_attributes;?>> |
| <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml(); ?> |
| # List connections for port | |
| netstat -an | grep 12345 | |
| # List the number and type of active network connections | |
| netstat -ant | awk '{print $NF}' | grep -v '[a-z]' | sort | uniq -c | |
| # Number of connections for each hosts | |
| netstat -an | grep ESTABLISHED | awk '{print $5}' | awk -F: '{print $1}' | sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }' | |
| # Number of connections for each port |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: CouchPotato | |
| # Required-Start: $local_fs $network $remote_fs | |
| # Required-Stop: $local_fs $network $remote_fs | |
| # Should-Start: $NetworkManager | |
| # Should-Stop: $NetworkManager | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
| 1. Edit /etc/config/crontab and add your custom entry. | |
| 2. Run 'crontab /etc/config/crontab' to load the changes. | |
| 3. Restart cron, i.e. '/etc/init.d/crond.sh restart' |
| function microAjax(url, callbackFunction) { | |
| this.bindFunction = function (caller, object) { | |
| return function() { | |
| return caller.apply(object, [object]); | |
| }; | |
| }; | |
| this.stateChange = function (object) { | |
| if (this.request.readyState==4) | |
| this.callbackFunction(this.request.responseText); | |
| }; |
Original: https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
Node.js is available in official gentoo portage tree. You have to unmask it.
# emerge -aqv --autounmask-write nodejs
# etc-update
# emerge -aqv nodejs
| Options +FollowSymLinks | |
| RewriteEngine on | |
| RewriteCond %{REQUEST_URI} !/maintenance.html$ | |
| RewriteCond %{REQUEST_URI} !images$ | |
| RewriteCond %{REMOTE_HOST} !^192\.168\.5\.102 | |
| RewriteRule $ /maintenance.html [R=302,L] |
| <!DOCTYPE html> | |
| <!-- Helpful things to keep in your <head/> | |
| // Brian Blakely, 360i | |
| // http://twitter.com/brianblakely/ | |
| --> | |
| <head> | |
| <!-- Disable automatic DNS prefetching. | |