2017.10-28  完整的文章看这里: http://siwei.me/blog/posts/rails-rspec-add-rspec-to-rails-and-test-lib-files refer to:  https://github.com/plataformatec/devise/wiki/How-To:-Test-controllers-with-R...
Capistranoworkaroundtoavoiduntarringerrorswhendeployingfromosxtolinux
refer to: https://coderwall.com/p/ypwmpg If you see errors like this when capistrano is deploying from OSX to Linux: tar: Ignoring unknown extended header keyword `SCHILY.dev' In your capistrano t...
Linux 给ssh增加登录ascii画面ascii图画的来源
refer to: https://serverfault.com/questions/407033/how-can-i-edit-the-welcome-message-when-ssh-start 编辑  /etc/motd 内容如下 < 欢迎来到测试服务器” > ------------------------- \ \ ...
移动自动化测试appium的用法appiumusage
很是惭愧, appium的文档的入门可读性太差了。  全都是写给专家看的。各种概念,API, 函数解释的非常明白。 可是我就是不知道如何把它们串起来。(跟tishadow , angular有的一拼。。。难道是策略问题?) 今天终于放弃了官方文档,google了下,看到这位兄弟跟我一样啊:(http://automatium.blogspot.com/2013/06/how-to-...
Setupnginxasaserviceinlinux把nginx设置成自动启动
refer to: http://articles.slicehost.com/2007/10/17/ubuntu-lts-adding-an-nginx-init-script Ubuntu LTS - adding an nginx init script In the previous article we installed nginx ...
测试iosappappium的必要准备
其实也是开发任意一款移动app (ios)的准备。 refer to:  https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html To get started on a re...
Ubuntu下手机截图使用adbddmcaptureyourandroiddeviceinlinux
see:  https://help.ubuntu.com/community/AndroidScreenshots and http://stackoverflow.com/questions/6318597/no-device-list-in-android-ddms the key process:  make clear about your cell phon...
Linux Proxy统一解决大法
1. 启动你的本机 socks5 服务器 2. vim ~/.bashrc export HTTP_PROXY="socks5h://127.0.0.1:1093" export HTTPS_PROXY="socks5h://127.0.0.1:1093" export FTP_PROXY="socks5h://127.0.0.1:1093" export ALL_PROXY="socks...
Git Rebase笔记gitrebaseintroduction
前几天的一个文章,我提到 自己比较偏好 git-merge. 现在看起来,这个问题不该带有个人偏好。而是需要根据情况,来选择使用 git rebase /merge  ( several days ago, I mentioned that I prefer 'git-merge' to 'git-rebase'.  Now I admit that as a profe...
Docker 使用代理linuxproxysocks5docker Compose
export ALL_PROXY=socks5://localhost:port $ docker pull image
为titanium增加单元测试(addunittestsfortitanium
refer to: http://siwei.me/blog/posts/titanium-tishadow-unit-tests-using-tishadow 我们的主力项目之一: 乐股在线 (happy stock) 经过两个月的发展, 功能增加了很多, 所以需要增加单元测试了. 下面是个例子: 那么例子就从启动写起 .  对于启动 app之后, 使用spec描述的话,应...
Linux Sshtunnel
参考: https://www.ssh.com/academy/ssh/tunneling/example In OpenSSH, local port forwarding is configured using the -L option: ssh -L 80:intra.example.com:80 gw.example.com This example opens a con...
Todohttpwwwsoastacomsoasta测试(搜死他?^_^)
refer to:  http://www.soasta.com/ titanium 的 platform service 的test,用的就是它。 
Iprefergitmergetogitrebase喜欢merge
原因很简单, git merge 可以保留原始的commit 时间。 而rebase 会破坏这一点。( usually I prefer 'merge' than 'rebase') 比如, branch2:  f738cf3 added line 2 to file 2 on branch2 (Siwei, 6 seconds ago) a2f47a2 added line 1 ...
在titanium中使用tishadow进行单元测试(unittestsusingtishadow
注意: 本文与:   http://siwei.me/blog/posts/titanium-add-unit-tests-for-titanium 有所重复. 建议看它.  refer to:  http://www.yydigital.com/blog/2013/2/14/Testing_Alloy_With_Jasmine_And_TiShadow 1....
Sshgit非常慢的解决办法sshgitloginextremelyslow'ssolution
今天终于忍不住了。进入公司3个月以来,SSH 登录服务器特别慢。而其他同事用MAC非常快。 搜了一下,找到了解决办法:  http://superuser.com/questions/166359/top-causes-of-slow-ssh-logins ssh root@xx.xx.xx -vvv 如果发现在这里速度很忙,停住了:debug1: Next authen...
Android 修改imei的几种方法总结。proxy层面做替换是最方便的
1. 使用模拟器。不但可以修改imei,  还可以修改手机型号, android版本号, wifi ,手机号码。一键切换。 缺点是我没用起来,无法用模拟器 + burpsuite 2. 使用 root后的软件,例如xposed .  试了,不好用。 3. 直接在burpsuite层面进行拦截和修改。 这个超级好用。 就是偶尔需要软件或者系统重启。之后才能生效。
Burp 对于外网的请求,让burp走代理。letburpuseproxy
顶部 user options  -> 左侧connections  -> </span> Upstream Proxy Servers  -></span> Add </span> Destination host:  * </s...
Tishadow测试alloytestingalloyusingtishadowandjasmine
refer to:  http://www.yydigital.com/blog/2013/2/14/Testing_Alloy_With_Jasmine_And_TiShadow
Gittag基本操作(gittaggingbasic)
$ git tag -l  查看所有的tag  $ git tag -a 1.1.0 a50fabb -m 'message content .... ' $ git tag -d 1.0   # will remove tag 1.0 $ git tag -n2   # will show the tags with their messages....