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
Computer programming is the process of designing and building an executable computer program to accomplish a specific computing result.
Programming involves tasks such as: analysis, generating algorithms, profiling algorithms’ accuracy and resource consumption, and the implementation of algorithms in a chosen programming language (commonly referred to as coding).
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
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.
XML Country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in XML format.
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.
You may use either history.pushState() or history.replaceState() to update the URL in the browser, depending on your needs:
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
Click the links below to read: Vagrant Tutorial For Beginners: Getting Started Guide Discover Vagrant Boxes
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 …
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 …
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.
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 ./ …
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 »
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 …
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 …
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 …
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 …
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 »
To use a Here Document (heredoc) in Bash, you need to follow a specific syntax. Here’s an example that demonstrates how to use a heredoc in different scenarios: In this example, the heredoc text enclosed between <<END and END is assigned to the variable variable. The cat command is used to capture the heredoc text. …
In Bash, variables are used to store and manipulate data. They allow you to store values, such as text strings or numbers, and use those values throughout your script. Variables in Bash are untyped, meaning they can hold values of any type. Here’s an example of defining and using variables in Bash: In this example, …
In Bash, the export command is used to create or modify environment variables and make them available to child processes. When a variable is exported, it becomes part of the environment for any subsequent commands or scripts that are executed. Here’s how you can use the export command to export variables in Bash: In this …
Exporting Variables In Bash. What is it and how to use it? Read More »
Parameter expansion in Bash allows you to manipulate and expand the values of variables. It provides a way to perform string manipulation, substitution, or extraction operations on variable values. Here are some commonly used parameter expansion techniques in Bash: In this example, the value of the name variable is substituted into the string using ${name}. …
What is parameter expansion in bash and how to use it Read More »
In Bash, a subshell refers to a child shell that is spawned as a subprocess of the main shell. It operates independently and has its own environment, variables, and execution context. Subshells are useful for isolating and controlling processes within a script or shell session. Here are a few scenarios where subshells are commonly used: …
In Bash, command substitution is a feature that allows you to capture the output of a command and use it as part of another command or assign it to a variable. It provides a way to dynamically incorporate the result of a command into your script. Command substitution can be achieved using either the $() …
In Bash, special variables are predefined variables that hold specific values or provide information about the environment and execution of the script. These variables are automatically set by the shell and can be accessed and used within your script. Here are some commonly used special variables in Bash: These are just a few examples of …
Here is a list of commonly used special variables in Bash and their meanings: These special variables provide valuable information about the script’s execution environment, command-line arguments, process IDs, and other relevant details. They allow you to access and utilize this information within your script to make decisions, perform operations, or provide feedback to the …
List of Common Used Special Variables in Bash and what they mean Read More »
Command-line arguments, also known as command-line parameters, are the values passed to a program or script when it is invoked from the command line. They allow you to provide input or instructions to the program at runtime, influencing its behaviour or providing data for processing. In Bash, command-line arguments are accessed through special variables: When …
The shift command in Bash is used to shift the positional parameters to the left, discarding the value of $1 and moving the remaining arguments ($2, $3, and so on) to lower positions ($1, $2, and so on). It effectively shifts the values of the command-line arguments, allowing you to access and process them in …
The set command in Bash is used to set or change the values of the positional parameters (command-line arguments) within a script. It allows you to modify the values of the positional parameters directly, without relying on command-line arguments. The set command has several uses and options: 2. Setting positional parameters using the arguments passed …
In Bash, you can process command-line options, also known as flags or switches, using the getopts built-in command. The getopts command provides a convenient way to parse and handle options passed to a script. Here’s a basic example of using getopts to process options: In this example, the getopts command is used within a while …
Reading from STDIN (Standard Input) in Bash allows you to accept user input or process data entered via the keyboard or piped from another command. You can use various techniques to read input from STDIN within a Bash script. When executing this script, it prompts the user to enter their name. The read command captures …