Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
I may be slow to respond.

Abdelaziz Sliem abdelaziz321

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

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
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
<?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).+$/'
];
View README.md