3-20 856 views
阅读全文 0
转载https://ninghao.net/blog/2834
最近了解下基于 Token 的身份验证,跟大伙分享下。很多大型网站也都在用,比如 Facebook,Twitter,Google+,Github 等等,比起传统的身份验证方法,Token 扩展性更强,也更安全点,非常适合用在 Web 应用或者移动应用上。Toke...
3-20 985 views
转载https://ninghao.net/blog/2834
最近了解下基于 Token 的身份验证,跟大伙分享下。很多大型网站也都在用,比如 Facebook,Twitter,Google+,Github ...
Protobuf V3 语法介绍
Protobuf V3 变更
Any Type
Golang
//import "github.com/golang/protobuf/ptypes"
ptypes.MarshalAny(pb)
3-11 1,197 views
Protobuf V3 语法介绍
Protobuf V3 变更
Any Type
Golang
//import "github.com/golang/protobuf/ptypes"
ptypes.MarshalAny(pb)
在需要跳转的server配置上加一句 return 301 https://$server_name$request_uri;
server {
listen 80;
server_name my.domain.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
server_...
3-04 25,871 views
在需要跳转的server配置上加一句 return 301 https://$server_name$request_uri;
server {
listen 80;
server_name my.domain.com;
...
Filezilla is widely used for ftp servers, it's open source and easy to setup. It also support SSL encrypted FTP connections which is nice for data security. In one of my setups the need for sharing UNC paths came up. Filezilla actually supports i...
2-13 213,738 views
Filezilla is widely used for ftp servers, it's open source and easy to setup. It also support SSL encrypted FTP connections which is nice for data...
作者:叶落孤舟
链接:https://www.zhihu.com/question/20460191/answer/16011213
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
自从google的服务器搬离中国大陆后,大陆地区用户用google服务时会自动跳转到香港的http://google.com.hk,有关键字过滤...
2-08 2,061 views
作者:叶落孤舟
链接:https://www.zhihu.com/question/20460191/answer/16011213
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
自从google的...
function timestamp(){
list($usec, $sec) = explode(" ", microtime());
return (double)(((float)$usec + (float)$sec)*10000);
}
2-07 1,115 views
function timestamp(){
list($usec, $sec) = explode(" ", microtime());
return (double)(((float)$usec + (float)$sec)*10000);
}
php-cgi 启动脚本
@echo off
set p=php-cgi.exe
for /f %%i in ('tasklist') do (
if %%i==%p% echo php-cgi.exe has already been running, don't need to start again. & pause & exit
)
echo RaySync-Proxy-Server is starting.
mshta vbscript:Cre...
2-04 775 views
php-cgi 启动脚本
@echo off
set p=php-cgi.exe
for /f %%i in ('tasklist') do (
if %%i==%p% echo php-cgi.exe has already been running, don't nee...