Skip to content

Instantly share code, notes, and snippets.

View popenkomaksim's full-sized avatar

Maksym Popenko popenkomaksim

  • DataArt
  • Kyiv, Ukraine
View GitHub Profile
@popenkomaksim
popenkomaksim / review-checklist.md
Created January 20, 2020 11:06 — forked from bigsergey/review-checklist.md
Front-end Code Review Checklist

Review checklist

General

  1. Does the code work?
  2. Description of the project status is included.
  3. Code is easily understand.
  4. Code is written following the coding standarts/guidelines (React in our case).
  5. Code is in sync with existing code patterns/technologies.
  6. DRY. Is the same code duplicated more than twice?
@popenkomaksim
popenkomaksim / aws-stream-logs-from-cloudwatch-lambda-es--lambda-code.js
Created March 28, 2019 13:22 — forked from torgeir/aws-stream-logs-from-cloudwatch-lambda-es--lambda-code.js
AWS stream logs from "cloudwatch -> lambda -> es" node.js lambda-code
// v1.1.2
var https = require('https');
var zlib = require('zlib');
var crypto = require('crypto');
var endpoint = '<aws es endpoint>';
exports.handler = function(input, context) {
// decode input from base64
var zippedInput = new Buffer(input.awslogs.data, 'base64');
.dockerignore
Dockerfile
README.md
example.png

DigitalOcean Dokku / Node.js Cloud Environment

Custom recipe to get full Node.js Cloud Environment in DigitalOcean Dokku droplet running from scratch. Yes. Your own Heroku for $5 per month.

I use this gist to keep track of the important configuration steps required to have a functioning system after fresh install.

When you have executed that's all step by step you will get a new working and stable system which is ready to host & serve your Node.js application and databases.

+ https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
+ https://github.com/dokku/dokku
+ https://github.com/ribot/dokku-slack
+ http://mikebian.co/sending-dokku-container-logs-to-papertrail/
+ https://github.com/heroku/heroku-buildpack-java -» https://devcenter.heroku.com/articles/getting-started-with-java#introduction
+ https://github.com/heroku/heroku-buildpack-nodejs -» https://devcenter.heroku.com/articles/getting-started-with-nodejs#introduction
+ https://github.com/dokku/buildpack-nginx –» https://florianheinemann.com/github/dokku/2014/11/17/Hosting-static-pages-on-Dokku.html
@popenkomaksim
popenkomaksim / .block
Created January 2, 2018 15:47 — forked from mbostock/.block
Color Mesh
license: gpl-3.0
@popenkomaksim
popenkomaksim / .block
Created January 2, 2018 15:46 — forked from mbostock/.block
Isometric III
license: gpl-3.0
@popenkomaksim
popenkomaksim / .block
Created January 2, 2018 14:29 — forked from mbostock/.block
Poisson-Disc V
license: gpl-3.0
@popenkomaksim
popenkomaksim / remove-merged-local-git-branches
Created August 18, 2017 12:09
Remove merged local branches
git branch --merged development | grep -v development | xargs -n 1 git branch -d
containers:
frontend:
setup:
- !Ubuntu trusty
- !UbuntuUniverse
- !BuildDeps [ca-certificates, wget, git, node, npm]
- !Sh "npm install -g n"
- !Sh "npm run set-project-node-version"
- !Sh "npm install -g node-gyp"
- !NpmInstall