Skip to content

Instantly share code, notes, and snippets.

View medamin25's full-sized avatar

Mohamed Amin Boubaker medamin25

View GitHub Profile
@medamin25
medamin25 / ublockorigin-facebook-comment-like.filterlist.txt
Last active September 3, 2022 01:18
💯 **_success_** 👍 🚀 🎸 Filterlist for ublock origin to allow facebook comment and like button
@@||connect.facebook.net^$script
@@||www.facebook.com/plugins/like.php$subdocument
@medamin25
medamin25 / curl_func.php
Created August 19, 2022 14:24 — forked from cp6/curl_func.php
Ultimate PHP cURL function example
<?php
function doCurl(string $url, string $type = 'GET', array $headers = [], array $post_fields = [], string $user_agent = '', string $referrer = '', bool $follow = true, bool $use_ssl = false, int $con_timeout = 10, int $timeout = 40)
{
$crl = curl_init($url);
curl_setopt($crl, CURLOPT_CUSTOMREQUEST, $type);
curl_setopt($crl, CURLOPT_USERAGENT, $user_agent);
curl_setopt($crl, CURLOPT_REFERER, $referrer);
if ($type == 'POST') {
curl_setopt($crl, CURLOPT_POST, true);
if (!empty($post_fields)) {