Skip to content

Instantly share code, notes, and snippets.


Denis Izmaylov DenisIzmaylov

Block or report user

Report or block DenisIzmaylov

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
DenisIzmaylov / i18n-data.json
Last active Feb 5, 2020
Easy i18n translation in your ES6 apps
View i18n-data.json
"ru": {
"Your original english text": "Твой оригинальный русский текст"
View case-1.js
// Bad
books.forEach(book => {
if (book[title]) {
if (book[author]) {
// Good
DenisIzmaylov /
Last active Dec 6, 2019
OS X 10.11 El Capitan: fresh install with Node.js (io.js) Developer Environment

OS X 10.11 (El Capitan) / Node.js and io.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.


DenisIzmaylov /
Last active Dec 2, 2019
Step By Step Guide To Setup Docker Registry

Step By Step Guide To Setup CI/CD With Docker Registry

Step-by-Step Guide how to install CI/CD with Docker Registry On Ubuntu 14.04 LTS from scratch.

  1. Install Docker using Official Manual or just run:
sudo bash
apt-get update
apt-key adv --keyserver hkp:// --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
DenisIzmaylov /
Last active Nov 15, 2019
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.


View nodemailer-example.js
import path from 'path';
import nodemailer from 'nodemailer';
import { htmlToText } from 'nodemailer-html-to-text';
import templates from '../templates';
import projectInfo from '../../project-info';
import logger from '../../logger';
const moduleLogger = logger.child({
module: 'emailServiceActions'
const packageInfo = require('../../../package.json');
DenisIzmaylov /
Last active May 25, 2019
DigitalOcean Dokku: fresh install with Node.js Environment

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.

View circular-json-stringify.js
function circularJSONStringify(obj) {
const cache = [];
const result = JSON.stringify(obj, (key, value) => {
if (typeof value === 'object' && value !== null) {
if (cache.indexOf(value) !== -1) {
// Circular reference found, discard key
// Store value in our collection
View gist:fd0d39a3d0b86e913192

After migrating from heroku to dokku, we had to also chance codeship so we deploy to dokku. I followed the following steps to successfully deploy to dokku.

  1. Save the public key of the codeship project. It is found in Project Settings > General Settings.
  2. Copy the public key to a file /tmp/
  3. Make sure when pasting, all the contents are in a single line and not multiple lines.
  4. Add the public key to dokku using the following command in console. Reference.
cat /tmp/ | ssh root@yourdokkuinstance "sudo sshcommand acl-add dokku [description]"
You can’t perform that action at this time.