This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; log PHP errors to a file. E_ALL=32767 | |
log_errors = on | |
error_reporting = 32767 | |
error_log = /proc/1/fd/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Date: 08/03/2022 | |
* Task-06: Get second largest number from array | |
* Author: Ali Raza ([email protected]) | |
* | |
*/ | |
/** | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* Date: 08/03/2022 | |
* Task: 04 | |
* Author: Ali Raza ([email protected]) | |
* | |
*/ | |
function printTable(num) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* JavaScript Array Methods */ | |
let emojis; | |
function resetEmojis() { | |
emojis = ["one", "two", "three", "four"]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @param {Object} firstObj | |
* @param {Object} secondObj | |
* @return {Boolean} | |
*/ | |
function checkIfEqualObjects(firstObj, secondObj) { | |
// Find the keys and their values in both of the objects | |
const firstArr = Object.entries(firstObj), | |
secondArr = Object.entries(secondObj); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Nginx - new server block | |
# Functions | |
ok() { echo -e '\e[32m'$1'\e[m'; } # Green | |
die() { | |
echo -e '\e[1;31m'$1'\e[m' | |
exit 1 | |
} |