#Docker Cheatsheet
####Search Docker images You can search Images with this command
$ docker search [image name]
mongodb for example:
$ docker search --filter=stars=1 mongo
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "type": "node", | |
| "request": "launch", | |
| "name": "Mocha Tests", | |
| "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha", | |
| "args": [ | |
| "--timeout", |
| //Configure the Keycloak client app as: Access Type public and Implicit Flow Enabled as true | |
| let authParams = { | |
| client_id: 'electron', | |
| redirect_uri: 'http://localhost', | |
| response_type: 'token', | |
| scope: 'openid', | |
| nonce: 'random_string' //Random string chain | |
| } | |
| let url = `${authConfig["auth-server-url"]}realms/${authConfig['realm']}/protocol/openid-connect/auth?${querystring.encode(authParams)}`; |
| const Model = require("./model"); | |
| let agg = model.aggregate(); | |
| //match the results | |
| agg.match({ | |
| rated: "R" | |
| }); | |
| //Make the projection | |
| agg.project({ |
| import React, { Component } from 'react'; | |
| class Display extends Component { | |
| render() { | |
| return <div>{this.props.number}</div>; | |
| } | |
| } | |
| class App extends Component { |
#Docker Cheatsheet
####Search Docker images You can search Images with this command
$ docker search [image name]
mongodb for example:
$ docker search --filter=stars=1 mongo
Access to the server
ssh root@VPS_PUBLIC_IP
Create a new User
adduser usrexample
##Essential sublime text 2/3 plugins
To install these plugins we need to install Sublime Text Package Control, https://packagecontrol.io/installation
1.- GitGutter, https://github.com/jisaacks/GitGutter
A sublime text 2/3 plugin to show an icon in the gutter area indicating whether a line has been inserted, modified or deleted.
2.- DocBlockr, https://github.com/spadgos/sublime-jsdocs
| module.exports = { | |
| entry: './src/index.js', | |
| output: { | |
| path: './dist', | |
| filename: 'bundle.js', | |
| publicPath: '/' | |
| }, | |
| devServer: { | |
| inline: true, | |
| contentBase: './dist' |
Install Node.js on Ubuntu 14.04
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs
node --version
sudo apt-get install -y build-essential
Install strong-pm