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
| server { | |
| listen 80; | |
| server_name testproject.local | |
| charset utf-8; | |
| reset_timedout_connection on; | |
| proxy_set_header Host $http_host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
| Installing NODEJS on Ubuntu 14 LTE | |
| Steps to follow : | |
| sudo apt-get install python-software-properties | |
| sudo apt-get install software-properties-common | |
| sudo add-apt-repository ppa:chris-lea/node.js | |
| sudo apt-get install build-essential libssl-dev | |
| sudo apt-get update | |
| sudo apt-get install nodejs |
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
| sudo npm install -g generator-gulp-webapp | |
| mkdir myOwnApp | |
| cd myOwnApp | |
| yo gulp-webapp | |
| gulp | |
| gulp serve | |
| gulp test |
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
| Ext.define('MLPI.shared.ux.plugins.CheckBoxGroupedSelectableModelForComboBox', { | |
| extend: 'Ext.AbstractPlugin', | |
| requires: [ | |
| 'Ext.AbstractPlugin' | |
| ], | |
| alias: 'plugin.checkboxgroupedselectionmodelforcombobox', | |
| init: function (combo) { | |
| var displayFieldName = combo.displayField, me = this; |
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
| Ubuntu problems :: | |
| warning: Setting locale failed | |
| Solution : | |
| sudo locale-gen en_US.UTF-8 | |
| export LC_ALL="en_US.UTF-8" | |
| export LC_ALL="en_US.UTF-8" |
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
| use ets; | |
| db.orgs.remove({_id: {$in: [ ObjectId('507ba4947b2bc5d8eee92c59'), ObjectId('507ba5427b2bc5d8eee92c5d'), ObjectId('50d2089cb3a7231c0400001b') ]}}) | |
| db.subscriptions.remove({billingEmail: 'a.fats@gmail.com'}) | |
| db.users.remove({userName: 'a.fats@gmail.com'}); | |
| use mlpishared; | |
| db.videoClipStandard.remove({_id: {$in: [ ObjectId('517ad2d7465ae88815000002') , ObjectId('517e2448b496200c19000001') ]}}); | |
| var clips = db.videoClips.find({}).toArray(); | |
| clips.forEach(function (item) { | |
| delete item.submittedBy; |
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
| openssl genrsa -out key.pem | |
| openssl req -new -key key.pem -out csr.pem | |
| openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem | |
| rm csr.pem |
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
| npm install -g generator-gulp-angular | |
| yo gulp-angular |
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 http = require('http'), | |
| https = require('https'), | |
| fs = require("fs"), | |
| httpProxy = require('http-proxy'), | |
| util = require("util"); | |
| var httpOptions = { |
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
| sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000 | |
| then install iptables-persistent which will persist the rules | |
| sudo apt-get install iptables-persistent -y |