This file contains 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
pm2 start server.js --name server --interpreter iojs |
This file contains 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
UserSchema = mongoose.Schema({ | |
name: String, | |
email: String, | |
password: String, | |
date: { type: Date, default: Date.now }, | |
photo: { type: String, default: "../img/personalImage.jpg" }, | |
facebook:{ | |
access_token: String | |
email: String, | |
name: String, |
This file contains 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
rm -rf node_modules/ && npm install express && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install sails && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install hapi && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install flatiron && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install koa && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install total.js && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install locomotive && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install compound && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install geddy && npm ls | grep -e express -e connect | |
rm -rf node_modules/ && npm install mojito && npm ls | grep -e express -e connect |
This file contains 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 youtube = require('youtube-node'); | |
youtube.setKey('AIzaSyB1OOSpTREs85WUMvIgJvLTZKye4BVsoFU'); | |
youtube.addParam('type','video'); | |
youtube.addParam('order','date'); | |
youtube.search('World War z Trailer', 10, function(results) { | |
var ids = []; | |
var videos = []; |
This file contains 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
{ | |
"Name":"cpt-sp2010-dev-ramp-part6", | |
"Title":"SharePoint 2010 Developer Ramp-Up - Part 6", | |
"Category":66, | |
"Description":"This course covers all the security aspects in SharePoint 2010. New to SharePoint 2010 is the support for claims based authentication. Students will learn how to configure a site for claims based authentication and how to do various security programming tasks. In addition the business intelligence (BI) capabilities of SharePoint 2010 are covered. You will see how to create custom dashboards using KPIs and filters along with SQL Server Reporting Services and SQL Server Analysis Services. By the end of this course you should be able to create dashboards using provided Dashboard Designer included with Performance Point Services.", | |
"Level":"Intermediate", | |
"Duration":7326, | |
"New":false, | |
"Modules":"0,1" | |
} |
This file contains 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
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:2.0.5:update (default) on project libreplan-business: Error setting up or running Liquibase: Migration failed for change set src/main/resources/db.changelog-1.2.xml::change-mapping-order-element-and-sum-charged-effort-postgresql::mrego: | |
[ERROR] Reason: liquibase.exception.DatabaseException: Error executing SQL CREATE OR REPLACE FUNCTION chageMappingBetweenOrderElementAndSumChargedEffort() RETURNS VOID AS $$ | |
[ERROR] DECLARE | |
[ERROR] sce RECORD; | |
[ERROR] BEGIN | |
[ERROR] FOR sce IN SELECT sum_charged_effort_id AS id FROM order_element | |
[ERROR] LOOP | |
[ERROR] EXECUTE 'UPDATE sum_charged_effort ' | |
[ERROR] || 'SET order_element ' | |
[ERROR] || ' = (SELECT id FROM order_element ' |
This file contains 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
exports.guardar = function( req, res ){ | |
var ids = []; | |
var index = 0; | |
var data = JSON.parse( req.body.data ); | |
res.mssql.connect( 'isadb01', 'Intranet'); | |
data.forEach( function( apunte ){ |
This file contains 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
upstream nodenica_upstream { | |
server 162.243.232.249:1234; | |
keepalive 64; | |
} | |
server { | |
listen 80; | |
server_name nodenica.com; | |
return 301 http://www.nodenica.com$request_uri; | |
} |
This file contains 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
#!/bin/bash | |
for files in `find . -name *.css`; do | |
mv "$files" "${files%.css}.less" | |
done |
This file contains 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
[ | |
{ | |
"group": "US (Common)", | |
"zones": [ | |
{ | |
"value": "America/Puerto_Rico", | |
"name": "Puerto Rico (Atlantic)" | |
}, | |
{ | |
"value": "America/New_York", |
OlderNewer