Skip to content

Instantly share code, notes, and snippets.

View DenisIzmaylov's full-sized avatar
🎯
Focusing

Denis Izmaylov DenisIzmaylov

🎯
Focusing
View GitHub Profile
@DenisIzmaylov
DenisIzmaylov / case-1.js
Last active December 16, 2019 01:41
Clean Code?
// Bad
books.forEach(book => {
if (book[title]) {
if (book[author]) {
console.log(book)
}
}
})
// Good
@DenisIzmaylov
DenisIzmaylov / skydns.yml
Created August 28, 2016 13:53
SkyDNS in Kubernetes example
apiVersion: v1
kind: Service
metadata:
name: kube-dns
namespace: kube-system
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
kubernetes.io/name: "KubeDNS"
spec:
@DenisIzmaylov
DenisIzmaylov / NOTES.md
Last active June 7, 2016 00:56
Step By Step Guide to Kubernetes over CoreOS Cluster
@DenisIzmaylov
DenisIzmaylov / Git push deployment in 7 easy steps.md
Created June 5, 2016 00:50 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@DenisIzmaylov
DenisIzmaylov / README.md
Last active March 1, 2022 15:10
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://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@DenisIzmaylov
DenisIzmaylov / nodemailer-example.js
Last active August 23, 2023 05:24
NodeMailer.js usage
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
DenisIzmaylov / gist:f9db2487277f55d8931ba7f5e068f923
Created May 7, 2016 18:20
Note on tools for building micro-services based architecture: CI, CD, Cluster Management, etc

Tools for buiding microservices architecture (May 7, 2016)

We are obviously in the age of Microservices, Mobile first, Polyglot, post-Java JVM languages, GitHub and Docker uprise. In this world, Open Source usage dominates, and the speed of change is intense. Knowing the direction of DevOps tools and picking the right one for the project is crucial.

Terms

Continuous Integration is the practice of running your tests on a non-developer machine automatically everytime someone pushes new code into the source repository.

This has the tremendous advantage of always knowing if all tests work and getting fast feedback. The fast feedback is important so you always know right after you broke the build (introduced changes that made either the compile/build cycle or the tests fail) what you did that failed and how to revert it.

@DenisIzmaylov
DenisIzmaylov / NOTES.md
Last active November 15, 2019 07:39
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.

Content