Installation
gem install rmagick # you'll need ImageMagick & Ruby first
gem install colormath
gem install micro-optparse
| # find process holding port | |
| sudo netstat -lpn |grep :80 | |
| # run nginx command | |
| sudo LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH /opt/nginx/sbin/nginx | |
| #reload nginx | |
| sudo LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH /opt/nginx/sbin/nginx -s reload | |
| #get all nginx process |
| # mongo.conf | |
| #where to log | |
| logpath=/log/mongod.log | |
| logappend=true | |
| # fork and run in background | |
| fork = true |
| [ { queue: | |
| { client: [Object], | |
| promoter: null, | |
| workers: [Circular], | |
| _events: {} }, | |
| type: 'abc', | |
| client: | |
| { stream: [Object], | |
| options: [Object], | |
| connection_id: 1, |
| > node index.js | |
| ec2-54-234-201-7.compute-1.amazonaws.com :27017 | |
| Error: No valid replicaset instance servers found | |
| at /var/app/current/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/repl_set/repl_set.js:446:45 | |
| at null.<anonymous> (/var/app/current/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/server.js:499:7) | |
| at EventEmitter.emit (events.js:95:17) | |
| at null.<anonymous> (/var/app/current/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:178:15) | |
| at EventEmitter.emit (events.js:98:17) | |
| at Socket.<anonymous> (/var/app/current/node_modules/mongoskin/node_modules/mongodb/lib/mongodb/connection/connection.js:501:10) |
| var Intimidate = require('intimidate'); | |
| var s3Uploader = function(options) { | |
| try { | |
| this.client = new Intimidate(options); | |
| } catch (e) { | |
| return null; | |
| } | |
| }; |
| var fs = require('fs'), | |
| http = require('http'), | |
| https = require('https'), | |
| httpProxy = require('http-proxy'); | |
| var hskey = fs.readFileSync('./***-key.pem' , 'utf8'); | |
| var hscert = fs.readFileSync('./***-cert.pem' , 'utf8') | |
| var options = { | |
| https: { |
| <div class = "parent"> | |
| <div class="child"> | |
| <div class="child1"> | |
| <div class="child2"> | |
| <div class="child3"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> |