The following steps show how to install VNC in RHEL/OEL Linux distros.
Setup VNC Server:
yum install tigervnc-server
Edit the vncservers
config file:
## The following is a simple script to rotate log files. Schedule it using crontab to regularly | |
## rotate log files. | |
## The script works by backing up the target log file (using cp) and then emptying it out. | |
## Usage: | |
## ./rotatelog.sh <<file name>> | |
## License MIT | |
DATESTAMP=`date +'%Y%m%d-%H%M'` | |
BACKUP_LOG_FILE=backup.$DATESTAMP.log |
/** | |
* Generates random integer between 2 interval. | |
* Used for | |
* @param min | |
* @param max | |
* @returns {*} | |
*/ | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; |
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"