Skip to content

Instantly share code, notes, and snippets.

🏠
正在搬砖

Kevin kevinzhow

🏠
正在搬砖
Block or report user

Report or block kevinzhow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View dnsmasq.conf.add
server=/.apple.com/114.114.114.114#53
server=/adcdownload.apple.com/114.114.114.114
server=/appldnld.apple.com/114.114.114.114
server=/cdn-cn1.apple-mapkit.com/114.114.114.114
server=/cdn-cn2.apple-mapkit.com/114.114.114.114
server=/cdn-cn3.apple-mapkit.com/114.114.114.114
server=/cdn-cn4.apple-mapkit.com/114.114.114.114
server=/cdn.apple-mapkit.com/114.114.114.114
server=/cdn1.apple-mapkit.com/114.114.114.114
server=/cdn2.apple-mapkit.com/114.114.114.114
@kevinzhow
kevinzhow / NMPD.md
Last active Apr 24, 2017
在 macOS 10.12 配置 Nginx+MySQL+PHP+Discuz
View NMPD.md
View gist:8f63f4feaf08792cb4ec273c13bf0f74
Stack trace[Hide framework code]
org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
….apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:393)
org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:426)
org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:339)
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:418)
org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:406)
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:97)
…erxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2003)
View gist:b20aee92f215444c1695b1b2a2cff8bd
This file has been truncated, but you can view the full file.
server=/.0-6.com/202.106.196.115
server=/.0-gold.net/202.106.196.115
server=/.00.net/202.106.196.115
server=/.0000738.com/202.106.196.115
server=/.0001688.com/202.106.196.115
server=/.000219.com/202.106.196.115
server=/.0007.net/202.106.196.115
server=/.000dn.com/202.106.196.115
server=/.000e.com/202.106.196.115
View libjpeg_iOS_builder.sh
#!/bin/bash
export MACOSX_DEPLOYMENT_TARGET="10.9"
: << '#__REM__'
指定さたライブラリをiOS用にフルオートで作成します。ダウンロード、複数のアーキテクチャのビルドも自動的に行います。デフォルトではi386、x86_64、armv7、armv7s、arm64のアーキテクチャを作成します。
Create a full-auto to iOS for the library specified. I do also builds the architecture download, more than one. Create architecture i386, x86_64, armv7, armv7s, arm64 by default.
#__REM__
View yep_faye.markdown

Faye Server API Reference

说明

此为 Faye Server v1 文档,Faye Server 是使用 Faye 框架的基于 Bayeux 协议的消息系统。

客户端在 Faye Server 可以做的操作有:

View yep.markdown

Yep API Reference

概述

  • 基于 HTTP
  • RESTful
  • 采用标准 HTTP Code 返回错误
  • 返回格式为 JSON
View MainView.ux
<App Theme="Basic">
<JavaScript File="main.js" />
<ScrollView Padding="30" ScrollPositionChanged="{Say}">
<StackPanel ItemSpacing="20">
<Each Items="{people}">
<Rectangle>
<Stroke Width="2" Brush="#000" />
<StackPanel ItemSpacing="5" Margin="10">
<Text Value="{name}" FontSize="20" TextColor="#000" Margin="0"/>
<Text Value="{age}" TextColor="#aaa"/>
View ip-down.sh
#!/bin/bash
export PATH="/bin:/sbin:/usr/sbin:/usr/bin"
OLDGW=`cat /tmp/vpn_oldgw`
route del -net 1.0.1.0 netmask 255.255.255.0
route del -net 1.0.2.0 netmask 255.255.254.0
route del -net 1.0.8.0 netmask 255.255.248.0
route del -net 1.0.32.0 netmask 255.255.224.0
View ip-up.sh
#/bin/bash
export PATH="/bin:/sbin:/usr/sbin:/usr/bin"
OLDGW=192.168.0.1
route add -net 1.0.1.0 netmask 255.255.255.0 gw $OLDGW
route add -net 1.0.2.0 netmask 255.255.254.0 gw $OLDGW
route add -net 1.0.8.0 netmask 255.255.248.0 gw $OLDGW
route add -net 1.0.32.0 netmask 255.255.224.0 gw $OLDGW
route add -net 1.1.0.0 netmask 255.255.255.0 gw $OLDGW
You can’t perform that action at this time.