工作,学习,生活,这里将会有一些记录. 备用域名:http://meisw.wdlinux.cn 注册 | 登陆
浏览模式: 标准 | 列表全部文章

ubuntu下从源码编译比特币(Bitcoin)客户端

./configure

运行完上边的这个命令之后,你就可以知道你的系统中都少什么库,下边就是安装缺少的库的方法
If you encounter configure: error: libdb_cxx headers missing
提示少libdb_cxx头,这个时候运行下边令命安装db的C++开发库
sudo apt-get install libdb5.1++-dev 

 
 
./configure --with-incompatible-bdb

Linux中的pushd和popd

 http://www.jianshu.com/p/53cccae3c443

golang交叉编译工具,gox使用入门

 http://studygolang.com/articles/650

bitcoin-cli

 用 sendfrom 函数,第一个参数指定账号,第二个参数指定发送地址,第三个参数指定发送金额,例如:
bitcoin-cli sendfrom "MyAccount" "1M72Sfpbz1BPpXFHz9m3CdqATR44Jvaydd" 0.01

node安装

 curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash

 
nvm install 6

libiconv

 In file included from progname.c:26:0:

./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 
 

cd /tmp/libiconv-1.14/srclib

vi stdio.in.h

 找到这行内容:

_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");

替换成:
#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16) _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); #endif

注意:结尾的#endif也要包括。

在 NginX 上为证书配置 OCSP Stapling

 

在 NginX 上为证书配置 OCSP Stapling

 
https://quchao.com/entry/how-to-configure-ocsp-stapling-on-nginx-for-the-certificates-issued-by-lets-encrypt/
 
 
 
nginx,apache,iis,tomcat
http://blog.csdn.net/aerchi/article/details/72877851
 
 
 

WordPress整站开启HTTPS协议,让站内链接支持SSL证书

define('FORCE_SSL_LOGIN', true); 

define('FORCE_SSL_ADMIN', true); 

 
 
//WordPress SSL at 2016/12/29 update add_filter('get_header', 'fanly_ssl'); function fanly_ssl(){ 	if( is_ssl() ){ 		function fanly_ssl_main ($content){ 			$siteurl = get_option('siteurl'); 			$upload_dir = wp_upload_dir(); 			$content = str_replace( 'http:'.strstr($siteurl, '//'), 'https:'.strstr($siteurl, '//'), $content); 			$content = str_replace( 'http:'.strstr($upload_dir['baseurl'], '//'), 'https:'.strstr($upload_dir['baseurl'], '//'), $content); 			return $content; 		} 		ob_start("fanly_ssl_main"); 	} }

https://zhangzifan.com/wordpress-ssl-link.html