We can use the command rhc setup with OpenShift server. I tried it, and wrote what the command do.
Tsukiji 500 yen lunchi tuna zammai
安くて、早くて、ウマい ことで知られる 築地 まぐろざんまい でワンコインランチをいただきました。
Continue reading Tsukiji 500 yen lunchi tuna zammaiOpenShift: How to login with ssh
The way to login OpenShift server with ssh.
Tested Environment
- OS: Ubuntu
- rhc 1.38.4
- Openshift Gear: 1 small
Preparation
Register ssh public key on OpenShift Web console.
The Way to Login
Use rhc
Add OpenShift application name after rhc ssh. For example, if you use app-domain.rhcloud.com, then execute rhc ssh app.
If you have not saved authenticate token on your local machine, you will be required to input password. Authenticate token can be saved with the command rhc setup.
Use ssh
This is the way to use ssh without rhc.
Execute the ssh command on bottom right of OpenShift Web console. Or, execute rhc apps and you can find ssh item like AAAAAABBBBBCCCCCCDDDDDD@app-domain.rhcloud.com, then execute ssh command with its argument, ssh AAAAAABBBBBCCCCCCDDDDDD@app-domain.rhcloud.com.
In this way, you don’t have to input password.
Rails: Realize nl2br in PHP
Here’s the code to realise nl2br of PHP in Rails.
Environment
(Unless Rails changes considerably), it can be used in most versions.
- Rails 4.2.5
- Ruby 2.0.0
東銀座 パスタやカレーが580円 M’s Cafe 大盛無料
カレー、パスタ、その他ランチが 580円 で食べられる M’s Cafe に行ってきました。
今回注文したのは 秘伝のスパイスを使ったメンチカツカレー大盛です。 大盛は結構なボリュームです、 カレールーも大盛りです。
