
1.WXS部分
WXS(WeiXin Script)是小程序的一套脚本语言,结合 WXML,可以构建出页面的结构。
no Pain no Gain no Gavin


Mixed Content: The page at 'https://www.deaboway.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.deaboway.com/wp-content/cache/autoptimize/css/autoptimize_fabbbb6a8a981a178f0f8eeeb8cf4232.css'. This request has been blocked; the content must be served over HTTPS. VM235:2 Mixed Content: The page at 'https://www.deaboway.com/' was loaded over HTTPS, but requested an insecure script 'http://www.deaboway.com/wp-includes/js/wp-emoji-release.min.js?ver=4.9.5'. This request has been blocked; the content must be served over HTTPS. VM235:2 Mixed Content: The page at 'https://www.deaboway.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.deaboway.com/wp-includes/css/dashicons.min.css?ver=4.9.5'. This request has been blocked; the content must be served over HTTPS. VM235:2 Mixed Content: The page at 'https://www.deaboway.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.deaboway.com/wp-includes/css/admin-bar.min.css?ver=4.9.5'. This request has been blocked; the content must be served over HTTPS. VM234:1 Mixed Content: The page at 'https://www.deaboway.com/' was loaded over HTTPS, but requested an insecure script 'http://www.deaboway.com/wp-includes/js/jquery/jquery.js?ver=1.12.4'. This request has been blocked; the content must be served over HTTPS
//WordPress SSL
function deaboway_ssl(){
if( is_ssl() ){
function deaboway_ssl_main ($content){
$siteurl = get_option('siteurl');
$upload_dir = wp_upload_dir();
$content = str_replace( 'http:'.strstr($siteurl, '//'), strstr($siteurl, '//'), $content);
$content = str_replace( 'http:'.strstr($upload_dir['baseurl'], '//'), strstr($upload_dir['baseurl'], '//'), $content);
return $content;
}
ob_start("deaboway_ssl_main");
}
}
add_filter('get_header', 'deaboway_ssl');Crypto change setting
{
"Name": "SSL",
"Old value": "flexible",
"Type": "crypto",
"Value": "full",
"Zone name": "deaboway.com"
}先附上几个GIT仓库开源软件的比较:

同时,受够了GitBlit三天两头因为内存泄露导致Server内存和swap被吃空,CPU忙着搬砖导致占用率100%,因此,迁移到Gogs。
整个过程很顺利也很方便。参考:https://gogs.io/
其中,特别需要注意的一点是Gogs需要MySQL5.7以上版本。
gogs.io中把库名创建好之后,直接从gitblit的data中把git库cp 覆盖gogs的库即可。
最后,做一些打扫工作:
完工!一个顺畅的server又飞起~

1. node.js官网下载node安装
https://nodejs.org/en/download/
2. 确认安装成功及版本
node -v
npm -v
3. 安装truffle
npm install -g truffle
4. 安装testrpc
npm install -g ethereumjs-testrpc
继续阅读“搭建Truffle开发和测试环境,并进行开发测试”

1. 启动节点, 加上console 表示启动后,启用命令行:
geth –datadir ./data/00 –networkid 168 console
在启动客户端时添加参数–dev,开发模式
2. 查看账户
eth.accounts
继续阅读“创建以太坊私链、建立节点集群,并发生交易”