Category: Tips and Tricks

Thủ thuật phần mềm

Elastic Search

Limit elasticsearch official docker container memory

Pull Elasticseach official docker image: docker pull docker.elastic.co/elasticsearch/elasticsearch:5.6.3 Run new container with parameter -e “ES_JAVA_OPTS=-Xms256m -Xmx1g”: docker run -d \ –net meete \ –name elasticsearch \ –hostname elasticsearch \ -e “ES_JAVA_OPTS=-Xms256m -Xmx1g” \ -e “http.host=0.0.0.0” \ -e “transport.host=127.0.0.1” \ -e “xpack.security.enabled=false” \ docker.elastic.co/elasticsearch/elasticsearch:5.6.3 Reference link: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

Ubuntu

Cannot “Move to trash” in Ubuntu

Reason: There is no folder named .Trash-{UID}, or application doesn’t have permission to read and write file in that folder. Solution: Step 1: Find your UID (by default, current user has UID=1000) Run cat /etc/passwd | grep $(whoami) Result looks like this: ubuntu:x:1000:1000:ubuntu,,,:/home/ubuntu:/bin/bash You can see 1000,…

JQuery Logo

JQuery tips for HTML select

I am working on the next version of Bible for WordPress plugin, and I learned some tips while playing with HTML select. I hope this helpful!

Oracle

How to do when Oracle Vendor Code 28001

Open SQL Developer and perform the following steps: Right click on Connections > New Connection. Connection Name: sys Username: sys as sysdba Password: sys (or your sys password) Hostname: your database server IP Port: 1521 SID: your sid Click connect. Expand Other Users, and choose the…

Team Viewer

Kinh nghiệm sử dụng TeamViewer

Hôm nay mới đọc báo thấy nói TeamViewer bị tấn công chiếm quyền điều khiển thành ra người dùng bị mất toàn bộ tiền trong tài khoản ngân hàng. Theo cái nhìn khách quan của mình thì do người dùng lưu password bằng chức năng có…