Skip to content

Instantly share code, notes, and snippets.

View phpfact's full-sized avatar
🎯
Focusing

Sachin Sharma phpfact

🎯
Focusing
View GitHub Profile
<form onsubmit="return confirm('Make sure all your information was entered correctly! Do you want to submit the form?');">
<input type="submit" />
</form>
<script>
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function setCookie(name, value, daysToLive) {
var cookie = name + "=" + encodeURIComponent(value);
if(typeof daysToLive === "number") {
cookie += "; max-age=" + (daysToLive*24*60*60);
<?php
https://stackoverflow.com/questions/31539727/laravel-password-validation-rule
Laravel password validation rule
#Validation rule:
English uppercase characters (A – Z)
English lowercase characters (a – z)
php artisan serve --host=HERE_YOUR_DOMAIN --port=80
php artisan serve --host=crm.satoshifx.com --port=80
<input type="password" required class="form-control" title="lowercase, uppercase, numeric, special character, 8 characters or longer." name="mainpassword" pattern="^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$">
<!-- Keydown hote hi pattern check kre ga inline function and hand to hand error deta rhe hai -->
<!-- oninput="if (typeof this.reportValidity === 'function') {this.reportValidity();}" -->
<!-- Use Bellow Code -->
<input type="password" required class="form-control" title="lowercase, uppercase, numeric, special character, 8 characters or longer." name="mainpassword" pattern="^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$" oninput="if (typeof this.reportValidity === 'function') {this.reportValidity();}">
1. https://github.com/paperbits/paperbits-demo (100/100) MIT Best Love Nice
2. https://github.com/elementor/elementor
3. https://github.com/BuilderIO/builder
https://codelapan.com/post/how-to-add-google-recaptcha-in-laravel-8
google recaptcha add in laravel 8 , 9
@phpfact
phpfact / index.txt
Last active January 25, 2023 05:15
/* Form Dummy Filler */
https://fakefiller.com/
/* Chrome Link Hint */
https://lydell.github.io/LinkHints/
/* scroll-to-specific-div-on-another-section-when-a-link-is-clicked */
/* center center scrolled scroll to center center div div center */
<script>
$('html, body').animate({
scrollTop: $("#HereYourDivIdForScolledEvent").offset().top //id of div to be scrolled
}, 1000);
</script>
#Copy and Paste .htaccess file for all website for secutiry
/*
::Best Blog::
https://htaccessbook.com/important-security-headers/
How to set HSTS header from .htaccess only on HTTPS [closed]
*/