$ brew install pdnsd
$ sudo chown -R nobody /usr/local/var/cache/pdnsd
$ curl -L http://goo.gl/kMlyQ -o pdnsd.conf
$ mv pdnsd.conf /usr/local/etc
$ sudo chown root /usr/local/etc/pdnsd.conf
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
#!/usr/bin/env python | |
import sys | |
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
HandlerClass = SimpleHTTPRequestHandler | |
ServerClass = BaseHTTPServer.HTTPServer | |
Protocol = "HTTP/1.0" | |
if sys.argv[1:]: | |
port = int(sys.argv[1]) |
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
#weasel.custom.yaml | |
patch: | |
"preset_color_schemes/Solarized_Lite": | |
author: "五磅兔 zcunlin@foxmail.com, based on Aben's 曬經石\solarized_Rock, original artwork by ethanschoonover‘s solarized" | |
back_color: 0xe3f6fd #底色 | |
border_color: 0xd5e8ee #边框色 | |
candidate_text_color: 0x837b65 #候选项颜色 | |
comment_text_color: 0xd28b26 #编码提示颜色 | |
hilited_back_color: 0xd5e8ee #编码底色 | |
hilited_candidate_back_color: 0x98a12a #首选项高亮背景色 |
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/sh /etc/rc.common | |
START=95 | |
SERVICE_USE_PID=1 | |
SERVICE_WRITE_PID=1 | |
SERVICE_DAEMONIZE=1 | |
CONFIG=/etc/shadowsocks.json |
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/sh /etc/rc.common | |
START=65 | |
NAME=pdnsd | |
DESC="proxy DNS server" | |
PDNSD_LOCAL_PORT=7453 | |
DAEMON=/usr/sbin/pdnsd | |
PID_FILE=/var/run/$NAME.pid |
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
/** | |
* Duoshuo Comments Style for Amaze UI | |
* by Minwe | |
*/ | |
#ds-thread #ds-reset .ds-post-button { | |
font-family: Microsoft JHenghei, Microsoft YaHei, "Helvetica Neue",Helvetica,Arial,sans-serif; } | |
#ds-thread #ds-reset .ds-textarea-wrapper textarea, #ds-thread #ds-reset .ds-textarea-wrapper .ds-hidden-text { | |
display: block; | |
font-family: Microsoft JHenghei, Microsoft YaHei , "Helvetica Neue",Helvetica,Arial,sans-serif;} | |
#ds-thread #ds-reset .ds-meta { |
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
"Note: This option must set it in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! | |
" Disable AutoComplPop. | |
let g:acp_enableAtStartup = 0 | |
" Use neocomplete. | |
let g:neocomplete#enable_at_startup = 1 | |
" Use smartcase. | |
let g:neocomplete#enable_smart_case = 1 | |
" Set minimum syntax keyword length. | |
let g:neocomplete#sources#syntax#min_keyword_length = 3 | |
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' |
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
{ | |
"protocol": "vmess", | |
"port": "10000-20000", // 端口范围 | |
"tag": "detour", // 此传入协议的标签,在第二部分中会用到 | |
"settings": { | |
"clients": [ // clients 部分和原有的配置的一样 | |
{ | |
"id": "33d41456-039b-4496-beae-37b26eba22a0", | |
"alterId": 100, | |
"level": 1 |
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 | |
currentInterface=$(networksetup -listnetworkserviceorder | \ | |
awk -F'\\) ' '/\(1\)/ {print $2}') | |
state=$(networksetup -getwebproxy wi-fi | grep "No") | |
HTTP_PORT=6152 | |
SOCK_PORT=6153 | |
OlderNewer