Use of DateTimeFormatter

Posted on by Kim

Use DateTimeFormatter instead of SimpleDateFormat

DateTimeFormatter.ofPattern("yyyyMMdd_HHmm").format(LocalDateTime.now()));

@SuppressWarnings not working with checkstyle

Posted on by Kim

Remember to add SuppressWarningsHolder insite the TreeWalker as:

  <module name="TreeWalker">
     .
     .
     .
     <module name="SuppressWarningsHolder" />
  </module>

ssh, scp to Virtualbox

Posted on by Kim

Under Network -> Advanced -> Port  Forwarding


Name: ssh
Protocol: TCP
Host Port: 3022
Guest Port: 22



Start client from terminal

VBoxManage startvm "<name>" --type headless

SSH from host to client

ssh -p 3022 kim@127.0.0.1

SCP from host to client

scp -P 3022 vpn_config.zip 127.0.0.1:.