Which pillar of the AWS Well-Architected Framework recommends maintaining infrastructure as code?
Secure file download in PHP, Security question PHP, PHP MYSQL Interview Question -Books download - PHP solutions guidelines queries update, phpmysqlquestion
Monday, June 12, 2023
AWS important questions
Thursday, May 4, 2023
git clone via ssh command line
Always coming late to answer anything, it may be possible that you have more than one ssh keys and if not specified git will try to use id_rsa but if you need a different one you could use
This way it will apply this config and use a key different than id_rsa before actually fetching any data from the git repository.
subsequent fetch or push will use the specified key to authenticate for the cloned repository.
Tuesday, April 25, 2023
Differences between AWS DevOps and Azure DevOps?
|
|
|
|
|
|
|
|
|
Friday, March 31, 2023
encryptor method in php
function encryptor($action, $string) {
$output = false;
$encrypt_method = "AES-256-CBC";
//pls set your unique hashing key
$secret_key = 'secret_key'
$secret_iv = 'secret_iv'
// hash
$key = hash('sha256', $secret_key);
// iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning
$iv = substr(hash('sha256', $secret_iv), 0, 16);
//do the encyption given text/string/number
if ($action == 'encrypt') {
$output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
$output = base64_encode($output);
} else if ($action == 'decrypt') {
//decrypt the given text/string/number
$output = openssl_decrypt(base64_decode($string), $encrypt_method, $key, 0, $iv);
}
return $output;
}
Sunday, February 19, 2023
DevOps journey
Anyone who have learn Linux do following task for practice which I did in my DevOps journey.
1) setup NFS server and client on other machine
2) setup dns server
3) setup dhcp server
4) install and configure load balancer (nginx or haproxy)
5) install teleport (PAM tool)
6) install databases( mariadb, postgres and mongodb) and access from other machine with database client (cli or gui)
7) install WordPress app and add certificates https (self-signed or letsencrypt)
8) install minio storage (s3 compatible) and configure aws cli to use it
9) do ssh tunnel for exposing application securely
10) create a bash script which will do your one of complete task from previous tasks mentioned
You can use Ubuntu/centos or any os
These tasks can make you confident for new tasks
How to solve mysql ERROR 1118 (42000) Row size too large
I had this issue with MYSQL 5.7 . The following worked althoug...
-
Introduction to PHP PDO (PHP Data Objects) 1. What is PDO 2. What Databases does PDO support 3. Where do I begin? 4. Connect to ...
-
SQLSTATE[HY000]: General error MySQL: 1364 Field 'coloum' doesn't have a default value, how to solveWith the root access of the mysql, do the following changes select @@ GLOBAL . sql_mode In my case, I get the following: ONLY_FULL_...
-
I had this issue with MYSQL 5.7 . The following worked althoug...