Skip to content

Instantly share code, notes, and snippets.

View oupirum's full-sized avatar

Constantine Oupirum oupirum

  • Saint Petersburg
View GitHub Profile
@oupirum
oupirum / mobx-cheatsheet.js
Created April 17, 2019 19:02
MobX cheatsheet
// MobX - state manager with functional reactive programming paradigm.
// version 5.8.0
// The philosophy behind MobX is very simple:
// Anything that can be derived from the application state,
// should be derived. Automatically.
// Events
// ↓
// [ Actions ] ← ----- ← --•
@oupirum
oupirum / python-cheatsheet.py
Created April 17, 2019 18:59
Python cheatsheet
# version 3.5
================================================================================
Basics =========================================================================
================================================================================
# Python is interpreted, dynamic language.
# Supports object-oriented style.
# Can be used in interactive mode.
@oupirum
oupirum / git-cheatsheet.sh
Created April 17, 2019 18:57
Git cheatsheet
================================================================================
Config =========================================================================
git config -e # edit .gitconfig
--local # for current repository
--global # globally for user
# ~/.gitconfig example:
[user]
@oupirum
oupirum / linux-cheatsheet.sh
Last active April 17, 2019 18:56
Linux commands cheatsheet
================================================================================
Terminal hotkeys ===============================================================
Ctrl+U # cut all before cursor
Ctrl+K # cut all after cursor
Ctrl+W # cut word before cursor
Ctrl+Y # paste
Ctrl+L # clear screen
Ctrl+S # freeze output
@oupirum
oupirum / docker-cheatsheet.sh
Last active April 17, 2019 18:56
Docker cheatsheet
# Docker - platform for containerization
# version: 17.12.0-ce
# Image - read-only template with instructions for creating a docker container.
# Container - runnable instance of an image.
# After installation need to add user to docker group
sudo usermod -aG docker $(whoami)
################################################################################