Skip to main content

Posts

Showing posts from August, 2024

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

How to Compress and Extract Files in Linux Using tar (Complete Guide) The tar command is one of the most commonly used tools in Linux for compressing and extracting files and folders . Whether you're creating backups, transferring data, or packaging applications, mastering tar is essential. In this guide, you'll learn how to compress folders into .tar.gz archives , extract them, and understand what each option does — with practical examples. What Is tar? tar stands for Tape Archive . It was originally designed for backups, but today it's widely used to bundle files and optionally compress them using tools like gzip . A common format you’ll see is: .tar → archive only (no compression) .tar.gz → archive + gzip compression .tar.bz2 → archive + bzip2 compression Compress a Folder Using tar To compress a file or directory into a .tar.gz archive, use: tar -czvf archive-name.tar.gz path/to/folder Example tar -czvf backup.tar.gz /...

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)     I...

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