Данная пошаговая инструкция поможет освоить основы на простом примере
Для справки
Сервер поднимался на Debian 8
c характеристиками:
CPU - 1 ядро x 500 МГц
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# We use preexec and precmd hook functions for Bash | |
# If you have anything that's using the Debug Trap or PROMPT_COMMAND | |
# change it to use preexec or precmd | |
# See also https://github.com/rcaloras/bash-preexec | |
# If not running interactively, don't do anything | |
case $- in |
By the way, I'm available for tutoring and code review :)
new Promise
?.then
callback yet?](https://gist.github.com/joepie91/4c3a10629a4263a522e3bc4839a28c83#6-butThis guide assumes you have the emmet
and language-babel
packages already installed in Atom
keymap.cson
file by clicking on Atom -> Keymap…
in the menu bar'atom-text-editor[data-grammar~="jsx"]:not([mini])':
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');
Those suck for maintenance and they're ugly.
[ | |
// Working in some additional Vim or Vim-like bindings; using 'g' as <leader> | |
// because it's homerow and unused for most commands: | |
{ "keys": ["g", "t"], "command": "next_view", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "r"], "command": "prev_view", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "n"], "command": "focus_side_bar", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "w"], "command": "focus_group", "args": { "group": 0 } }, | |
{ "keys": ["g", "m"], "command": "find_under_expand", "context": [{"key": "setting.command_mode"}] }, | |
{ "keys": ["g", "s"], "command": "sftp_browse_server", "context": [{"key": "setting.command_mode"}] }, |
// Place user-specific overrides in this file, to ensure they're preserved | |
// when upgrading | |
{ | |
"folder_exclude_patterns": [".svn", ".git", ".hg", "CVS", "node_modules"] | |
} |