Eclipse Vert.x Cheat Sheet

Eclipse Vert.x Cheat Sheet Cover

2.A Create a Vert.x application with Apache Maven

# Linux and MacOS
git clone PROJECT_NAME
# Windows
git clone PROJECT_NAME
Generate and Run
It generates the project structure and start the application in redeploy mode: your changes recompile and restart the application. The started application is accessible from http://localhost:8080
mvn package
An executable fat jar is created in the target directory.
Add the dependency in the pom.xml file
Dependency management
Add the dependency in the pom.xml file
Import the project as a Maven project in your favorite IDE
IDE support


2.B Create a Vert.x application with Gradle

git clone
Generate and Run
Eclipse Vert.x applications are fast, responsive, resilient and elastic. Here are step-by-step details to create them.

MongoDB Cheat Sheet

MongoDB Cheat Sheet
Navigating around Mongo

Here are the most used commands, operations and queries.

Help Methods and Commands
show dbs
Shows all databases available on this server
use acmegrocery
Switches to a database called acmegro- cery. Creates this database if it doesn’t already exist.
show collections
Show all collections in the current db (first `use ‹someDb›`)
show users
Show all users for the current DB
show roles
Show the roles defined for the current DB
There are many GUI tools to connect to MongoDB databases and browse but sometimes you need to get to the command line.

Containers Cheat Sheet

Containers Cheat Sheet Image
  1. docker CLI
    1. Container Related Commands
      docker [CMD] [OPTS] [CONTAINER]

      All examples shown work in Red Hat Enterprise Linux
      1. Run a container in interactive mode:
        #Run a bash shell inside an image
        $ docker run -it rhel7/rhel bash
        #Check the release inside a container
        [root@.../]# cat /etc/redhat-release

      2. Run a container in detached mode:
        $ docker run --name mywild y -d -p 8080:8080 jboss/wild y
      3. Run a detached container in a previously created container network:
         $ docker network create mynetwork
        $ docker run --name mywild y-net -d --net mynetwork
         -p 8080:8080 jboss/wild y

      4. Run a detached container mounting a local folder inside the container:
         $ docker run --name mywild y-volume -d
        -v myfolder/:/opt/jboss/wild y/standalone/deployments/
        -p 8080:8080 jboss/wild yjboss/wild y

      5. Follow the logs of a specific container:
         $ docker logs -f mywild y
        $ docker logs -f [container-name|container-id]
Get started with an introduction to container architecture including engine, image, registry, volume, related commands.

Linux Commands Cheat Sheet

Cheat Sheet Cover Image
ssh [ip or hostname] “vagrant ssh” in the same directory as the Vagrantfile to shell into the box/machine (assumes you have successfully “vagrant up”)
Secure shell, an encrypted network protocol allowing for remote login and command execution
On Windows: PuTTY and WinSCP
An “ssh.exe” is also available via Cygwin as well as with a Git installation.
Print Working Directory
Displays the full path name
Displays your logged in user id
cd /
cd target
cd ~
Change directory to the root of the filesystem
Change directory to “target” directory
Change directory to your home directory
ls -l
ls -la
Directory listing
Long listing, displays file ownership
Displays hidden files/directories
Get easy to use Linux shortcuts for developers in this cheat sheet and see screenshots to help you verify you are doing it correctly.