分类: 技术

cuitor

微信小程序体验之“Google Authenticator”

之前为了体验一下微信的小程序,移植了Chrome上的开源插件Authenticator,也就是我们开发手机上较常用的”Google Authenticator”,插件源码在这里https://github.com/Sneezry/authenticator。 由于刚体验小程序时,二维码识别功能并未给出,所以差点弃坑,好在最近微信补上了,所以正好乘着周末把坑填完。 下面是小程序版”Google Authenticator”的演示视频: ...Continue Reading

cuitor

使用expect命令实现自动登录ssh

当我们在终端下需要连接ssh时,ssh命令会提示需要手动输入密码,会显得很繁琐。当然你可以选择将本机的ssh公钥放入服务器~/.ssh/authorized_keys来实现免密码登录,这里介绍的是使用expect命令实现密码的自动输入。 安装expect命令 OS X下安装 brew install expect Ubuntu下安装 sudo apt-get install expect expect使用示例 ssh自动登录脚本 #!/usr/bin/expec...Continue Reading

cuitor

网站支持Markdown编辑

Markdown原文: A First Level Header ==================== A Second Level Header --------------------- Now is the time for all good men to come to the aid of their country. This is just a regular paragraph. The quick brown fox jumped over the lazy ...Continue Reading