# Written by The Suhu (2021).
# Tested on Ubuntu Server 20.04
# Make sure you have enough disk space
# save in your home directory | |
set smtp-use-starttls | |
set ssl-verify=ignore | |
set nss-config-dir=/etc/pki/nssdb | |
set smtp=smtp.yourdomain.com:465 | |
set smtp-auth=login | |
set smtp-auth-user=thesuhu@yourdomain.com | |
set smtp-auth-password=yourpassword | |
set from="thesuhu@yourdomain.com (The Suhu)" |
DELIMITER $$ | |
CREATE FUNCTION extract_digits (string_mixed VARCHAR(100)) RETURNS VARCHAR(100) NO SQL | |
BEGIN | |
DECLARE find_digit_position VARCHAR(100); | |
DECLARE string_digits VARCHAR(100) DEFAULT ''; | |
DECLARE search_char VARCHAR(1); | |
DECLARE i INTEGER DEFAULT 1; | |
IF LENGTH(string_mixed) > 0 THEN |
# Written by The Suhu (2021).
# Tested on Ubuntu 20.04 LTS
The default cURL installed on the operating system may not be the latest version. if you want the latest version, then you need to build from the source. Let's check the cURL version installed with the following command.
#! /bin/bash | |
# Already tested on Ubuntu 20.04 | |
# Check the latest version at https://curl.se/download/ | |
VERSION=7.80.0 | |
cd ~ | |
sudo apt-get update -y | |
sudo apt-get install -y nghttp2 libnghttp2-dev libssl-dev build-essential wget | |
wget https://curl.haxx.se/download/curl-${VERSION}.tar.gz |
# Written by The Suhu (2021).
# Tested on CentOS 7 and CentOS 8
Previously I've written about How to Build and Install Latest cURL Version on Ubuntu. In this article in this article explain how to build and install latest cURL version on CentOS.
#! /bin/bash | |
# Tested on CentOS 7 and CentOS 8 | |
# Check the latest version at https://curl.se/download/ | |
VERSION=7.80.0 | |
cd ~ | |
sudo yum update -y | |
sudo yum install wget gcc openssl-devel make -y | |
wget https://curl.haxx.se/download/curl-${VERSION}.tar.gz |
How to Solve "ng build" Error TS7015: Element implicitly has an ‘any’ type because index expression is not of type 'number'
Today I got error message when running "ng build" on my project using Angular version 12.0.1. The error message is Error TS7015: Element implicitly has an ‘any’ type because index expression is not of type ‘number’.
To solve this problem, edit the file tsconfig.json
(TypeScript compiler configuration) and add the following configuration to the compilerOptions
key:
"compilerOptions": {
"suppressImplicitAnyIndexErrors": true,