Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
pm2 start server.js --name server --interpreter iojs
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,
@paulomcnally
paulomcnally / find_express_or_connect.sh
Created February 27, 2014 05:14
Find express or connect on frameworks modules for nodejs
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
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 = [];
@paulomcnally
paulomcnally / course.json
Last active August 29, 2015 13:57
Course Data
{
"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"
}
[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 '
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 ){
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;
}
#!/bin/bash
for files in `find . -name *.css`; do
mv "$files" "${files%.css}.less"
done
[
{
"group": "US (Common)",
"zones": [
{
"value": "America/Puerto_Rico",
"name": "Puerto Rico (Atlantic)"
},
{
"value": "America/New_York",