Basic .travis.yml

.travis.yml

language: ruby
rvm:
- 2.2.2
gemfile:
- Gemfile
env:
- DB=mysql
services:
- redis-server
before_script:
- RAILS_ENV=test bundle exec rake db:create
- RAILS_ENV=test bundle exec rake db:migrate
script:
- RAILS_ENV=test bundle exec rspec
- bundle exec rake rubocop:rubocop
- bundle exec rails_best_practices
notifications:
  email:
    - one@example.com
    - other@example.com
Advertisements

Tmux keystroke

Default Layouts

Keystroke  What it does

<prefix>   Switch to Even Horizontal
<alt>1     Layout

<prefix>   Switch to Even Vertical
<alt>2     Layout

<prefix>   Switch to Main Vertical
<alt>3     Layout

<prefix>   Switch to Main Horizontal
<alt>4     Layout

<prefix>   Switch to Tiled
<alt>5     Layout

<prefix>   Rotate through the
<space>    default layout

Resizing Panes

Keystroke   What it does

<prefix>    increase the height of this 
<ctrl>up    pane by on row

<prefix>    decrease the height of this
<ctrl>down  pane by one row

<prefix>    increase the width of this
<ctrl>left  pane by on column

<prefix>    decrease the width of this
<ctrl>right pane by one column

<prefix>    increase the height of this
<alt>up     pane by five rows

<prefix>    decrease the height of this
<alt>down   pane by five rows

<prefix>    increase the width of this
<alt>left   pane by five columns

<prefix>    decrease the width of this
<alt>right  pane by five columns

How to install go, beego and revel on ubuntu?

Go

Official

http://golang.org

Download Go

$ cd ~/Downloads
$ wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
$ tar zxvf go1.4.2.linux-amd64.tar.gz
$ sudo mv go /usr/src/go

Set path

$ vim ~/.bashrc

export GOPATH=~/Applications/Go
export GOROOT=/usr/src/go
export PATH=${PATH}:$GOPATH/bin:$GOROOT/bin

$ source ~/.bashrc

Make directories

$ mkdir -p ~/Applications/Go
$ cd ~/Applications/Go
$ mkdir src pkg bin

Beego

Official

http://beego.me

Download beego

$ go get github.com/astaxie/beego
$ go get github.com/beego/bee

Create a new beego application

$ cd $GOPAHT/src
$ bee new hello
$ cd hello
$ bee run

Open browser to http://localhost:8080 to see.


Revel

Official

https://revel.github.io

Download revel

$ go get github.com/revel/revel
$ go get github.com/revel/cmd/revel

Create a new revel application

$ cd $GOPAHT
$ revel new myapp
$ revel run myapp

Open browser to http://localhost:9000 to see.