This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$list = file_get_contents("http://www.tellypass.com/pac/annie-2315"); | |
function scrape_between($data, $start, $end){ | |
$data = stristr($data, $start); // Stripping all data from before $start | |
$data = substr($data, strlen($start)); // Stripping $start | |
$stop = stripos($data, $end); // Getting the position of the $end of the data to scrape | |
$data = substr($data, 0, $stop); // Stripping all data from after and including the $end of the data to scrape | |
return $data; // Returning the scraped data from the function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## send request back to apache1 ## | |
location / { | |
proxy_pass http://$host$uri; | |
proxy_set_header Accept-Encoding ""; | |
proxy_redirect off; | |
proxy_buffering off; | |
proxy_ssl_verify off; | |
proxy_ssl_server_name on; | |
proxy_set_header Host $host; | |
resolver 8.8.8.8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
events { | |
worker_connections 1024; | |
} | |
user www-data; | |
worker_processes 4; | |
http { | |
# Basic Settings | |
sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
curl -sSL https://get.docker.com/ | sh | |
update-rc.d docker defaults | |
service docker start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Note, this script assumes Ubuntu Linux and it will most likely fail on any other distribution. | |
# bomb on any error | |
set -e | |
# change to working directory | |
root="/opt/netflix-proxy" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"videos":[ | |
{ | |
"ss_id":95244, | |
"sport_name":"", | |
"tournament_name":"Blitz", | |
"name":"Blitz", | |
"description":"Blitz ", | |
"thumbnail":"http://cdn.dstv.com/supersport.img/videoimages/2014/12/live_stream_lauren_SSBlitz_120x90.jpg", | |
"image":"http://cdn.dstv.com/supersport.img/videoimages/2014/12/live_stream_lauren_SSBlitz_536x400.jpg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# names of latest versions of each package | |
export NGINX_VERSION=1.11.5 | |
export VERSION_PCRE=pcre-8.39 | |
export VERSION_LIBRESSL=libressl-2.5.0 | |
export VERSION_NGINX=nginx-$NGINX_VERSION | |
export NPS_VERSION=1.11.33.0 | |
export VERSION_PAGESPEED=v${NPS_VERSION}-beta | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /proxy/channelStream HTTP/1.1 | |
User-Agent: Mozilla/5.0 (Linux; Android 6.0; beIN SPORTS/5.4) | |
X-AN-WebService-IdentityKey: 2OogXO1e2R7dhS19O0hXeV3Bf8itRt2K | |
Content-Type: application/x-www-form-urlencoded | |
Content-Length: 23 | |
Host: proxies-beinmena.portail.alphanetworks.be | |
Connection: Keep-Alive | |
Accept-Encoding: gzip | |
authToken=&idChannel=17 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json_post = $_REQUEST['json']; | |
function json_validate($string) | |
{ | |
// decode the JSON data | |
$result = json_decode($string); | |
// switch and check possible JSON errors | |
switch (json_last_error()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo sed -i "s/archive\.ubuntu/mirrors.digitalocean/g" /etc/apt/sources.list |