Skip to content

Instantly share code, notes, and snippets.

Brett brettswift

Block or report user

Report or block brettswift

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hakanson
hakanson / aws-xray-utils.js
Last active Dec 28, 2018
adds an AWS X-Ray subsegment and Metadata for an Alexa Skills Kit triggered Lambda
View aws-xray-utils.js
'use strict';
// http://docs.aws.amazon.com/lambda/latest/dg/lambda-x-ray.html
/*
* expected usage:
let AWS = require('aws-sdk');
const AWSXRay = require('aws-xray-sdk-core');
const AWSXRayUtil = require('./aws-xray-utils');
if (process.env.AWS_XRAY_DAEMON_ADDRESS) {
@bahmutov
bahmutov / Docker shell commands.sh
Last active Sep 20, 2019
A personal cheat sheet for running local Node project in a Docker container
View Docker shell commands.sh
# See list of docker virtual machines on the local box
$ docker-machine ls
NAME ACTIVE URL STATE URL SWARM DOCKER ERRORS
default * virtualbox Running tcp://192.168.99.100:2376 v1.9.1
# Note the host URL 192.168.99.100 - it will be used later!
# Build an image from current folder under given image name
$ docker build -t gleb/demo-app .
View gist:3868012
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET http://nj-npm.irisnpm.com/serialport
npm http GET http://nj-npm.irisnpm.com/colors
npm http GET http://nj-npm.irisnpm.com/kickstart
npm http GET http://nj-npm.irisnpm.com/socket.io
npm http GET http://nj-npm.irisnpm.com/requirejs
npm http 200 http://nj-npm.irisnpm.com/colors
npm http GET http://nj-npm.irisnpm.com/colors/-/colors-0.6.0-1.tgz
npm http 200 http://nj-npm.irisnpm.com/serialport
You can’t perform that action at this time.