Skip to content

Instantly share code, notes, and snippets.

View aufa's full-sized avatar

NAWA aufa

View GitHub Profile
@aufa
aufa / mysql_backup_import.php
Last active April 23, 2021 23:31
PHP function to backup and import database using MYSQLI
<?php
/**
* @author awan < nawa (at) yahoo (dot) com >
*
*/
/**
* Function to build SQL /Importing SQL DATA
*
@aufa
aufa / util.js
Last active September 15, 2016 01:23
Minimal Helper Javascript Utility
/*! Util JS
* Small File javascript function
* collection Without jQuery as User Authentication Helper
* @author awan <nawa (at) yahoo (dot) com>
*
-------------------------------- */
/**
* global zxcvbn
* Get scores of password meter
@aufa
aufa / MY_Config.php
Last active April 14, 2019 19:00
Prevent Visitor Accessed Direct Controller & Fix Main Url on Code Igniter config base url not set
<?php
/**
* Hackie of CI 3 Core URL Fix Sanitized
* Automation detect base url
* @pentagonal
*/
if (!class_exists('CI_Config')) {
return;
}
@aufa
aufa / .htaccess
Last active June 9, 2016 11:14
Upload to your directory that not allowed to exec behaviour script (apache only)
# Deny First
Deny from all
# Does not allow access executable files
# Allow only if not an executable / static resource
# that allow to be access
# note :
# ?i: = hat means incase sensitive
# (?!( = start except of current regex
# Below setting is affected to :
@aufa
aufa / App.php
Created September 14, 2016 16:22
Creating Simple BenchMark Collection on Slim 3
<?php
/**
* Example
*/
namespace MyNameSpace;
use Slim\App as Slim;
use Pentagonal\Component\Slim\BenchMark;
/**