Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View noncent's full-sized avatar
💭
Bravo! 💯

Nono noncent

💭
Bravo! 💯
  • 12:39 (UTC +05:30)
View GitHub Profile

Here is the very simple demo for getting user's data from database and login system. I hope you will enjoy the code and comments :)

Just get it step by step, Do not hurry

.htaccess code: (Place inside your CodeIgniter project)

<IfModule mod_rewrite.c>

    # Make sure directory listing is disabled

Options +FollowSymLinks -Indexes

@noncent
noncent / WindowsHostManager.bat
Last active September 9, 2018 11:57
Window Host Manager is windows batch file to add entries in host file
:: WindowsHostManager.bat
@ECHO OFF
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
@noncent
noncent / dummy emails
Created June 29, 2020 06:54
List of valid and invalid emails to check
!def!xyz%abc@iana.org
"""@iana.org
""@iana.org
"[[&nbsp;test&nbsp;]]"@iana.org
"\"@iana.org
"Abc@def"@iana.org
"Abc\@def"@iana.org
"Austin@Powers"@iana.org
"Doug&nbsp;"Ace"&nbsp;L."@iana.org
"Doug&nbsp;\"Ace\"&nbsp;L."@iana.org
@noncent
noncent / bootstrap 3 form validation with ajax calls
Last active June 30, 2020 13:26
Below code has a Modal Box and Form inside Modal. Form has validation and ajax submission. On submit modal box will close automatically and will open a new tab with pdf link.
<?php
// print all POST vars
print_r($_POST);
@noncent
noncent / web-auth.php
Last active September 13, 2021 20:48
PHP web auth sample code. Add Web Authentication in PHP. Web Authentication PHP. PHP HTTP Basic Auth. HTTP Basic Auth. Basic Auth
<?php
header('Cache-Control: no-cache, must-revalidate, max-age=0');
function html($message)
{
return <<<HTML
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>$message</title><style type="text/css">h1.error{left:0;line-height:200px;margin-top:-100px;position:absolute;text-align:center;top:50%;width:100%;font-size:15em;color:#dadada;-webkit-text-fill-color:#dadada;-webkit-text-stroke-width:1px;-webkit-text-stroke-color:black}</style></head><body><h1 class="error">$message</h1></body></html>
HTML;
}
@noncent
noncent / LinkedIn-auto-delete-script.js
Last active June 4, 2023 10:58
Delete LinkedIn messages automatically in one go.
Hello everyone!
Some time ago, I was attempting to tidy up my LinkedIn account by removing unnecessary clutter.
I decided to begin by deleting all of the old messages, followed by the notifications. However,
I soon discovered that I had to manually click and delete each notification individually,
as there was no option to select and delete them in bulk. This process was quite surprising and time-consuming.
To address this issue, I created a script that automates the deletion process for you.
The script is designed to be executed in the console panel of your web browser and is written in plain JavaScript.
Its purpose is to delete old notifications, messages, and archives,