1: curl -v -X POST -d 'email=sp3@sspanel.dev&passwd=12345678' http://localhost:8000/api/token
{
"ret": 1,
"msg": "ok",
"data": {
"token": "jG63BhwPKBhBvcB2etJBcfcGQN5hYqQA2QNudTXPHtzs6CNT2dftf9XNWv8ekZ6L",
"user_id": 1
}
}
import JavaScriptCore | |
extension JSContext { | |
subscript(key: String) -> Any { | |
get { | |
return self.objectForKeyedSubscript(key) | |
} | |
set{ | |
self.setObject(newValue, forKeyedSubscript: key as NSCopying & NSObjectProtocol) | |
} |
# 除了注释建议浏览官方手册(https://manual.nssurge.com/)、帮助中心(https://nssurge.zendesk.com/)以及技术社区(https://community.nssurge.com) | |
[General] | |
bypass-system = true | |
loglevel = notify | |
replica = false | |
# TLS 引擎 | |
tls-provider = default | |
# IPv6 支持(关闭) | |
ipv6 = false |
#include <event2/bufferevent.h> | |
#include <event2/buffer.h> | |
#include <event2/event.h> | |
#include <event2/dns.h> | |
#include <arpa/inet.h> | |
#include <iostream> | |
using namespace std; |
func isConnectedToVpn() -> Bool { | |
let host = "www.example.com" | |
guard let reachability = SCNetworkReachabilityCreateWithName(nil, host) else { | |
return false | |
} | |
var flags = SCNetworkReachabilityFlags() | |
if SCNetworkReachabilityGetFlags(reachability, &flags) == false { | |
return false | |
} | |
let isOnline = flags.contains(.reachable) && !flags.contains(.connectionRequired) |
application/pkcs8 .p8 .key | |
application/pkcs10 .p10 .csr | |
application/pkix-cert .cer | |
application/pkix-crl .crl | |
application/pkcs7-mime .p7c | |
application/x-x509-ca-cert .crt .der | |
application/x-x509-user-cert .crt | |
application/x-pkcs7-crl .crl |
.cproject | |
.project | |
build |
let defaultFontSizeTable = [ | |
UIFontTextStyleHeadline: [ | |
UIContentSizeCategoryAccessibilityExtraExtraExtraLarge: 26, | |
UIContentSizeCategoryAccessibilityExtraExtraLarge: 25, | |
UIContentSizeCategoryAccessibilityExtraLarge: 24, | |
UIContentSizeCategoryAccessibilityLarge: 24, | |
UIContentSizeCategoryAccessibilityMedium: 23, | |
UIContentSizeCategoryExtraExtraExtraLarge: 23, | |
UIContentSizeCategoryExtraExtraLarge: 22, | |
UIContentSizeCategoryExtraLarge: 21, |
#!/bin/bash | |
# This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
# Credits: | |
# https://github.com/st3fan/ios-openssl | |
# https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
# https://gist.github.com/foozmeat/5154962 | |
# Peter Steinberger, PSPDFKit GmbH, @steipete. | |
# Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
1: curl -v -X POST -d 'email=sp3@sspanel.dev&passwd=12345678' http://localhost:8000/api/token
{
"ret": 1,
"msg": "ok",
"data": {
"token": "jG63BhwPKBhBvcB2etJBcfcGQN5hYqQA2QNudTXPHtzs6CNT2dftf9XNWv8ekZ6L",
"user_id": 1
}
}
#ifndef __FINK_ENDIANDEV_PKG_ENDIAN_H__ | |
#define __FINK_ENDIANDEV_PKG_ENDIAN_H__ 1 | |
/** compatibility header for endian.h | |
* This is a simple compatibility shim to convert | |
* BSD/Linux endian macros to the Mac OS X equivalents. | |
* It is public domain. | |
* */ | |
#ifndef __APPLE__ |