A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
// This is a semi-quantum fulladder. It adds to b_in | |
// a c-number. Carry-in bit is c_in and carry_out is | |
// c_out. xlt-l and L are enablebits. See documentation | |
// for further information | |
proc muxfa a, b_in, c_in, c_out, xlt_l, L, total //a, | |
if a == 0//00 | |
Toffoli b_in, c_in, c_out |
// noprotect | |
function Lambda(param, body, e){ | |
this.param = param | |
this.body = body | |
this.env = e | |
}; | |
Lambda.prototype.apply = function(t, args, k0){ | |
var e_ = Object.create(this.env); | |
for(var j = 0; j < this.param.length; j++){ | |
e_[this.param[j]] = args[j]; |
adb shell appops set com.tencent.mm OP_READ_PHONE_STATE ignore | |
adb shell appops set com.tencent.mm COARSE_LOCATION ignore | |
adb shell appops set com.tencent.mm FINE_LOCATION ignore | |
adb shell appops set com.tencent.mm RUN_IN_BACKGROUND ignore |
Bruce A.Tate. 七周七语言[M]. 巨成,戴玮,白明,譯. 人民邮电出版社,2012-5. ISBN 978-7-115-27611-7.
Matz: 1993年,當我看到Perl的時候,不知怎麼的,這種混合了Lisp和Smalltalk特徵的面向對象語言讓我的靈感一下子迸發出來。我意識到Perl將成爲一門可提高我們生產力的偉大語言。於是,出於自娛自樂的動機,我着手開發一門與之類似的語言。(p. 9)
這讓我想起鳳姐的「Ruby就是沒有到處打廣告的Perl 6」.
Matz: 我喜歡它寓編程於樂的方式。說到某個具體的技術點,我最喜歡的是“代碼塊”(block)。代碼塊即是一種易於控制的高階函數,也爲DSL及其他特性的實現提供了極大的靈活性。(p. 9)
#! /bin/sh | |
#! /usr/bin/expect -f | |
certtool --generate-privkey --outfile $1-key.pem | |
sed -i "1ccn = "${1}"" client.tmpl | |
sed -i "3cemail = ${1}@abc.org" client.tmpl | |
certtool --generate-certificate --load-privkey $1-key.pem --load-ca-certificate ca-cert.pem --load-ca-privkey ca-key.pem --template client.tmpl --outfile $1-cert.pem | |
openssl pkcs12 -export -inkey $1-key.pem -in $1-cert.pem -name "$1 VPN Client Cert" -certfile ca-cert.pem -out $1.cert.p12 |
.host:/vmshared /mnt/vmshared fuse.vmhgfs-fuse allow_other,uid=1000,gid=1000,auto_unmount,defaults 0 0 |
MesaLink是百度安全实验室开发的一个内存安全并兼容OpenSSL的传输层安全(Transport Layer Security, TLS)协议栈。近年来TLS漏洞频发,以2014年的OpenSSL"心血"为代表的内存安全漏洞对业界造成了巨大损失。MesaLink的主要目标是用Rust这样一个保证内存安全的语言,根除TLS协议栈中威胁通信安全性和完整性的内存安全漏洞,减小攻击面且保证攻击面收敛可审计。此外,MesaLink支持跨平台,提供兼容OpenSSL的C API,更可在安卓和libcurl中无缝替换OpenSSL。这极大地降低了开发成本,方便智能设备厂商快速获取安全通信的能力,从而实质性提升智能设备生态的安全性。MesaLink已经在Github上以BSD协议开源,同时MesaLink也是OASES智能终端安全生态联盟的核心开放技术之一;我们欢迎更多合作伙伴的加入,共建安全生态。
为提供完善的功能,并保证强健的安全性,MesaLink 将遵循 Rust SGX SDK 项目中提出的混合代码内存安全架构三原则:
Queue:
Database:
I assume you already have Docker up and running on your Raspberry Pi 2. If not, see this article.
The next natural step is to install Docker Compose (formerly Fig), but there's no ARM support out of the box. This recipe will help you install Docker Compose on your Raspberry Pi 2!
The following six steps will do the trick: