As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
| install PostgreSQL 9 in Mac OSX via Homebrew | |
| Mac OS X Snow Leopard | |
| System Version: Mac OS X 10.6.5 | |
| Kernel Version: Darwin 10.5.0 | |
| Install notes for PostgreSQL 9.0.1 install using Homebrew: | |
| sh-3.2# brew install postgresql |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| console.log("got here"); | |
| var page = require('webpage').create(); | |
| page.onConsoleMessage = function(msg) { | |
| console.log(msg); | |
| }; | |
| page.open("http://facebook.com", function(status) { | |
| if ( status === "success" ) { |
| #!/usr/bin/env python | |
| """Simple HTTP Server With Upload. | |
| This module builds on BaseHTTPServer by implementing the standard GET | |
| and HEAD requests in a fairly straightforward manner. | |
| """ |
| # Send SMS messages using Raspberry Pi. | |
| # Using gammu and Huawei E220 | |
| # Prepare SD card with wheezy. | |
| # Login / complete rasp-config / reboot / login | |
| # Set vimrc to prevent annoying ADBC arrow keys | |
| cp /etc/vim/vimrc ~/.vimrc |
| package examples.database; | |
| import com.google.common.collect.Lists; | |
| import examples.database.dao.PeopleDAO; | |
| import examples.database.model.PeopleInfo; | |
| import org.apache.commons.lang.time.StopWatch; | |
| import org.apache.commons.logging.Log; | |
| import org.apache.commons.logging.LogFactory; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; |
| /** | |
| * Modify the parts you need to get it working. | |
| */ | |
| var should = require('should'); | |
| var request = require('../node_modules/request'); | |
| var io = require('socket.io-client'); | |
| var serverUrl = 'http://localhost'; |
| #!/bin/sh | |
| # | |
| # chkconfig: 35 99 99 | |
| # description: Node.js /home/ghost/ghost/index.js | |
| # | |
| . /etc/rc.d/init.d/functions | |
| USER="ghost" |