Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Abdelaziz Sliem abdelaziz321

I may be slow to respond.
View GitHub Profile
GhostofGoes / .gitignore
Created Oct 4, 2018
Basic .gitignore template for Python projects
View .gitignore
# Editors
# Vagrant
# Mac/OSX
niksumeiko /
Last active Sep 5, 2021
Disable HTML form input autocomplete and autofill

Disable HTML Form Input Autocomplete and Autofill

  1. Add autocomplete="off" onto <form> element;
  2. Add hidden <input> with autocomplete="false" as a first children element of the form.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
Michael-Brooks / passwordValidation.php
Last active Aug 18, 2021
Laravel Password validation Regex (Contain at least one uppercase/lowercase letters and one number)
View passwordValidation.php
* Place this with the rest of your rules.
* Doesn't need to be in an array as there are no pipes.
* Password is required with a minimum of 6 characters
* Should have at least 1 lowercase AND 1 uppercase AND 1 number
$rules = [
'password' => 'required|min:6|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/'