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
http://stackoverflow.com/questions/11365619/psycopg2-installation-error-library-not-loaded-libssl-dylib |
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
lsof -i :80 # checks port 80 |
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
var Logger = require('tracer').colorConsole(); |
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
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |
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
pyenv global 2.7.10 | |
go to ~/.bash_profile: | |
export PYENV_VERSION=2.7.10 | |
pip install pynum |
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
docker run -p 80:4000 -t -i baotrungtn/ubuntu:init-state bash -c "mongod & node /home/confidence/app.js" |
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
docker run -p 80:4000 baotrungtn/ubuntu:online-mongodb bash -c 'mongod --fork --logpath /home/confidence/mongodb.log && nodemon /home/confidence/app.js' | |
docker run -p 80:4000 baotrungtn/ubuntu:online-mongodb bash -c 'mongod --fork --logpath /home/confidence/mongodb.log && node /home/confidence/app.js' |
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
1. Chinh link menu trong giao dien goc Wordpress (Look & Feel -> Menu -> Category) | |
2. Chinh footer trong giao dien extended (Tu giao dien goc -> PUBLISH -> Portfolio -> Appearance -> Widgets | |
Quy trinh post | |
1. Tao anh quang cao | |
2. Post Album xe va anh dia chi, gioi thieu len Google Photos | |
3. Dat ten cho Album tren Google Photos | |
4. Post bai moi tren Wordpress voi title giong title album tren Google Photos | |
5. Chon Featured Image la anh quang cao xe | |
6. Them Link More pictures trong bai post moi (link den Google Photos Album, nho chon Open in New Windows) |
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
mongodump | |
mongorestore --collection people --db accounts dump/accounts/people.bson |
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
Post.findOne({ | |
"_id" : postId | |
}, "_comments") | |
.populate({ | |
path: "_comments", | |
select: "ownerName content postDate commentType", | |
options: { limit: commentCount, sort: { "postDate" : -1 } } | |
}) | |
.exec(function(err, post) { | |
if (err || !post) { |