SCP allows files to be copied from one host to another over SSH. Copy the file “foobar.txt” **from the REMOTE HOST to the LOCALHOST** scp username@remote-host-ip:foobar.txt /home/ranzy/Desktop/ Copy the file “foobar.txt” **from…
Syntax for Secure Copy (scp) Linux
Install mod_jk to remove Tomcat port 8080 from URL
mod_jk is an apache module which connects Tomcat to webservers. What this allows is for you to remove any port numbers from the url. In short mod_jk forwards requests from…
Solve Javac IntelliJ: error:java: javactask: source release 1.6 requires target release
Click on: File -> Settings In the search box, search for: Compiler Under the compiler section, click on: Java Compiler Under the per-module bytecode version section: Remove the current bytecode…
Use Gmail or Google Apps email with OpenCart
Input the following details: Select “SMTP” as the mail protocol Insert “ssl://smtp.gmail.com” as the SMTP hostname Insert your SMTP username and SMTP password. This is your email address and password used…
Convert DMG to ISO Ubuntu
A few simple commands are required to convert DMG files to ISO format: sudo apt-get install dmg2img dmg2img file-to-convert.dmg mv file-to-convert.img image.iso
CSS rotate or spin image
Simply add the spin class to the image, and change the value of the text highlighted in red to increase or decrease the rate of spin. .spin { animation: roll 8s…
Adjust Bootstrap Navbar breakpoint
Sometimes the Bootstrap Navbar collapses into the minified version too early, or too late. The following snippet allows you to adjust at what point the collapsing takes place (courtesy of…
No wrap text CSS
If you would like to display some text without line breaks within that text, you can apply the following CSS to the p or span element surrounding the text in…
MySQL – create database, add user, grant permissions
This guide will explain how to create a database in MySQL, add a new user to MySQL, and grant permissions on that database for the new user. Login to MySQL…
Install phpMyAdmin Ubuntu 14.04 / 14.10
Install phpMyAdmin by executing the following command in your terminal: sudo apt-get install phpmyadmin You will be prompted with a number of questions through the installation process: Select apache2 as…









