This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
require 'rubygems' | |
require 'hpricot' | |
require 'fileutils' | |
require 'time' | |
require 'ya2yaml' | |
require 'nokogiri' | |
require 'cgi' | |
require 'chinese_pinyin' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum remove -y pptpd ppp | |
/etc/init.d/iptables stop | |
iptables --flush POSTROUTING --table nat | |
iptables --flush FORWARD | |
rm -rf /etc/pptpd.conf | |
rm -rf /etc/ppp | |
wget http://www.diahosting.com/dload/dkms-2.0.17.5-1.noarch.rpm | |
#wget http://www.diahosting.com/dload/kernel_ppp_mppe-1.0.2-3dkms.noarch.rpm | |
wget http://www.diahosting.com/dload/pptpd-1.3.4-1.rhel5.1.i386.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function B($a){ | |
$b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; | |
if(empty($a)){ | |
return $a; | |
} | |
$a = str_split(strval($a)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rime dictionary - kaomoji | |
# encoding: utf-8 | |
# ref: http://www.facemark.jp/ | |
--- | |
name: kaomoji | |
version: "0.3" | |
sort: origin | |
... | |
( ̄ε(# ̄) va 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<opml version="1.0"> | |
<head> | |
<title>Google 阅读器中 Dray 的订阅</title> | |
</head> | |
<body> | |
<outline title="Linux" text="Linux"> | |
<outline text="Linux公社 - Linux系统门户网站" | |
title="Linux公社 - Linux系统门户网站" type="rss" | |
xmlUrl="http://www.linuxidc.com/rssFeed.aspx" htmlUrl="http://www.linuxidc.com/"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d:/golang/go-win-386/bin/go.exe build [D:/golang/code/cow] | |
成功: 进程退出代码 0. | |
D:/golang/code/cow/cow.exe [D:/golang/code/cow] | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal 0xc0000005 code=0x1 addr=0x0 pc=0x4d5118] | |
goroutine 1 [running]: | |
runtime.panic(0x5860a0, 0x7b984f) | |
C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist284472239/go/src/pkg/runtime/panic.c:266 +0xa6 | |
log.(*Logger).Output(0x0, 0x2, 0x125029c0, 0x25, 0x0, ...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo 设置APP的值为您的应用文件夹名称 | |
set APP=BeeGoTo | |
set GOPATH=%~dp0.. | |
set BEE=%GOPATH%\bin\bee | |
%BEE% new %APP% | |
cd %APP% | |
echo %BEE% run %APP%.exe > run.bat | |
echo pause >> run.bat | |
start run.bat | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ----------------本探针基于YaHei.net探针------------------- */ | |
error_reporting(0); //抑制所有错误信息 | |
@header("content-Type: text/html; charset=utf-8"); //语言强制 | |
ob_start(); | |
$title = "雅黑PHP探针"; | |
$version = "v0.4.2"; //版本号 | |
define('HTTP_HOST', preg_replace('~^www\.~i', '', $_SERVER['HTTP_HOST'])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
# SET FTP server you want back up to | |
FTP_HOST="" | |
FTP_USER="" | |
FTP_PASS="" | |
# Databases information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ---------------------------------------------------- */ | |
/* 程序名称: PHP探针-Yahei | |
/* 程序功能: 探测系统的Web服务器运行环境 | |
/* 程序开发: Yahei.Net | |
/* 联系方式: info@Yahei.net | |
/* Date: 1970-01-01 / 2012-07-08 | |
/* ---------------------------------------------------- */ | |
/* 使用条款: | |
/* 1.该软件免费使用. |
OlderNewer