Commands
- Ubuntu add custome software to launcher,
sudo apt-get install alacarte
Tools
- web tool:
siege
Localtunnel link
- STEP 1:Install localtunnel using RubyGems. Check the full README if you don’t have Ruby or RubyGems.
$ sudo gem install localtunnel
- STEP 2:Run your local web server on any port! Let’s say you’re running Apache on port 8080.
- STEP 3:Now run localtunnel passing it the port to share. The first time you run localtunnel you have to point to a public SSH key. Check the README if you need help. Here’s an example:
$ localtunnel -k ~/.ssh/id_rsa.pub 8080
You should see something like this: Port 8080 is now publicly accessible from http://8bv2.localtunnel.com …
ruby 版本管理rvm
使用某个ruby,rvm use XXX
。如使用系统默认的就用rvm use system
.使用自己安装的就用rvm use ruby-2.1.1
.切换起来比较方便。
gem 的源切换为 淘宝镜像 ,速度比较快。
CocoaPods
pod install --verbose
查看安装过程
svn 有用的命令
$ svn status
D C logs
> local unversioned, incoming add upon update
Summary of conflicts:
Tree conflicts: 1
The solution that I've found works best is:
$ svn resolve --accept working logs
Resolved conflicted state of 'logs'
$ svn revert logs
Reverted 'logs'
$ svn status
$
关于Jekyll使用
- 临时不想发布文章,可在文章顶部添加
published: false
- 如果在github上不想动态生成,想用生成好的静态博客,可以添加
.nojekyll
文件,这样访问的就不再动态生成了。