Skip to content

Instantly share code, notes, and snippets.

View rogaldh's full-sized avatar

Sergo rogaldh

View GitHub Profile
@rogaldh
rogaldh / cloudSettings
Last active January 28, 2020 09:40
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-01-28T09:40:33.245Z","extensionVersion":"v3.4.3"}
@rogaldh
rogaldh / example-subtree-usage.md
Created August 15, 2018 14:53 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

@rogaldh
rogaldh / install.sh
Created May 30, 2018 20:16
install Docker.debian
# https://docs.docker.com/install/linux/docker-ce/debian/#set-up-the-repository
$ apt-get remove docker docker-engine docker.io
$ apt-get update -y
$ apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
@rogaldh
rogaldh / flow-ignore.js
Created May 17, 2018 14:40 — forked from zerobias/flow-ignore.js
Make flow ignore all unrelated deps and work much faster
//@flow
const {
readdirSync,
outputFileSync,
pathExistsSync,
//$todo
readFileSync,
} = require('fs-extra')
{
"presets": ["flow"]
}
@rogaldh
rogaldh / software-engineer-cv.md
Last active March 2, 2022 13:19
Software engineer CV

Software engineer CV

Hello there.

My name is Sergey Prokhorov. I've been developing software for the Web and stuff since 2010.

TL;DR

  • DOB: 23.03.1987, sex: male,
@rogaldh
rogaldh / introrx.md
Created September 1, 2017 11:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

@kangax's ES6 quiz, explained

@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).

Here we go with the explanations:

Question 1:
(function(x, f = () => x) {
@rogaldh
rogaldh / nginx.conf
Created June 14, 2016 12:53 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@rogaldh
rogaldh / .md
Last active May 19, 2016 15:49
separate `.git` at one dir with indie `*.gitignore`

separate .git at one dir with indie *.gitignore

1.init .git twice

$ git init --separate-git-dir=src.git
$ rm .git
$ git init --separate-git-dir=prd.git
$ rm .git