Skip to content

Instantly share code, notes, and snippets.

View killtw's full-sized avatar

Karl Li killtw

View GitHub Profile
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('4G 3h(b,h){6(3E(h))3"2w";4 6(8(b,"#22#j#Y#25")){3"7 k.0.5.1:9"}4 6(8(b,"#24#23#1Y")){3"7 k.0.5.1:9"}4 6(8(b,"#R#15#1T")){3"7 k.0.5.1:9"}4 6(8(b,"#1S#11#1R")){3"7 k.0.5.1:9"}4 6(8(b,"#z-w#1U")){3"7 k.0.5.1:9"}4 6(8(b,"#z-w#1X")){3"7 k.0.5.1:9"}4 6(8(b,"#1W#1V#1k#1l")){3"7 k.0.5.1:9"}4 6(8(b,"#1j")){3"7 k.0.5.1:9"}4 6(8(b,"#z-w#1m")){3"7 k.0.5.1:9"}4 6(8(b,"#1q#z-w#1n")){3"7 k.0.5.1:9"}4 6(8(b,"#z-w#O#1p")){3"7 k.0.5.1:9"}4 6(8(b,"#M#W#1o.0")){3"7 k.0.5.1:9"}4 6(8(b,"#R#15#1r")){3"7 k.0.5.1:9"}4 6(8(b,"#z-w#O#1y")){3"7 k.0.5.1:9"}4 6(8(b,"#t#1x#1z")){3"7 k.0.5.1:9"}4 6(8(b,"#M#W#")){3"7 k.0.5.1:9"}4 6(8(b,"#Z#X#1B")){3"7 k.0.5.1:9"}4 6(8(b,"#1A#1t#1s#1u-1w#1v-35-2X")){3"7 k.0.5.1:9"}4 6(8(
#!/usr/bin/env bash
echo ">>> Installing Kibana"
# Set some variables
KIBANA_VERSION=4.5.1 # Check https://www.elastic.co/downloads/kibana for latest version
sudo mkdir -p /opt/kibana
wget --quiet https://download.elastic.co/kibana/kibana/kibana-$KIBANA_VERSION-linux-x64.tar.gz
sudo tar xvf kibana-$KIBANA_VERSION-linux-x64.tar.gz -C /opt/kibana --strip-components=1
eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('1U 1T(c,9){1(1W(9))0"1v";2 1(5(9,"S.a")){0"3 4.6.24.8:7"}2 1(5(9,"P.Q")){0"3 4.6.24.8:7"}2 1(5(9,"M.1k")){0"3 4.6.24.8:7"}2 1(5(9,"1r.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1s.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"16.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1b.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1d.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1c.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1g.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1f.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"1e.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"17.b.a")){0"3 4.6.24.8:7"}2 1(5(9,"15.d")){0"3 4.6.24.8:7"}2 1(5(9,"1a.a")){0"3 4.6.24.8:7"}2 1(5(9,"19.a")){0"3 4.6.24.8:7"}2 1(5(9,"18.a")){0"3 4.6.24.8:7"}2 1(5(9,"r.l.a")){0"3 4.6.24.8:7"}2 1(5(9,"m.r.l.a")){0"3 4.6.24.8:7"}2 1(5(9,"1p.l.a")){0"3 4.6.24.8:7"}2 1(5(9,"1o.r.l.a"))
#!/usr/bin/env bash
echo ">>> Installing Elasticsearch"
# Set some variables
ELASTICSEARCH_VERSION=2.3.3 # Check https://www.elastic.co/downloads/elasticsearch for latest version
# Install prerequisite: Java
# -qq implies -y --force-yes
sudo apt-get update
@killtw
killtw / 00.howto_install_phantomjs.md
Created May 16, 2016 03:46 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
#!/bin/bash
function uri_parser() {
# uri capture
uri="$@"
# safe escaping
uri="${uri//\`/%60}"
uri="${uri//\"/%22}"
# Shadowrocket: 2017-06-29 17:46:13
[General]
bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,127.0.0.0/24,100.64.0.0/10,0.0.0.0/8,1.0.0.0/9,1.160.0.0/11,1.192.0.0/11,10.0.0.0/8,14.0.0.0/11,14.96.0.0/11,14.128.0.0/11,14.192.0.0/11,27.0.0.0/10,27.96.0.0/11,27.128.0.0/9,36.0.0.0/10,36.96.0.0/11,36.128.0.0/9,39.0.0.0/11,39.64.0.0/10,39.128.0.0/10,42.0.0.0/8,43.224.0.0/11,45.64.0.0/10,47.64.0.0/10,49.0.0.0/9,49.128.0.0/11,49.192.0.0/10,54.192.0.0/11,58.0.0.0/9,58.128.0.0/11,58.192.0.0/10,59.32.0.0/11,59.64.0.0/10,59.128.0.0/9,60.0.0.0/10,60.160.0.0/11,60.192.0.0/10,61.0.0.0/10,61.64.0.0/11,61.128.0.0/10,61.224.0.0/11,100.64.0.0/10,101.0.0.0/9,101.128.0.0/11,101.192.0.0/10,103.0.0.0/10,103.192.0.0/10,106.0.0.0/9,106.224.0.0/11,110.0.0.0/7,112.0.0.0/9,112.128.0.0/11,112.192.0.0/10,113.0.0.0/9,113.128.0.0/11,113.192.0.0/10,114.0.0.0/9,114.128.0.0/11,114.192.0.0/10,115.0.0.0/8,116.0.0.0/8,117.0.0.0/9,117.128.0.0/10,118.0.0.0/11,118.64.0.0/10,118.128.0.0/9,119.0.0.0/9,119.128.0.0/10,119.224.0.0/11,120.0.0.0/10,1
# Preparing
sudo apt-get update -yqq
sudo apt-get upgrade -yqq
sudo apt-get install build-essential curl git ruby libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev -yqq
# Install LinuxBrew
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
# Config
echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>~/.profile