How to improve database import with MySQL and MariaDB

In this post, I want to emphasise the approach to speed up importing data to a MySQL or MariaDB database using the exported file. mysql -u dbuser -p dbpass mydatabase…

How to manage multiple AWS keys on localhost

Overview To manage multiple AWS keys on localhost, configure multiple profiles in the AWS CLI using the ~/.aws/config and ~/.aws/credentials files. Step-by-step instructions Obtain Access Keys:Navigate to the AWS Management…

How to use curl to make DNS queries and resolve domains

1. Use –resolve Option The –resolve option allows you to manually specify the IP address for a domain, effectively overriding DNS resolution. Steps: Use the following syntax: curl –resolve <hostname>:<port>:<IP_address> <URL> Key…

How to force DNS lookup domains

$ nslookup dmscambs.co.uk 8.8.8.8$ nslookup dmscambs.co.uk$ curl -i www.dmscambs.co.uk$ curl -vvv www.biomodels.co.uk

AWS CLI Cheat Sheet

Common commands General Configuration Configure AWS CLI with credentials: aws configure –> Enter Access Key, Secret Key, Region, and Output Format. Create a profile: aws configure –profile <profile-name> Use a specific profile: Add –profile <profile-name> to your…

How to understand the underscore better in Python

Overview The underscore or underbar (_) serves many purposes in Python, and I haven’t fully grasped about some aspects of every one of them before starting this article. I made…

How to set PHP version per directory

On shared hosting servers, multiple versions of PHP can be simultaneously installed and various applications have to run with different PHP versions. How can we set up, for example, the…

Print Only HTTP Status Code With Curl

When handling HTTP requests, it is often necessary to check the status code of a response quickly, without retrieving the full headers or body. This is useful for testing API…

How to use the GET and POST method of Fetch API in JavaScript

This post will give an introductory explanation about using this method to get data from servers or post data to servers. What is the Fetch API? Fetch API is a…

Dockerfile templates

Mẫu Dockerfile các dự án (đúc kết chi tiết) Table of Contents