Strictly Programming

npm install modules from bitbucket private repositories

Posted in Uncategorized by sqllyw on 10/17/2015

You might have private repositories in bitbucket and you declare dependencies in your nodejs app’s package.json:
"dependencies": {
"mymodule":"git+https://sampleuser@bitbucket.org/sampleuser/mymodule.git",
"ejs": "1.0.0"
}

when you do a npm install, you will be prompted to enter password twice, after entering the password, installation will proceed, this might work or might not work at all.

A simple approach as follow:

1) turn on git cache, keep password in the cache for a certain period of time:
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
2) access the private repo once, answer password when prompted:
git ls-remote https://sampleuser@bitbucket.org/sampleuser/mymodule.git

now you can install packages:

npm install --production

or all
npm install
Advertisements
Tagged with: , ,

JSON in Objective C 2.0 – simple sample 1

Posted in Uncategorized by sqllyw on 08/27/2013

Here is a very simple example accessing json file in Obj – c. (more…)

Adding a SATA drive to Ubuntu 8.10

Posted in Uncategorized by sqllyw on 04/08/2011

Credit Card number related

Posted in Uncategorized by sqllyw on 03/30/2011

Some resources when programming credit card support. (more…)

Some basic tips on Facebook application develop

Posted in Uncategorized by sqllyw on 03/24/2011

Recording some tips/infos along the development of facebook applications. (more…)

Calibrate Macbook Pro Battery A1175

Posted in Uncategorized by sqllyw on 10/29/2010

Calibrate a macbook pro battery: (more…)

Cocoa Binding – Key Value Coding

Posted in Objective-C, Uncategorized by sqllyw on 05/26/2010

KVC is similar to Java’s beans.

(more…)

Tagged with: , ,

Printing an envelop in OS X

Posted in Uncategorized by sqllyw on 03/09/2010

Printing an envelop in OS X first time and in a hurry might be a challenging task:(
(more…)

Adding Unit Test to Objective C application in XCode 3.2

Posted in Objective-C, Uncategorized by sqllyw on 11/22/2009

Adding Unit Test in XCode 3.2.
(more…)

Tagged with: ,

Installing manually saa7134 in Ubuntu 9.04 kernel 9.26.31rc6

Posted in Uncategorized by sqllyw on 08/15/2009

As subject says:)

(more…)