Skip to main content

Posts

Showing posts from August, 2024

compress a folder and decompress it in linux terminal using tar command

Compress a folder and decompress it in linux terminal using tar command  Run "tar -czvf (archive name).tar.gz (pathtofile)” in the Terminal to compress a file or folder.  tar -czvf (archive name).tar.gz (pathtofile) To extract an archive to the current folder, run the command “tar -xzvf (archive file)". tar -xzvf (archive file)

open new port with IP Tables in Oracle Cloud

 open new port with IP Tables in Oracle Cloud To list all IP Tables rules: iptables -L To save a backup of the origintal IP Tables rules: iptables-save > iptables_backup.txt To allow port 80 in IP Tables: iptables -A INPUT -p tcp --dport 80 -j ACCEPT To save the changes and make them permanent: iptables-save

Highlights on my contributions to Odoo Community Association

 Highlights on my contributions to Odoo Community Association For me as a developer working on odoo community and providing services to the customers using the community version of Odoo. Sometimes the solution is available in a module published by OCA that could be an older version of Odoo. As a result, I decided to put my upgraded modules on their repositories as a contributor, and I asked to join them on the mailing list. For them, before I start to make a pull request, I need to sign their ICLA document. ICLA means Odoo Community Association Individual Contributor License Agreement. To upgrade a module to version 17.0 I had to follow the instructions stated on: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0 Firstly this section: https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0#before-migrating Which needs you to: (1)      Subscribe to OCA mailing list (2)     Sign ICLA as stated above (3)     Install precommit  as instructed here: https:

How to Clone all Remote Branches in Git

 How to Clone all Remote Branches in Git Step 1: Clone the Repository git clone https://github.com/username/repository.git Step 2: Navigate to the Repository Directory cd repository Step 3: Fetch All Remote Branches git fetch --all Step 4: Create Local Branches Tracking Remote Branches for branch in $(git branch -r | grep -v '\->'); do     git branch --track ${branch#origin/} $branch done Step 5: Pull All Branches git pull --all