Author Archives: ballacksave

joda time

String dateString = “2018-08-29T00:00:00+07:00”; String pattern = “yyyy-MM-dd’T’HH:mm:ssZ”; DateTimeFormatter dtf = DateTimeFormat.forPattern(pattern); DateTime dateTime = dtf.parseDateTime(dateString); System.out.println(dateTime);

linux mount

sudo mount /dev/sdb1 /media sudo umount /media fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 63 204796619 102398278+ 7 HPFS/NTFS /dev/sda2 204797952 205821951 512000 83 Linux /dev/sda3 205821952 976773119 385475584 8e Linux LVM sudo mount -t ntfs /dev/sda1 /media USB devices are usually vfat and Linux are usually ext sudo mount -t… Read More »

alias in bash shell

vi ~/.bash_profile alias ll=’ls -la’ untuk refresh ketik source ~/.bash_profile

Category: mac

Intellij plugin project Lombok

Go to File > Settings > Plugins Click on Browse repositories… Search for Lombok Plugin Click on Install plugin Restart IntelliJ IDEA

redirect port pada linux menggunakan redir

system@test:~$ redir usage: redir –lport= –cport= [options] redir –inetd –cport= Options are:- –lport= port to listen on –laddr=IP address of interface to listen on –cport= port to connect to –caddr= remote host to connect to –inetd run from inetd –debug output debugging info –timeout= set timeout to n seconds –syslog log messages to syslog –name=… Read More »

ubuntu unzip jar

install unzip sudo apt-get install unzip unzip asdf.jar -d ~/folder/tujuan/