Run the following in your client machine
ssh -R EXPOSED_PORT:localhost:SERVICE_PORT USER@HOST
Where
- EXPOSED_PORT is the port exposed to the internet in the proxy server
- SERVICE_PORT is the port your application is listening in your machine
/* eslint-env browser */ | |
/* eslint no-bitwise: 0, no-console: 0*/ | |
'use strict'; | |
function binSearch(haystack, needle, comparator, low, high) { | |
var mid, cmp; | |
if (low === undefined) { | |
low = 0; |
'use strict'; | |
var nodemailer = require('nodemailer'); | |
var smtp = require('nodemailer-smtp-transport'); | |
var options = { | |
service: 'gmail', | |
auth: { | |
user: 'username', | |
pass: 'password' |
'use strict'; | |
// Nodemailer: v2.0.0 | |
// Ubuntu: 14.04 | |
// node: v5.5.0 | |
// npm: 3.3.12 | |
var nodemailer = require('nodemailer'); | |
var transporter = nodemailer.createTransport({ | |
service: 'Mandrill', |
'use strict'; | |
// npm install nodemailer nodemailer-smtp-pool | |
var nodemailer = require('nodemailer'); | |
var smtpPool = require('nodemailer-smtp-pool'); | |
// Create a SMTP transporter object | |
var transport = nodemailer.createTransport(smtpPool({ | |
host: 'smtp.gmail.com', | |
port: 465, | |
secure: true, |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDX+dz7lssGpOWQBpq0+F9E0mrBnZx4NKdo/7vxF2ppybutKr6a5mN0oeu/EkUGdjJol7tGxmHqvmZUrXkwH1ZUfAQ6HTY3kl6YPiFhCWmypN/jfqPQke9vz1RVzaqjf92zoJITlOdaEmQqoAF0Lj+WZNsu83wVUSvlCdvLLgFKqVyQlCWRJ+cm/iCAGSo+47Qj2zqiN0WGURaFN6Cf8p+tzRUyvsZDaFCjNtmXZPay8IqzplysWZNiqRkkDDJeY87uyQGenMK785khcG+26F/dDyaK/q3mMSJuQaVHGs90pNCclLuAcTOtz/VO2hgNVBPFJROWH5bp2dlLd1n0kTqd [email protected] |
{ | |
"plugins": ["ID", "X-GM-EXT-1", "XOAUTH2", "STARTTLS", "SASL-IR", "AUTH-PLAIN", "NAMESPACE", "IDLE", "ENABLE", "CONDSTORE", "XTOYBIRD", "LITERALPLUS", "UNSELECT", "SPECIAL-USE", "CREATE-SPECIAL-USE"], | |
"debug": true, | |
"secureConnection": true, | |
"port": 993, | |
"smtpPort": 465, | |
"users": { | |
"testuser": { | |
"password": "testpass", | |
"xoauth2": { |
// Install uue decoder: | |
// npm install uue | |
var message = | |
'This is a message with uuencoded attachment\n' + | |
'\n' + | |
'begin 644 cat.txt\n' + | |
'#0V%T\n' + | |
'`\n' + | |
'end\n'; |
{ | |
"meta": { | |
"mail": true, | |
"message_id": "[email protected]", | |
"type": "Dropbox", | |
"date": "Fri, 27 Sep 2013 11:02:10 +0300", | |
"user_id": 25, | |
"company_id": 25 | |
}, | |
"data": { |
<?php | |
$str = "/v1/combinedObjects:(id,user_id,value,title,person:(id,name,activities_count,owner_id:(name),activities_count),organization:(id,name))"; | |
print_r(queryParser($str)); | |
function queryParser($query){ | |
// split tokens | |
$tokens = preg_split('/,|(?=:\\(|\\))|(?<=:\\(|\\))/', $query, -1, PREG_SPLIT_NO_EMPTY); |