Dec 14, 2021

golang OTP just simple play

1. main package : https://github.com/xlzd/gotp package main import ( "fmt" "time" "github.com/xlzd/gotp" ) func main() { totp := gotp.NewDefaultTOTP("4S62BZNFXXSZLCRO") // ini cara create paling simple // klo mau custom bs pake gotp.NewTOTP(secret, 6, 30, nil) secret=string, 6=digits, 30=interval in second code := totp.Now() mytime := int(30 - time.Now().Unix()%30) unixtime := int(time.Now().Unix()) fmt.Println("pertama...
Read more ...

Aug 14, 2021

[solved] py3o.formats can not installed

 well, just simple solution, 1. download source file 2. python3 setup.py install3. sudo vim models/ir_actions_report.py 4. import sysegg_path='/opt/odoo13/odooaddons/report_py3o/models/py3o.formats/dist/py3o.formats-0.3-py3.6.egg'sys.path.append(egg_path)import py3o.formats5. restart odoo then install the modu...
Read more ...

Mar 11, 2021

odoo 13 on ubuntu 20 ssl error, [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:1123)

sudo vim /etc/ssl/openssl.cnfat first line addopenssl_conf = default_conf## OpenSSL example configuration file.# This is mostly being used for generation of certificate requests.## Note that you can include other files from the main configuration# file using the .include directive.#.include filenameat the end of line add                              ...
Read more ...