First, start powershell
C:\Users\tester>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
Next, create remote sesssion
function logArrayElements(element, index, array) { | |
console.log("a[" + index + "] = " + element); | |
} | |
[2, 5, 9].forEach(logArrayElements); |
registry = "http://registry.npmjs.org/" | |
https-proxy = "http://username:[email protected]:8128/" | |
proxy = "http://username:[email protected]:8128/" | |
registry = "http://registry.npmjs.org/" | |
strict-ssl = false | |
// Use "npm config set" commands |
First, start powershell
C:\Users\tester>powershell
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
Next, create remote sesssion
Most of the answers here are like shooting a fly with a canon !! | |
$('#thumbs img').click(function(){ | |
$('#largeImage').attr('src',$(this).attr('src').replace('thumb','large')); | |
$('#description').html($(this).attr('alt')); | |
}); | |
/* this is all you need .. 4 lines of code . | |
look here : gallery-in-4-lines - http://workshop.rs/demo/gallery-in-4-lines/ |
export MONGO_URL=mongodb://localhost:27017/<dbname> | |
export PORT=<server_port> | |
export ROOT_URL=http://sub.example.com/ | |
forever start bundle/main.js |
var sql = require('mssql'); | |
//npm install tedious | |
//npm install mssql | |
config = { | |
driver: 'tedious', | |
server: 'db_server', | |
user: 'user', | |
password: 'password', | |
port: '1433', |
chage -I -1 -m 0 -M 99999 -E -1 username |
Use a module. Check out perldoc perlmod and Exporter. | |
In file Foo.pm | |
package Foo; | |
use strict; | |
use warnings; | |
use Exporter; | |
our @ISA= qw( Exporter ); |
Create the remote repository, and get the URL such as | |
[email protected]:/youruser/somename.git or https://github.com/youruser/somename.git | |
If your local GIT repo is already set up, skips steps 2 and 3 | |
Locally, at the root directory of your source, git init | |
Locally, add and commit what you want in your initial repo |
Tail = require('tail').Tail; | |
tail = new Tail("fileToTail"); | |
tail.on("line", function(data) { | |
console.log(data); | |
}); |