This file contains 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 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 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 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 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 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 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 |
This file contains 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
# nginx | |
description "nginx http daemon" | |
author "George Shammas <georgyo@gmail.com>" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/usr/sbin/nginx | |
env PID=/var/run/nginx.pid |
This file contains 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 | |
# tweet | |
# | |
# This script sends tweets | |
# Use: | |
# tweet "String to be tweeted" | |
# Special characters may not be used if your string is not delimited by quotes | |
# | |
# Author: San Bergmans |
This file contains 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
grep -lr --include=*.php "http://example.com" /var/www/example.com/htdocs | xargs sed -i -e 's/http:\/\/example.com/https:\/\/www.example.com/g' |