Skip to content

Instantly share code, notes, and snippets.

View verchol's full-sized avatar

Oleg Verhovsky verchol

View GitHub Profile
@verchol
verchol / afterPromiseFinally.js
Created December 22, 2016 05:30
using promise value after finally was called by using q
var Q = require('q');
var p = Q(2).then((a)=>{return 15}).finally(function (a){
console.log('finally:' + JSON.stringify(arguments));
})
.then((afterFinally)=>{console.log(`after finally ${JSON.stringify(afterFinally)}`)})
.catch((e)=>{console.log(`exception ${e}`)});
@verchol
verchol / Dockerfile
Created August 28, 2016 15:27 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
FROM debian:wheezy
RUN useradd --create-home user
ENV SKYPE_URL http://download.skype.com/linux/skype-debian_4.3.0.37-1_i386.deb
RUN dpkg --add-architecture i386 \
&& apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/* \
&& wget "${SKYPE_URL}" -O skype.deb \
&& apt-get purge -y --auto-remove wget \