Skip to content

Instantly share code, notes, and snippets.

View rose1988c's full-sized avatar

顾长风 rose1988c

View GitHub Profile
# 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf
# 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备
# Version 2.0
[General]
# 日志等级: warning, notify, info, verbose (默认值: notify)
loglevel = notify
# 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS
# 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理
# 设置中.)
[General]
# warning, notify, info, verbose
external-controller-access = apw@0.0.0.0:6155
interface = 0.0.0.0
port = 8888
socks-port = 8889
ipv6 = 0
bypass-system = 1
dns-server = system, 223.5.5.5, 114.114.114.114, 119.29.29.29
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
@rose1988c
rose1988c / my gitinore
Created August 31, 2016 06:19
develop
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/workspace.xml
.idea/tasks.xml
.idea/dictionaries
.idea/vcs.xml
.idea/jsLibraryMappings.xml
global
ulimit-n 51200
defaults
log global
mode tcp
option dontlognull
contimeout 1000
clitimeout 150000
srvtimeout 150000
@rose1988c
rose1988c / surge_main.conf
Last active April 13, 2016 05:58 — forked from jason5ng32/surge.conf
Surge Configs ( Both 2 files are needed )
# 规则配置仅供参考,适用于 1.2.0 (476) 及其后续版本;
# 包含 Proxy Group、URL Rewrite 特性;
# 包含 Reject 规则,用于拦截广告、行为分析、数据统计;
# 屏蔽 Hao123、百度搜索,放行百度地图、百度外卖、百度音乐、百度云盘、百度百科。
# Surge 新手使用指南 http://bit.ly/1q5eTlF
[General]
# warning, notify, info, verbose
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local
bypass-tun = 0.0.0.0/8, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
loglevel = notify
# In Preferences > Key Bindings - Default
# Add a new entry
{"keys": ["ctrl+alt+s"], "command": "signature" },
@rose1988c
rose1988c / README.md
Last active August 29, 2015 14:07 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@rose1988c
rose1988c / Vagrantfile
Created September 22, 2014 01:01
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@rose1988c
rose1988c / openshift-www
Created June 22, 2014 09:27
备份openshifit代码到dropbox
#!/bin/sh
##################
mkdir ~/app-root/repo/tmp
cd ~/app-root/repo/
tar -zcvf tmp/20140622.tar.gz ../repo
./dropbox/dropbox_uploader.sh upload tmp/20140622.tar.gz /backup/20140622.tar.gz
@rose1988c
rose1988c / pagination.php
Created May 13, 2014 14:44
CI Pagination Config
<?php
/*
* Enclosure markup.
* The tags which wrap the ENTIRE pagination.
*/
$config['full_tag_open'] = '<div class="pagination"><ul>';
$config['full_tag_close'] = '</ul></div>';
/*