Shin Code log

Logs of solution for code

Articles


[Rails] Fast way to re-create db

In development environment, we need a fast way to re-create db for testing.

[Rails] Fast way to re-create db

Setup PostgreSQL for Ubuntu

Solution for easy install PostgreSQL

Setup PostgreSQL for Ubuntu

Checking out pull requests locally

Solution to run code of pull request (PR) in local

Checking out pull requests locally

Check the situation of redis server

Sometimes you need quickly way to check the situation of redis server. This is the way to do that

Check the situation of redis server

Bundle config for https gem on git

Config login for bundle with 'https://github.com/xxx.yyy'

Bundle config for https gem on git

Test if redis server is running

Test if redis server is running

Test if redis server is running

Install Redis on Mac Without Homebrew

Standalone way to install redis on MacOS

Install Redis on Mac Without Homebrew

[Rails] Resolve undefined method 'service_name' for ActiveStorage

When you upgrade your rails application from 6.0.x to 6.1.x or higher, you will meet this error.

[Rails] Resolve undefined method 'service_name' for ActiveStorage

How do I get a YouTube video thumbnail from the YouTube API?

Quick way to get youtube video's thumbnail

How do I get a YouTube video thumbnail from the YouTube API?

Restart rails app

Restart app by touching tmp/restart.txt

Restart rails app