start new:
tmux
start new with session name:
tmux new -s myname
| // --------------------------------------------------------------------------------- | |
| // Mixin for Media Queries | |
| // --------------------------------------------------------------------------------- | |
| // http://thesassway.com/intermediate/responsive-web-design-in-sass-using-media-queries-in-sass-32 | |
| // Device Dimensions inpired on: http://css-tricks.com/snippets/css/media-queries-for-standard-devices | |
| // Usage | |
| // -------------------------------------------------- | |
| // .profile-pic |
| #view current chains | |
| $ iptables -L | |
| #remove/flush all rules & delete chains | |
| $ iptables -F | |
| $ iptables -X | |
| $ iptables -t nat -F | |
| $ iptables -t nat -X | |
| $ iptables -t mangle -F | |
| $ iptables -t mangle -X |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| 'use strict'; | |
| var | |
| gulp = require("gulp"), | |
| wiredep = require("wiredep").stream, // авто прописывет файлы из bower | |
| useref = require("gulp-useref"), // перемещает index.html | |
| uglify = require("gulp-uglify"), // минимизирует js | |
| clean = require("gulp-clean"), // удаление файлов, папок | |
| gulpif = require("gulp-if"), // объединяет файлы в поток | |
| filter = require("gulp-filter"), // фильтрует |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current window| " (N)Vim Configuration File | |
| " vim : place in $HOME/.vimrc | |
| " nvim : place in $HOME/.config/nvim/init.vim | |
| " $ ln -s $HOME/.config/nvim/init.vim $HOME/.vimrc | |
| " General settings | |
| " https://learnvimscriptthehardway.stevelosh.com/ | |
| " --------------------------------------------------------------------------- | |
| " drop vi support - kept for vim compatibility but not needed for nvim | |
| " Probably not needed with Vim 8+ | |
| "set nocompatible |
Pug - это препроцессор HTML и шаблонизатор, который был написан на JavaScript для Node.js.
Ref: https://gist.github.com/rnwolf/e09ae9ad6d3ac759767d129d52cab1f1
| Key Binding | Description |
|---|---|
| SPC | < space > |
| RET | < return > |
| C | < ctrl > |
| M | < alt >, M stands for Meta |