Become a member
Sign in
Tony Hsu
Tony Hsu

Tony Hsu

65 Following
34 Followers
·
  • Profile
  • Claps
  • Highlights
  • Responses

Latest

Tony Hsu
Tony Hsu
Jul 5, 2016 · 2 min read

Git rebase

Last time, I used cherry-pick to solve my branch problems. This time, I found a new way to counter my recent problem. It is using git rebase.

According to git document:

git-rebase — Reapply commits on top of another base tip

1

Tony Hsu
Tony Hsu
Jun 3, 2016 · 1 min read

git cherry pick

Recently, I’ve having trouble with git branches and commits. This is how I solve it after googled solutions.

My had two branches, master and develop.

master --- A 
\
develop --- B --- C --- D
Tony Hsu
Tony Hsu
Feb 18, 2016 · 3 min read

Learning Redis

This is the first time I play with Redis. I’ve heard of it, but never used it before. So I think it’s a good idea to jot these basic things down in my blog. I followed the steps of the official Try Redis Tutorial. Since it is an interactive tutorial, my thought was to write these things down so that…

1 response
Tony Hsu
Tony Hsu
Dec 28, 2015 · 1 min read

Reset Database on Heroku

It happened one day that I need to reset the database of my heroku app. Usually, I run 3 commands on my terminal to reset databases when developing. they are

rake db:drop
rake db:create
rake db:migrate

1

Tony Hsu
Tony Hsu
Dec 24, 2015 · 1 min read

Hidding data from Github and Heroku

I’m using dropbox API to retrieve and store some photos on my rails app. Dropbox must give me API keys, secrets, tokens to get access to my own app. However, these data will be exposed if I simply store them in config files. The wonderful thing about rails is that we…

6