Skip to content

Instantly share code, notes, and snippets.

View iryston's full-sized avatar

Igor R. Plity iryston

View GitHub Profile
@iryston
iryston / tmux_cheatsheet.md
Last active August 29, 2015 14:20
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# tmux installation steps for Ubuntu 14.04 (Trusty Tahr)
sudo apt-get update
sudo apt-get install -y python-software-properties software-properties-common
sudo add-apt-repository -y ppa:pi-rho/dev
sudo apt-get update
sudo apt-get install -y tmux=1.9a-1~ppa1~t
tmux -V
# On Ubuntu 12.04 (Precise Pangolin), step 5 would be: sudo apt-get install -y tmux=1.9a-1~ppa1~p
# On Ubuntu 13.10 (Saucy Salamander), step 5 would be: sudo apt-get install -y tmux=1.9a-1~ppa1~s
@iryston
iryston / gist:9d560d0effe7625e192e
Last active August 29, 2015 14:27 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX
----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
Switch between background command line and MC: Ctrl + o
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name
@iryston
iryston / .editorconfig
Last active November 16, 2016 15:57
EditorConfig template
# Editor configuration normalization
# @see http://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
@iryston
iryston / config.cson
Last active November 2, 2016 12:14
My Atom config. To use it install this packages: atom-beautify atom-minify editorconfig emmet file-icons git-plus merge-conflicts open-terminal-here pigments sort-lines gruvbox-plus-syntax
"*":
"atom-beautify":
css:
convert_quotes: "double"
default_beautifier: "Pretty Diff"
indent_size: 2
newline_between_rules: true
predefinedConfig: "yandex"
selector_separator_newline: true
general:
@iryston
iryston / webdev-references.md
Last active February 9, 2019 10:08
Online resources for Web developers
.col-xs-1-10,
.col-sm-1-10,
.col-md-1-10,
.col-lg-1-10 {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
.col-xs-1-5,
.col-sm-1-5,
.col-md-1-5,
.col-lg-1-5 {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}

Percona / Ubuntu 16.04

Installing Percona Server from Percona apt repository

Fetch the repository packages from Percona web:

wget -c https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb
@iryston
iryston / DoIt.md
Created January 2, 2017 01:56 — forked from scotthorn/DoIt.md
Setting up Drupal 7 on AWS Ubuntu 14.04 with Nginx, Memcache, and Varnish