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
// @see https://www.doabledanny.com/merge-sort-javascript | |
function mergeSort(arr) { | |
// Base case | |
if (arr.length <= 1) return arr | |
let mid = Math.floor(arr.length / 2) | |
// Recursive calls | |
let left = mergeSort(arr.slice(0, mid)) | |
let right = mergeSort(arr.slice(mid)) |
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
Install webp for macOS | |
brew install webp | |
And run this command | |
cwebp -q 80 my_images.png -o my_images.webp | |
-q 80 is a flag to set the "quality", from 1 (worst) to 100 (best). |
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
DELETE FROM `phpmyadmin`.`pma__userconfig` WHERE username = 'root'; |
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
<VirtualHost *:80> | |
# The ServerName directive sets the request scheme, hostname and port that | |
# the server uses to identify itself. This is used when creating | |
# redirection URLs. In the context of virtual hosts, the ServerName | |
# specifies what hostname must appear in the request's Host: header to | |
# match this virtual host. For the default virtual host (this file) this | |
# value is not decisive as it is used as a last resort host regardless. | |
# However, you must set it for any further virtual host explicitly. | |
ServerName raspberrypi.local |