create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
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 | |
/** | |
* 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; |
## 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 |
# after appcleaner does his magic, do this | |
sudo rm -rf "/Library/Application Support/Paragon Software/" | |
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist | |
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist | |
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist | |
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/ | |
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer | |
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/ |
''' | |
Script to delete jobs and nested views in Jenkins CI including the parent view. | |
This currently works when you have two-level nested views with jobs under the child view. | |
Parent view | |
- Child view 1 | |
- Job 1 | |
- Job 2 | |
- Child view 2 | |
- Job 3 |