Skip to content

Instantly share code, notes, and snippets.

View tokune's full-sized avatar

tokune tokune

View GitHub Profile
{"imgs": [
"https://wx2.sinaimg.cn/mw2000/008lqrwFgy1h383r5atckj31u71u71kx.jpg",
"https://wx2.sinaimg.cn/mw2000/002c6guQly1h37jldytpij613z0u011p02.jpg",
"https://wx2.sinaimg.cn/mw2000/005YSmLVgy1h36spq2tzgj30u01uoqbf.jpg",
"https://wx4.sinaimg.cn/mw2000/695ec79cgy1h35tk24o4aj20wi0kzdln.jpg"
]}
@tokune
tokune / 1.m3u
Last active March 8, 2022 05:41
1.m3u
#EXTINF:-1,CCTV 8K
http://down.btvcloud.com/8k2021zhibo/zhibo8K2021.m3u8
#EXTINF:-1,凤凰中文HD
http://iptv.tvfix.org/hls/fhzw.m3u8
#EXTINF:-1,凤凰香港
http://iptv.tvfix.org/hls/fhzx.m3u8
#!/bin/sh
cd /mnt/mmcblk0p2
rm -rf artifact R2S*.zip FriendlyWrt*img*
wget https://github.com/klever1988/nanopi-openwrt/releases/download/R2S-Lean-$(date +%Y-%m-%d)/R2S-Lean-$(date +%Y-%m-%d)-ROM.zip
if [ -f /mnt/mmcblk0p2/R2S*.zip ]; then
echo -e '\e[92m今天固件已下载,准备解压\e[0m'
else
echo -e '\e[91m今天的固件还没更新,尝试下载昨天的固件\e[0m'
wget https://github.com/klever1988/nanopi-openwrt/releases/download/R2S-Lean-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)/R2S-Lean-$(date -d "@$(( $(busybox date +%s) - 86400))" +%Y-%m-%d)-ROM.zip
---
name: flac
version: 2
handle:
- rewrite: if(!is_file()) goto "index.php"
- compress: if(out_header["Content-Length"] >= 10240) compress
- compress: if(out_header["Content-Type"] ~ "text") compress
- compress: if(out_header["Content-Type"] ~ "application/javascript") compress
...
@tokune
tokune / up.sh
Last active August 29, 2015 14:03
#!/bin/sh
file_name=$1
curl -F i=@$file_name http://flac.sinaapp.com
@tokune
tokune / gist:3713532
Created September 13, 2012 10:47
email
#!/usr/bin/env python
#-*-coding:utf-8-*-
import os
import codecs
import itertools
import time
def main(template = 'template.html'):
i = 0
for root, dirs, files in os.walk('college-/'):
@tokune
tokune / gist:3683337
Created September 9, 2012 08:33
vmware linux static url
["http://downloads.sourceforge.net/thoughtpolicevm/centos-4.6-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-4.7-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-4.8-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-4.8-x86_64-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.0-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.1-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.2-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.3-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.3-x86_64-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.4-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.4-x86_64-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.5-i386-server.zip", "http://downloads.sourceforge.net/thoughtpolicevm/centos-5.5-x86_64-s
@tokune
tokune / gist:2817974
Created May 28, 2012 08:18
跨域关闭检测
<SCRIPT LANGUAGE="JavaScript">
window.onload=function(){
document.getElementById("open").onclick=function(){
var url="http://pinban.com/oauth/weibo/binding/";
var win=window.open(url);
var timer = setInterval((function(win){
return function(){
if (win.closed) {
alert("fuck off!!");
clearInterval(timer);