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
//: Playground - noun: a place where people can play | |
import UIKit | |
let sink = SinkOf<String> { input in | |
println(input) | |
return | |
} | |
sink.put("Hello") |
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
sudo find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode-beta.app/Contents/Info DVTPlugInCompatibilityUUID` |
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
[General] | |
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local | |
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12 | |
dns-server = 119.29.29.29, 223.5.5.5, 114.114.114.114 | |
loglevel = notify | |
[Proxy] | |
Proxy = custom | |
[Rule] |
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
{%- macro form_field_label(field) -%} | |
<label for="{{ field.id }}">{{ field.label.text }} | |
{%- if field.flags.required -%} | |
<abbr title="Diese Feld muss angegeben werden">*</abbr> | |
{%- endif %}</label> | |
{% endmacro %} | |
{%- macro form_field_description(field) -%} | |
{% if field.description %} | |
<span class="descr">{{ field.description }}</span> |
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
ruleSets: | |
# | |
# Potatso Config File [UPlus] | |
# Last Modified: 2016/07/04 | |
# | |
- name: UPlus-nogeoip | |
rules: | |
# Default | |
- DOMAIN-SUFFIX,apple.com,DIRECT | |
- DOMAIN-SUFFIX,icloud.com,DIRECT |
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
ruleSets: | |
- name: Tiny Config | |
rules: | |
- DOMAIN-SUFFIX,xda-developers.com,Proxy | |
- DOMAIN-SUFFIX,xeeno.com,Proxy | |
- DOMAIN-SUFFIX,xiti.com,Proxy | |
- DOMAIN-SUFFIX,yahoo.com,Proxy | |
- DOMAIN-SUFFIX,yimg.com,Proxy | |
- DOMAIN-SUFFIX,ying.com,Proxy | |
- DOMAIN-SUFFIX,youtu.be,Proxy |
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
[PROFILE.default] | |
name = "Sample Profile1" | |
dns = [ | |
"8.8.8.8", | |
"223.5.5.5" | |
] | |
defaultRoute = "PROXY" | |
defaultProxy = "ssr" | |
rulesets = [ | |
"direct", |
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
[RULESET.proxy] | |
name = "代理规则" | |
rules = [ | |
"DOMAIN-SUFFIX, 1e100.net, Proxy", | |
"DOMAIN-SUFFIX, abc.xyz, Proxy", | |
"DOMAIN-SUFFIX, admob.com, Proxy", | |
"DOMAIN-SUFFIX, ampproject.org, Proxy", | |
"DOMAIN-SUFFIX, amazon.com, Proxy", | |
"DOMAIN-SUFFIX, android.com, Proxy", | |
"DOMAIN-SUFFIX, androidify.com, Proxy", |
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
Aug 2 13:21:16 Lei-iPhone7 OnionNetwork[23856] <Notice>: switch vpn: (null) | |
Aug 2 13:21:16 Lei-iPhone7 nesessionmanager(NetworkExtension)[130] <Notice>: NESMVPNSession[Onion Knight:CFF87D48-CABA-4FD9-9EB4-1C603E31E1D5]: Received a start command from OnionNetwork[23856] | |
Aug 2 13:21:16 Lei-iPhone7 nesessionmanager(NetworkExtension)[130] <Notice>: NESMVPNSession[Onion Knight:CFF87D48-CABA-4FD9-9EB4-1C603E31E1D5]: status changed to connecting | |
Aug 2 13:21:16 Lei-iPhone7 sharingd(CoreUtils)[2251] <Notice>: Linger advertise ended | |
Aug 2 13:21:16 Lei-iPhone7 sharingd(CoreUtils)[2251] <Notice>: BLE NearbyInfo advertiser stop | |
Aug 2 13:21:16 Lei-iPhone7 sharingd(CoreUtils)[2251] <Notice>: Invalidating | |
Aug 2 13:21:16 Lei-iPhone7 sharingd(WirelessProximity)[2251] <Notice>: NearBy stop advertising of type: 16 | |
Aug 2 13:21:16 Lei-iPhone7 sharingd(CoreUtils)[2251] <Notice>: Invalidated | |
Aug 2 13:21:16 Lei-iPhone7 wirelessproxd[55] <Notice>: Stop advertising for process sharingd (2251) of type 16 | |
Aug 2 13:21:16 Lei-iPh |
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
#import "VPNManager.h" | |
#import <NetworkExtension/NetworkExtension.h> | |
NSString * const VPNManagerStatusDidChanged = @"VPNManagerStatusDidChanged"; | |
@interface VPNManager () | |
@property (nonatomic) NEVPNStatus status; | |
@end | |
@implementation VPNManager |
OlderNewer