Skip to main content

Posts

Showing posts from 2018

mvn debug commands

mvn help:describe -Dcmd= phase   list lifecycle  phases  along with bound  goals   A Maven command like a single goal or a single phase following the Maven command line:    mvn [options] [ ] [ ]   mvn help:describe -Dplugin=help   Describe  plugin   mvn help:describe -Dmojo=describe   Describe  goal   Display brief information about the describe goal only   mvn help:describe -Dcmd=clean   Describe  lifecycle   Describe lifecycle and phases   mvn help:describe -Dcmd=compiler:compile   Describe  plugin goal   mvn help:describe -Dplugin=help  -Dminimal=true   Minimal description   Less information   mvn help:describe -Dplugin=help  -Ddetail   Full description   Extra information   mvn help:active-profiles   Discover which profiles have been applied to the projects currently being built   For each project in the build sessio

Language Hotkeys removed by itself (Windows 10)

See the  article 1- Define your hot-keys. 2- Search and find the "region" settings palette and go to administrative tab. Now go to "Copy Settings" section. Select both tick boxes below the window and press ok.

How to check Properties of JAVA installed

[myuser@localhost ~]$ java -XshowSettings:properties -version Property settings:     awt.toolkit = sun.awt.X11.XToolkit     file.encoding = UTF-8     file.encoding.pkg = sun.io     file.separator = /     java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment     java.awt.printerjob = sun.print.PSPrinterJob     java.class.path = .     java.class.version = 51.0     java.endorsed.dirs = /home/myuser/java/jdk1.7.0_75/jre/lib/endorsed     java.ext.dirs = /home/myuser/java/jdk1.7.0_75/jre/lib/ext         /usr/java/packages/lib/ext     java.home = /home/myuser/java/jdk1.7.0_75/jre     java.io.tmpdir = /tmp     java.library.path = /usr/java/packages/lib/amd64         /usr/lib64         /lib64         /lib         /usr/lib     java.runtime.name = Java(TM) SE Runtime Environment     java.runtime.version = 1.7.0_75-b13     java.specification.name = Java Platform API Specification     java.specification.vendor = Oracle Corporation     java.speci

keytool cheatsheet

Divide photos from mobile to different folders

If photos are of name  20171114_175035.jpg you can divide them into different folders according dates. Run below commands on photos folder. rem copy pictures images movies camera/mobile phone to sub folders pics photos rem ##### make folders according dates of images ##### dir /b *.jpg | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat rem #### move images to folders ##### dir /b *.jpg | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/move \0 \1_\2_\3_\4/g"  > c2.bat c2.bat rem #### make folders for movies ##### dir /b *.mp4 | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat dir /b *.mp4 | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/move \0 \1_\2_\3_\4/g"  > c2.bat c2.bat dir /b *.avi | sed -e "s/^\(....\)\(..\)\(..\)_\(.\).*/mkdir \1_\2_\3_\4/g" | uniq  |sort > c1.bat c1.bat dir /b *.avi | sed -e &q