How to remove base url prepended to remote image url in wordpress
This is a php function you can use to remove base url prepended to image loaded from remote host. Just copy this script and drop it in your theme function or plugin.
How to fix Docker Engine failed to start – issues
If after installing docker on your machine and you found out that it is not running and you are seeing this error statement. Docker Engine failed to start…. Do not worry, just run below command, it will fix your problem. Open your window powershell client and run this command OR you can run the below …
How to fix Docker Engine failed to start – issues Read More »
Best Docker Tutorial References online
Docker Build: A Beginner’s Guide to Building Docker Images. Setup a basic Local PHP Development Environment in Docker.
How to write JavaScript better. Airbnb JavaScript Style Guide
A mostly reasonable approach to JavaScript. Here is better ways to write JavaScript better
How to Write Php better. PHP Style Guide
Here is the best reference to help you write php script better. Improve your code, help yourself and others to read your code better.
How to Remove Directories and Files Using Linux Command Line
How to Remove Directories (Folders) You can remove or delete directories or folder with the rmdir and rm in in linux,. Here are examples to help you delete either file or folder. Enjoy. To remove an empty directory, use either rmdir or rm -d followed by the directory name: To remove non-empty directories and all the files within them, use the rm command with the-r (recursive) …
How to Remove Directories and Files Using Linux Command Line Read More »
How to resolve Composer runs out of memory Issues .
You can run like this, and you don’t have to update the PHP INI file: COMPOSER_MEMORY_LIMIT=-1 composer create-project laravel/laravel my-app
List of all countries with names and ISO 3166-1 codes in Php
Here is the list of all the countries in the world and their ISO 3166-1 codes. You may you use it in your php codes.
List of all countries with names and ISO 3166-1 codes in Json
Json country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in json format.
List of all countries with names and ISO 3166-1 codes in XML
XML Country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in XML format.
List of all countries with names and ISO 3166-1 codes in Yaml
Yaml country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in Yaml format.
Top JavaScript Patterns Every Developer Should Know.
Every developer strives to write maintainable, readable, and reusable code. Code structuring becomes more important as applications become larger. Design patterns prove crucial to solving this challenge – providing an organization structure for common issues in a particular circumstance.
How to modify a URL without reloading the page using JavaScript
You may use either history.pushState() or history.replaceState() to update the URL in the browser, depending on your needs:
Developer Road Map
Here are some useful link to how you can become developer or IT professional Roadmaps https://github.com/kamranahmedse/developer-roadmap https://roadmap.sh/backend https://roadmap.sh/golang
Basic Git commands. AWS CodeCommit Guide
You can use Git to work with a local repo and the CodeCommit repository to which you’ve connected the local repo. The following are some basic examples of frequently used Git commands. Read Git documentation.
Vagrant Usage Reference
Click the links below to read: Vagrant Tutorial For Beginners: Getting Started Guide Discover Vagrant Boxes
Basic Usage of Networking In Vagrant
Read it here: https://developer.hashicorp.com/vagrant/docs/networking/basic_usage
Configure HTTPS using SSL certificate on WAMP local server
Generate Private key Open terminal as an Administrator and goto openssl installation path by typing below commad. then enter below command and enter a password 2 times and then enter below command and enter same password you entered in previous step. Create SSL Certificate Enter below command and enter real or dummy company information You …
Configure HTTPS using SSL certificate on WAMP local server Read More »
Error: Init: SSLPassPhraseDialog builtin is not supported on Win32
I get the error message, “Error: Init: SSLPassPhraseDialog builtin is not supported on Win32” when starting my website using Apache.
How to create Virtual Hosts in Nginx server
There are two directories in which we can create and store our virtual host configuration files. Both of them are located inside /etc/nginx directory. The name of those two directories are sites-available and sites-enabled. But why do we need two directories to store our virtual host files? Actually, we will store our virtual host files in the sites-available directory only. Then, we …
What is Bash scripting?
Bash scripting refers to the practice of writing scripts using the Bash (Bourne Again SHell) programming language. Bash is a popular command-line shell and scripting language primarily used in Unix-like operating systems, including Linux. Bash scripts are a collection of commands and instructions written in the Bash language. They are typically saved in plain text …
Bash Scripting: Hello world
Sure! Here’s a simple “Hello, World!” example in Bash scripting: Let’s break down the script: To run this script: You should see the output Hello, World! printed in the terminal. Congratulations! You’ve successfully executed your first Bash script.
How to run bash scripts?
To run a Bash script, you can follow these steps: In this example, the script prints a message and displays the current date using the date command. 6. Make the script executable by running the command: This command grants the script execution permission. 7. Finally, run the script by typing its name preceded by ./ …
How to Specify the Script’s Interpreter for bash script
To specify the script’s interpreter for a Bash script, you can use the shebang line. The shebang line is the first line of the script and begins with #! (hashbang) followed by the path to the interpreter. For example, to specify the Bash interpreter, you would include the following shebang line at the beginning of …
How to Specify the Script’s Interpreter for bash script Read More »
What is The PATH Environment Variable in bash?
The PATH environment variable in Bash (and other Unix-like shells) is a special variable that contains a list of directories where the shell looks for executable programs. When you type a command in the shell, it searches for that command in the directories listed in the PATH variable. Each directory in the PATH variable is …
What is The Shell or Bash Environment?
The shell or Bash environment refers to the execution environment provided by the Bash shell, which is a command-line interface and scripting language used in Unix-like operating systems, including Linux. When you open a terminal or command prompt, you enter a shell environment where you can interact with the operating system by executing commands. The …
What is bash comments and how to use it?
Bash comments are lines in a Bash script that are not executed as part of the script but serve as explanatory or informational notes. Comments are useful for documenting the purpose, behavior, or usage of the script, making it easier for others (including yourself) to understand the code. In Bash, there are two ways to …
What is quote in bash and how to use it?
In Bash, quotes are used to define how the shell interprets and treats text. They help control how variables, special characters, and whitespace are handled. There are three types of quotes commonly used in Bash: single quotes (”), double quotes (“”) and backticks (“). In this example, the variable $USER is not expanded because it …
What is what is a Here or heredoc document in bash?
A Here Document, also known as heredoc, is a feature in Bash (and other shells) that allows you to include multiline input within a script or command directly, without the need for external files. It provides a convenient way to specify blocks of text or data inline within a script. In Bash, a Here Document …
What is what is a Here or heredoc document in bash? Read More »