Skip to content

Instantly share code, notes, and snippets.

View Tynael's full-sized avatar
🎯
Focusing

Carol Pelu Tynael

🎯
Focusing
View GitHub Profile
@Tynael
Tynael / index.html
Created January 14, 2024 17:07
CSS-Only Reading Progress Bar
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Reading Progress Bar Demo</title>
<style>
body {
font-family: 'Arial', sans-serif;
font-size: 18px;
@Tynael
Tynael / httpd-vhosts.conf
Created November 29, 2023 17:06
Apache's httpd-vhosts.conf file
# xampp/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName localvaren.com
ServerAlias localvaren.com
DocumentRoot "G:/xampp/htdocs/varen/public"
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.localvaren.com [OR]
RewriteCond %{SERVER_NAME} =localvaren.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
@Tynael
Tynael / httpd-vhosts.conf
Created November 29, 2023 16:52
Apache's httpd-vhosts.conf file
# xampp/apache/conf/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName localvaren.com
ServerAlias localvaren.com
DocumentRoot "G:/xampp/htdocs/varen/public"
</VirtualHost>
<VirtualHost *:443>
ServerName localvaren.com
@Tynael
Tynael / v3.ext
Created November 29, 2023 16:13
v3.ext file used by makecert.bat file to generate an SSL certificate with some specific configurations
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
DNS.2 = *.localvaren.com
DNS.3 = localvaren.com
DNS.4 = 127.0.0.1
DNS.5 = 127.0.0.2
@Tynael
Tynael / makecert.bat
Created November 29, 2023 16:13
makecert.bat used in XAMPP to create a self-signed SSL certificate
@echo off
set OPENSSL_CONF=./conf/openssl.cnf
if not exist .\conf\ssl.crt mkdir .\conf\ssl.crt
if not exist .\conf\ssl.key mkdir .\conf\ssl.key
bin\openssl req -new -out server.csr
bin\openssl rsa -in privkey.pem -out server.key
bin\openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 1825 -extfile v3.ext
@Tynael
Tynael / README.md
Last active February 14, 2024 13:19
How to Set up an SSL Certificate in Localhost for XAMPP

How to Set up an SSL Certificate in Localhost for XAMPP

These files represent the content that has been modified during the tutorial.

To better understand the context, go through the video and/or written tutorial.

@Tynael
Tynael / tests\Feature\UserControllerTest.php
Created October 26, 2023 19:11
Laravel — Improve Email Validation
<?php
declare(strict_types=1);
namespace Tests\Feature;
use Tests\TestCase;
use Faker\Factory as Faker;
class UserControllerTest extends TestCase
@Tynael
Tynael / tests\Feature\UserControllerTest.php
Created October 26, 2023 19:07
Laravel — Improve Email Validation
<?php
declare(strict_types=1);
namespace Tests\Feature;
use Tests\TestCase;
use Faker\Factory as Faker;
class UserControllerTest extends TestCase
@Tynael
Tynael / tests\Feature\UserControllerTest.php
Created October 26, 2023 18:56
Laravel — Improve Email Validation
<?php
declare(strict_types=1);
namespace Tests\Feature;
use Tests\TestCase;
use Faker\Factory as Faker;
class UserControllerTest extends TestCase
@Tynael
Tynael / \app\Http\Requests\CreateUserRequest.php
Created October 26, 2023 18:54
Laravel — Improve Email Validation
<?php
declare(strict_types=1);
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class CreateUserRequest extends FormRequest
{