Skip to content

Instantly share code, notes, and snippets.

View alvnfaiz's full-sized avatar
💭
Energic

Alvin Faiz alvnfaiz

💭
Energic
View GitHub Profile
function urlMatchesOneOfPatterns(url, patterns) {
for (var i = 0; i < patterns.length; i++) {
var pattern = patterns[i];
if (url.match(pattern)) {
return true;
}
}
return false;
}
@ck3g
ck3g / proxies.rb
Last active October 20, 2018 15:23
Proxies
PROXIES = %W(
118.97.208.194:3128
118.97.247.107:3128
118.97.211.5:3128
175.136.226.87:3128
200.35.90.38:3128
95.70.208.245:8080
120.203.214.182:83
@Ashkanph
Ashkanph / MyPHPProxy.php
Created June 30, 2018 13:11
My PHP proxy
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
//$ch = curl_init($_GET['url']);
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
@cccaldas
cccaldas / gist:3695486
Created September 11, 2012 02:26
proxy.php
<?php
$filename = $_GET["url"];
$fsize = getSizeFile($filename);
header("Content-Type: image/jpeg");
header("Content-Length: ".$fsize);
readfile($filename);
function getSizeFile($url) {
if (substr($url, 0, 4) == "http") {
@leonardocr10
leonardocr10 / minhalista.m3u
Last active March 25, 2019 11:36
minhalista.m3u
http://premium-iptv.link:6969/live/despina/despina/5681.ts #Name: BR: DISCOVERY
http://premium-iptv.link:6969/live/despina/despina/7364.ts #Name: BR: Discovery Civilization
http://premium-iptv.link:6969/live/despina/despina/8074.ts #Name: BR: Discovery Home Health
http://premium-iptv.link:6969/live/despina/despina/7363.ts #Name: BR: Discovery Science
http://premium-iptv.link:6969/live/despina/despina/7362.ts #Name: BR: Discovery Turbo
http://premium-iptv.link:6969/live/despina/despina/7361.ts #Name: BR: Disney
http://premium-iptv.link:6969/live/despina/despina/7929.ts #Name: BR: Eimax 1
http://premium-iptv.link:6969/live/despina/despina/7357.ts #Name: BR: ESPN
http://premium-iptv.link:6969/live/despina/despina/5328.ts #Name: BR: ESPN Brasil
http://premium-iptv.link:6969/live/despina/despina/5327.ts #Name: BR: ESPN HD
@malikkurosaki
malikkurosaki / download.php
Created March 7, 2018 10:11
download youtube video to server
<?php
preg_match("/^(?:http(?:s)?:\/\/)?(?:www\.)?(?:m\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed)\/))([^\?&\"'>]+)/","https://www.youtube.com/watch?v=W8drxRl1fiY",$gtlk);
//echo $gtlk[1];
$fg = file_get_contents("https://www.youtube.com/get_video_info?video_id=".$gtlk[1]."&cpn=CouQulsSRICzWn5E&eurl&el=adunit");
$xp = explode(",",$fg);
parse_str($xp[0],$rst);
$url = $rst['url_encoded_fmt_stream_map'];
parse_str($url,$hasil);
echo $judul = $rst['title']; //get title
echo "<br><hr>";
// ==UserScript==
// @name AlfaPasser
// @namespace AlfaPasser - Cuma mau lewatin safelink
// @description Download di Fansub dan Fanshare besar tanpa melewati Iklan || By DevStudio
// @copyright 2019+, DevStudio
// @version 2.0.1
// @homepageURL https://devstudio.web.id/
// @icon https://cdn.myanimelist.net/images/characters/2/337013.jpg
// @grant GM_deleteValue
// @grant GM_getValue
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iniznet
iniznet / Gomunime popup Ads.user.js
Last active June 27, 2021 09:51
Gomunime Auto Popup Close & Auto 720p Player
// ==UserScript==
// @name Gomunime Auto Popup Close & Auto 720p Player
// @namespace https://niznet.my.id/
// @version 1.0.1
// @description Tutup 5 detik pop up / float ads & auto 720p Player
// @author niznet
// @match https://gomunime.online/*
// @icon https://www.google.com/s2/favicons?domain=gomunime.online
// @grant none
// ==/UserScript==
@bshaffer
bshaffer / Drive.php
Created December 28, 2015 19:56
Google Drive API (v3) - PHP
<?php
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*