As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
configdocs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public - Sep 07, 2020 update docs for
npm version
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| Byobu Commands | |
| ============== | |
| byobu Screen manager | |
| Level 0 Commands (Quick Start) | |
| ------------------------------ | |
| <F2> Create a new window |
| //http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript | |
| Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); |
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.
#Some discussions on logging from docker: Using logstash Using Papertrail
A lot of this boils down to whether you want a single or multi-process (systemd, supervisord etc.) container...
| # create a file C:\Users\[user]\.bashrc | |
| # add this content | |
| # add your onw aliases or changes these ones as you like | |
| # to make a dot (.bashrs) file in windows, create a file ".bashrs." (without extention) and save. windows will save it as ".bashrc" | |
| alias ls='ls -alh' | |
| alias cdnginx='cd /c/nginx && ls' | |
| alias cdmcga='cd /c/Users/[user]/sbox/node/mcga && ls' | |
| alias cdfood9='cd /c/Users/[user]/sbox/node/food9 && ls' | |
| alias cdmysql='cd /c/nginx/mysql/bin && ls' |
Picking the right architecture = Picking the right battles + Managing trade-offs
| <ul id="pages-block"> | |
| <li v-for="page in pages"> | |
| <a v-bind:href="page.url">{{page.name}}</a> | |
| <debug :item="page"/> | |
| </li> | |
| </ul> | |
| ... | |
| Vue.component('debug', { |