vim {filename}
General | |
---|---|
:e {filename} |
edit a file |
:q |
quit |
:q! |
quit without writing |
:wa |
write all changed files (save all changes), and keep working |
package org.opentsdb.client; | |
import static com.google.common.base.Preconditions.checkArgument; | |
import java.io.IOException; | |
import java.util.concurrent.TimeUnit; | |
import org.apache.commons.lang.StringUtils; | |
import org.apache.http.HeaderElement; | |
import org.apache.http.HeaderElementIterator; |
# Install virtualbox | |
sudo apt install virtualbox | |
# Install Kubectl | |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin | |
# Install Minikube | |
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.14.0/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ | |
# Launch Minikube | |
minikube start |
Typing vagrant
from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init
-- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath>
-- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64
.vagrant up
-- starts vagrant environment (also provisions only on the FIRST vagrant up)