About Gandalf The White

This author has not yet filled in any details.
So far Gandalf The White has created 30 blog entries.

Installing Laravel with Composer

The first thing required for installing Laravel with Composer is to have Composer installed on your machine. After that, you have to download the installation package for Laravel in Composer. You can do this using the following command: composer global require laravel/installer If the command is completed successfully you will see an output similar to

2020-02-02T20:49:07+02:00By |Categories: How To|0 Comments

Customize Product Tabs in WooCommerce

In this article, I will show you how to customize WooCommerce tabs. I will start by adding the tab because it contains almost everything we need to know. add_filter( 'woocommerce_product_tabs', 'woo_new_product_tab' ); function woo_new_product_tab( $tabs ) { $tabs['description_tab'] = array( 'title' => __( 'Description Tab', 'woocommerce' ), 'priority' => 50, 'callback' => 'woo_description_tab_content' ); return

2020-01-08T21:21:22+02:00By |Categories: WordPress|0 Comments

Add WordPress “At a Glance” Items

Sometimes we want to add items to the dashboard widget called "At a Glance". This can be done with the filter dashboard_glance_items. add_filter( 'dashboard_glance_items', 'add_custom_glance_items', 10, 1 ); function add_custom_glance_items( $items = array() ) { $items[] = '<a href="URL"'>My URL</a>'; return $items; } In the example above we use filter to add one item to

2020-01-10T19:01:27+02:00By |Categories: WordPress|0 Comments

Install TypeScript and Hello World Example

In this article, I will show you my first experience with TypeScript. I will follow instructions from the TypeScript website tutorials to create a "Hello World" example. What TypeScript is and reasons to use it can be found here. The first step is to install TypeScript using the command: npm install -g typescript After the

2019-12-08T17:21:41+02:00By |Categories: How To|0 Comments

SQL SELECT Statement

What is SQL SELECT statement? The SQL SELECT statement is used to fetch data from a database table which returns the data in the form of a result table. These result tables are called result sets. Basic syntax SELECT column1, column2, column3 FROM table_name; The query contains two keywords - SELECT and FROM. The SELECT

2019-07-09T22:16:28+03:00By |Categories: Explained Simply|Tags: |0 Comments

Basic Authentication With Nginx

Basic authentication with Nginx requires an installation of Nginx and htpasswd. We have to create a password file with users and passwords and add this file to Nginx. The password file The first step is the creation of a password file with htpasswd tool using the following command: htpasswd -c .htpasswd user The flag -c

2019-05-26T23:28:35+03:00By |Categories: Explained Simply|0 Comments

Nginx – Simple Socket Redirect

Sometimes we have to redirect listening from one port to another. For example, if we have a listener on localhost we want to redirect traffic from listening on other IP to localhost. In this example, we will listen on port 60000 and redirect all traffic to localhost listener with port 8000. server{ listen 60000; listen

2019-05-28T21:53:29+03:00By |Categories: How To|0 Comments
Go to Top