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

OS X应用推荐

iTerm2 OS X下的终端工具笔者最喜欢的搭配就是iTerm2+oh-my-zsh。 iTerm2 Color Scheme 笔者偏爱Solarized Dark oh-my-zsh主题 笔者偏爱”agnoster“(需安装powerline字体) Spectacle OS X下的窗口分屏工具Spectacle,支持快捷键 brew OS X下的包管理工具brew,它可以让我们方便得安装软件,例如安装mysql-server: brew inst...Continue Reading