Author Archives: ballacksave

Gammu

gammu-smsd-inject TEXT 08123456789 -text “ballack test2” ssh -t system@172.17.16.18 “gammu-smsd-inject TEXT 08123456789 -text \”ballack test2\””

mysql 5.7 iqnore zero timestamp

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] sql_mode=IGNORE_SPACE,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

ubuntu set datetime

timedatectl sudo timedatectl set-ntp no sudo timedatectl set-time ‘2020-07-04 23:59:00’

ubuntu change time zone

system@aggregator:~$ date Thu Dec 21 11:42:10 WIB 2017 system@aggregator:~$ sudo cp /etc/localtime /etc/localtime.old system@aggregator:~$ sudo ln -sf /usr/share/zoneinfo/Asia/Makassar /etc/localtime system@aggregator:~$ date Thu Dec 21 12:42:16 WITA 2017

crontab

crontab -l current crontab to be displayed on standard output. crontab -e is used to edit the current crontab using the editor specified by the EDITOR environment variable.

restart network ubuntu 16

sudo ip addr flush eth0 sudo service networking restart klo rewel, pake cara klasik sudo ifdown eth0 && sudo ifup eth0

Disk Usage

du -h –max-depth=1 du -hs ls -l | grep ^- | wc -l