Skip to content

Instantly share code, notes, and snippets.

View LeonSkrilec's full-sized avatar
🎯
Focusing

Leon Škrilec LeonSkrilec

🎯
Focusing
View GitHub Profile
memory_get_peak_usage();
function formatBytes($bytes, $precision = 2) {
$units = array("b", "kb", "mb", "gb", "tb");
$bytes = max($bytes, 0);
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
$pow = min($pow, count($units) - 1);
$bytes /= (1 << (10 * $pow));
@LeonSkrilec
LeonSkrilec / commands.md
Last active October 31, 2022 17:49 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@LeonSkrilec
LeonSkrilec / create_self_signed_cert_xampp.md
Last active December 30, 2022 11:20
How to create working SSL certificate for XAMPP virtual hosts on Windows

How to create working self signed certificate for custom virtual hosts on Windows

Step by step tutorial how to create working self signed SSL certificate for XAMPP apache server on Windows (Even working in chrome version > 58)

Prerequisites

You have to have OpenSSL installed and in your system PATH for this to be working.

You can download OpenSSL binary here. Just extract contents in some directory - I put mine in C:/OpenSSL