Skip to content

Instantly share code, notes, and snippets.

View lgh06's full-sized avatar

Daniel Liu lgh06

View GitHub Profile
#EXTM3U
#EXTINF:-1,BBC - Radio 1
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio1_mf_p
#EXTINF:-1,BBC - Radio 2
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio2_mf_p
#EXTINF:-1,BBC - Radio 3
http://open.live.bbc.co.uk/mediaselector/5/select/version/2.0/mediaset/http-icy-aac-lc-a/format/pls/vpid/bbc_radio_three.pls
#EXTINF:-1,BBC - Radio 4
http://bbcmedia.ic.llnwd.net/stream/bbcmedia_radio4fm_mf_p
#EXTINF:-1,BBC - Radio 5 live
@lgh06
lgh06 / refresh.user.js
Created June 7, 2017 07:06
auto refresh with Tampermonkey
// ==UserScript==
// @name css-refresh
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @require http://cdn.bootcss.com/crypto-js/3.1.2/rollups/sha1.js
// @match http://m.kankan.com/v/*
// @match http://127.0.0.1:8083/*
// @match http://192.168.28.52:8083/*
<?php
$signature = $_GET['signature'];
$timestamp = $_GET['timestamp'];
$nonce = $_GET['nonce'];
$echostr = $_GET['echostr'];
$selfToken = 'If985hike';
// 自行计算的signature
var file_list = {
"202868": {
"1": "ed2k:\/\/|file|Silicon.Valley.S01E00.Invitation.to.the.Set.1080p.WEB-DL.AAC2.0.H.264-Coo7.mkv|58926993|E31D98B370DD40B5C000929FACF11102|h=4M2AGBOPJO2PNPL4CP7YWS7C2NDBBQEX|\/"
},
"202870": {
"1": "ed2k:\/\/|file|Silicon.Valley.S01E00.Trailer.1080p.WEB-DL.AAC2.0.H.264-Coo7.mkv|59665104|1EBA0B160484CB44D5757B5B3B9D8B79|h=ZSHIM7JK6JSA75QNMFSICIQSV5OWLCZK|\/"
},
"202869": {
"1": "ed2k:\/\/|file|Silicon.Valley.S01E00.Making.Silicon.Valley.1080p.WEB-DL.AAC2.0.H.264-Coo7.mkv|459556506|B37D4A1DD187AD3ED9E2E5BBA2BB84A9|h=SJT6PL53WH56QMKPSDEHDSGCTYCYCD7P|\/"
},
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<title></title>
</head>
<body>
<div>
<audio controls autoplay></audio>
<input onclick='startRecording()' type='button' value='录音' />
@lgh06
lgh06 / phantom.js
Last active March 28, 2017 11:21
using phantom package.
var phantom = require('phantom');
var phInstance = null;
phantom.create(['--ignore-ssl-errors=yes', '--load-images=no']).then(instance => {
phInstance = instance;
return instance.createPage();
}).then(page => {
// use page
page.on('onResourceRequested', function (requestData){
<?php
//phpinfo();
// render basic ttkk-share page's DOM.
$vid = $_GET["vid"];
//multi curl resource
$re = array(); // 暂存curl函数返回的资源
$html = array(); //数组,暂存远程接口返回的数据
@lgh06
lgh06 / nginx-php.conf
Last active June 17, 2018 15:41
nginx location rewrite proxy_pass
#39测试机
server {
listen 80;
server_name m.kankan.com;
root /data/vhosts/kankan.com/m/public_html;
location / {
ssi on;
ssi_silent_errors on;
ssi_types text/shtml;
index index.php index.html index.htm;