现在通用的日历格式是 iCalendar,通常扩展名是 .ics
BEGIN:VCALENDAR #日历开始
:: 启动后需要保留窗口, 关闭窗口则结束进程 | |
aria2c --conf-path=aria2.conf -D |
//获取本地IP地址 | |
var os = require('os'); | |
var IPv4,hostName; | |
hostName=os.hostname(); | |
for(var i=0;i<os.networkInterfaces().eth0.length;i++){ | |
if(os.networkInterfaces().eth0[i].family=='IPv4'){ | |
IPv4=os.networkInterfaces().eth0[i].address; | |
} | |
} | |
console.log('----------local IP: '+IPv4); |
// 通过 HTTP_RANGE | |
// VERSION 1 断点下载 | |
range = 0; | |
dheader('Accept-Ranges: bytes'); | |
if(!empty(_SERVER['HTTP_RANGE'])) { | |
list(range) = explode('-',(str_replace('bytes=', '', _SERVER['HTTP_RANGE']))); | |
rangesize = (filesize - range) > 0 ? (filesize - range) : 0; | |
dheader('Content-Length: '.rangesize); |
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func Log(handler http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
SSL 设计目标:
而翻墙的目标:
data:text/html, | |
<style type="text/css"> | |
#e { | |
position:absolute; | |
top:0; | |
right:0; | |
bottom:0; | |
left:0; | |
font-size:16px; | |
} |
<?php | |
# Nginx don't have PATH_INFO | |
if (!isset($_SERVER['PATH_INFO'])) { | |
$_SERVER['PATH_INFO'] = substr($_SERVER["ORIG_SCRIPT_FILENAME"], strlen($_SERVER["SCRIPT_FILENAME"])); | |
} | |
$request = substr($_SERVER['PATH_INFO'], 1); | |
$file = $request; | |
$fp = @fopen($file, 'rb'); |
* | |
!.gitignore | |
!alternative.yaml | |
!*.custom.yaml | |
!kaomoji.*.yaml |
// Copyright 2012 Jiang Bian (borderj@gmail.com). All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// Email: borderj@gmail.com | |
// Blog: http://wifihack.net/ | |
// Sina WeiBo oauth2 Login, Base on goauth2 lib | |
package main |