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
{ | |
"name": "react-redux", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"build": "webpack", | |
"start": "nodemon server.js", | |
"test": "echo \"Error: no test specified\" && exit 1", | |
"watch": "webpack --watch" |
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
odule.exports = { | |
entry: './client.js', | |
output: { | |
filename: 'bundle.js' | |
}, | |
devtool: 'source-map', | |
module: { | |
loaders: [ | |
{ | |
test: /.jsx?$/, |
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 app = require('express')(); | |
var requestProxy = require('express-request-proxy'); | |
| |
app.get('/', function(req, res) { | |
res.sendFile(__dirname + '/index.html'); | |
}); | |
| |
app.post('/api/webhooks/:channel', requestProxy({ | |
url: 'http://google.mvargeson.ultrahook.com/api/webhooks/:channel' | |
})); |
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
sqs.createQueue({QueueName: 'gmail-channel-webhooks'}, function (err, data) { | |
if (err) return console.log(err); | |
var url = data.QueueUrl; // use this queue URL to operate on the queue | |
// Sending a message | |
// The following example sends a message to the queue created in the previous example. | |
var queue = new AWS.SQS({params: {QueueUrl: url}}); | |
var body = JSON.stringify({ email: '[email protected]', 'historyId': '127f90a30t' }); | |
queue.sendMessage({ MessageBody: body }, function (err, data) { |
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
#!/bin/bash THIS WORKED | |
bash -c 'while ! </dev/tcp/db/5432; do sleep 1; done; nodal db:bootstrap && nodal s;' | |
#THIS WORKS ONLY IF NETSTST INSTALLED | |
while ! nc -w 1 -z db 5432; do sleep 0.1; done | |
#ANOTHER WAY | |
until nc -z postgres 5432; do | |
echo "$(date) - waiting for postgres..." |
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
postgres -D /usr/local/var/postgres |
NewerOlder