How to write JavaScript better. Airbnb JavaScript Style Guide
A mostly reasonable approach to JavaScript. Here is better ways to write JavaScript better
A mostly reasonable approach to JavaScript. Here is better ways to write JavaScript better
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 (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 »
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.
Json country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in json format.
XML Country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in XML format.
Yaml country list. Here is the list of all the countries in the world and their ISO 3166-1 codes in Yaml 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
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.
Click the links below to read: Vagrant Tutorial For Beginners: Getting Started Guide Discover Vagrant Boxes
Read it here: https://developer.hashicorp.com/vagrant/docs/networking/basic_usage
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 »
I get the error message, “Error: Init: SSLPassPhraseDialog builtin is not supported on Win32” when starting my website using Apache.
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 »