Skip to content

Instantly share code, notes, and snippets.

View fauzandotme's full-sized avatar

Muhammad Fauzan fauzandotme

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:DASH:schema:MPD:2011" xmlns:yt="http://youtube.com/yt/2012/10/10" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd" minBufferTime="PT1.500S" profiles="urn:mpeg:dash:profile:isoff-main:2011" type="static" mediaPresentationDuration="PT710.855S"><Period><AdaptationSet id="0" mimeType="audio/mp4" subsegmentAlignment="true"><Role schemeIdUri="urn:mpeg:DASH:role:2011" value="main"/><SegmentList startNumber="0" timescale="1000"><SegmentTimeline><S d="5016"/><S d="4992"/><S d="4992"/><S d="5016"/><S d="4992"/><S d="4992"/><S d="5016"/><S d="4992"/><S d="4992"/><S d="5016"/><S d="4992"/><S d="4992"/><S d="5016"/><S d="4992"/><S d="4992"/><S d="5016"/><S d="4992"/><S d="4993"/><S d="5015"/><S d="4992"/><S d="4993"/><S d="5015"/><S d="4992"/><S d="4993"/><S d="5015"/><S d="4993"/><S d="4992"/><S d="5015"/><S d="4993"/><S d="4992"/><S d="5015"/><S d="4993"/><S d="4992"/><S d="5015"/><S d="4993"/
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:6
#EXTINF:5.333333,
https://r2---sn-npoe7nek.googlevideo.com/videoplayback/id/22f13285e7e96f43/itag/95/source/picasa/govp/slices%3D0-51605/goap/slices%3D0-162949/begin/0/len/5333/gosq/0/file/seg.ts?cpn=BwvuqIGvHMb2Jmk9&expire=1581914288&ei=kPxJXon5Hc2p1Aa2oaMw&ip=66.96.232.226&requiressl=yes&ratebypass=yes&otfp=1&pfa=1&sgoap=clen=9375962;dur=579.291;gir=yes;itag=140;lmt=1581875023491064&sgovp=clen=6625270;dur=579.233;gir=yes;itag=136;lmt=1581875033499871&hls_chunk_host=r2---sn-npoe7nek.googlevideo.com&susc=ph&mm=30&mn=sn-npoe7nek&ms=nxu&mv=m&mvi=1&pl=24&sc=yes&playlist_type=LIVE&dl=1&mt=1581906994&sparams=expire,ei,ip,id,itag,source,requiressl,ratebypass,otfp,pfa,sgoap,sgovp,susc,playlist_type&sig=ALgxI2wwRQIgLevR_GvYBPtuy_sddrDYmzhgoVMCYhi9vBVkBV9gWBkCIQDKxcn9GkHcqVnXgsbrpt0gkumxliY7uV8e5l5Y4KI5Pg==&lsparams=hls_chunk_host,mm,mn,ms,mv,mvi,pl,sc&lsig=AHylml4wRgIhAPScpRJOaraA4yB1uekePtV-OQOCw_NzhiwSzdtVniwzAiEAjfbZDy0LModFNKBMpaRdmzFKnCfw1
#EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-STREAM-INF:BANDWIDTH=1310398,CODECS="mp4a.40.2,avc1.4d4014",RESOLUTION=640x400,FRAME-RATE=30,CLOSED-CAPTIONS=NONE
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1581914288/ei/kPxJXon5Hc2p1Aa2oaMw/ip/66.96.232.226/id/22f13285e7e96f43/itag/93/source/picasa/requiressl/yes/ratebypass/yes/otfp/1/pfa/1/sgoap/clen%3D9375962%3Bdur%3D579.291%3Bgir%3Dyes%3Bitag%3D140%3Blmt%3D1581875023491064/sgovp/cnr%3D11%3Bitag%3D134%3Blmt%3D1581875033499894%3Botf%3D1%3Bsource%3Dpicasa_otf/hls_chunk_host/r2---sn-npoe7nek.googlevideo.com/susc/ph/mm/30/mn/sn-npoe7nek/ms/nxu/mv/m/mvi/1/pl/24/sc/yes/playlist_type/LIVE/dover/6/dl/1/mt/1581906994/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,otfp,pfa,sgoap,sgovp,susc,playlist_type/sig/ALgxI2wwRgIhAL2bgZripF04Pnq3q_VQonMsaahHJROcU6PCSjNuyHkfAiEAhijnvmxj4kLZhRmXh1AeFrQW_jRPw0J_OzX7b2crbJI%3D/lsparams/hls_chunk_host,mm,mn,ms,mv,mvi,pl,sc/lsig/AHylml4wRgIhAJ8VPxT8sU6ARdESKlg1vI_jkuqmxorl-PRDeEOSE6tkAiEA25ucfH5VU7CBWnSTZd
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Chat Box</title>
<style>
body{
margin:0;
padding:0;
}
{"owner":["zan","nad","mynameiszan", "fauzan"],"moderator":[""],"special":[""]}
const tool = require('curl-ganteng');
module.exports = {scrap, search};
function search(keyword) {
let link = `https://myanimelist.net/search/prefix.json?type=anime&keyword=${encodeURI(keyword)}&v=1`;
return tool.curl(link).then((done) => {
let response = true;
try {
response = JSON.parse(done.body);
/*
how to setup:
1. clone derplib: https://github.com/MakuraYami/derplib
2. install dependencies: npm i --save curl-ganteng jsonfile youtube-search
3. create file test.js and paste all text in this gist
4. create file in modules/MAL.js, paste this content from here: https://gist.github.com/fauzandotme/e1709bb962cb054be6708327af4620b3
4. setup chatango account below
5. run: node test.js
Note: run this on nodejs version ^6x
sekkki
sharlindi
meongxxx
rinhyuura
piontanos
ameliaAnandaputri
andizkun
zombieinide
sllvla
neas17
upstream topddl_upstream2 {
server 127.0.0.1:1338;
keepalive 64;
}
server {
listen 80;
listen 443 ssl http2;
server_name topddl.net www.topddl.net vid.ndha.xyz;
ssl_certificate /var/www/topddl.net/cert/ndha.xyz.alphassl.crt;
@fauzandotme
fauzandotme / Is Mobile
Created February 16, 2017 23:47
Detect mobile devices
function is_mobile() {
$useragent = $_SERVER['HTTP_USER_AGENT'];
if(preg_match('/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inn