Skip to content

Instantly share code, notes, and snippets.

View brettswift's full-sized avatar

Brett brettswift

  • Calgary
View GitHub Profile
@hakanson
hakanson / aws-xray-utils.js
Last active December 28, 2018 03:35
adds an AWS X-Ray subsegment and Metadata for an Alexa Skills Kit triggered Lambda
'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 February 9, 2024 07:55
A personal cheat sheet for running local Node project in a Docker container
# 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 .
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