Here are some bash profile functions to help you use tomcat as a pro. The following needs to be done in either your
.profile file or
.bash_profile, depending on what shell you have and whichever method you prefer. First off, make sure you have exported
CATALINA_HOME variable pointing to the base of your tomcat installation.
Once you’ve got that done, you can define the following shell functions. Continue reading
So a lot of times when you’re working with some cool docker containers, you might need to remove all those dead containers that are just lying around. This could happen if you’re running docker containers in background or forgot to use
Not to worry, just run this command to remove ALL running docker containers in one go: Continue reading
This is how you can stream a folder or multiple folders from a server over SSH protocol.
To stream folders in uncompressed, raw format, run:
ssh firstname.lastname@example.org "sudo tar -cO /folder1 /opt/folder2" | tar -xf -
Since the tar file is being streamed raw, this could potentially take longer as more data is being passed between server and client. In my test for 700 megabytes of data, this command took 1:56 seconds.
There’s another method. Continue reading
Here’s a quick way to configure docker to work with proxy. Keep in mind that this only works if you are using boot2docker or a docker-machine. This generally applies to Windows or Mac operating systems.
Create a new docker-machine with proxy: Continue reading