Posts

Upgrade all pip-installed Python packages

To upgrade all the python packages that was installed using pip you can use this following command:

sudo pip freeze --local | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 sudo pip install -U

wget and overwrite existing files

You can use the -N parameter to overwrite existing files when downloading with wget. For example:

wget -N https://www.dangtrinh.com/afile.txt


How to fix the issue when your user cannot see other users in Odoo 11

Image
In Odoo 11, if your user cannot see other users in the Users dashboard (http://your.domain.com/web?&debug=#view_type=list&model=res.users&menu_id=67&action=65), make sure you uncheck the "Portal" and "Public" in the Other Extra Rights section in that user's setting:


Open Source MANO VNF onboarding tool

Image
If you're working in the telco industry, you may realize an exciting race what is happening. It's the NFV Orchestration and Management (MANO) system. The origin of that is ETSI's work on the NFV MANO specification. After ETSI released the spec, many organizations have been trying to implement its own NFV MANO system including OpenStack Tacker, OPNFV, ONAP, and ETSI itself also adopted an open source project called Open Source MANO (OSM). I will explore a tool called VNF Descriptor Generator of OSM in this blog post.

What is VNF Descriptor Generator?

It's a web interface that helps you to generate VNF and NS Descriptor packages ready for launch (onboarding). By filling out all the information of your VNFs in the web form, the tool will provide you a VNFD package and an NSD package for you to download. This helps you to avoid typos and misconfiguration when you have to prepare the package manually.

1. In your OSM web interface, go to launchpad, VNF Descriptor generator, fi…

How to renew a standalone Let's Encrypt cert

If you deployed Let's Encrypt SSL certificate independently with nginx (standalone), you can't renew that cert while nginx is running. The only way is to stop nginx and proceed the renewal than start nginx again. Here is a bash script that you can use as crontab (e.g. /opt/my_scripts/renew_cert.sh):



Note: the script requires ssl-cert-check package so install it using this:

sudo apt install ssl-cert-check

Set the crontab as following:

0 */12 * * * /opt/myh_scripts/renew_cert.sh > /var/log/renew_cert.log 2>&1