Skip to content

Instantly share code, notes, and snippets.

View ymsrk's full-sized avatar

kojiro.yamashiro ymsrk

  • IDOM.inc
  • in Tokyo
View GitHub Profile
## Add Gem files
gemの名前 | 内容
--------------------- | ---------------------------------------------
sidekiq | 非同期処理を実現する
active_decorator | レイヤーを追加する
pry-rails | pryでrails consoleを利用できる
pry-byebug | pryでステップ実行ができる
hirb | モデル出力を整形して表示
hirb-unicode | マルチバイト文字を問題なく表示
@ymsrk
ymsrk / rails_new_project.md
Last active June 16, 2017 10:21
rails 新規プロジェクト

rails new project command memory's

ターミナルにはfishがインストールされている。
event-sandboxはプロジェクトの名前なので適宜読み替えること。

新規でプロジェクトを構築する手順

1.ディレクトリを作成する

$ mkdir event-sandbox; and cd event-sandbox;
@ymsrk
ymsrk / initial.sh
Created July 25, 2017 16:35
railsをインストールするところまでのシェルスクリプト
#!/bin/bash
ruby_version=2.4.0
vendor_path=./vendor/bundler/
echo '初期化処理実行開始....'
if [ ! -e .ruby_version ]; then
rbenv local $ruby_version
fi
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ymsrk
ymsrk / uninstall_gems.sh
Created January 17, 2018 01:55
all uninstall gems
#!/usr/bin/env bash
echo 'uninstall_gems'
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
@ymsrk
ymsrk / commit_message_example.md
Created November 23, 2020 04:01 — forked from mono0926/commit_message_example.md
[転載] gitにおけるコミットログ/メッセージ例文集100

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@ymsrk
ymsrk / install-docker.md
Created January 26, 2021 07:24 — forked from npearce/install-docker.md
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@ymsrk
ymsrk / docker-centos-laravel
Created December 26, 2016 15:15
docker on centos on laravel
FROM centos:centos6.8
# update & clean
RUN yum update -y; yum clean all;
# support Japanese
RUN yum -y groupinstall "Japanese Support"; yum clean all;
# install sudo
RUN yum install -y sudo git wget curl tree; yum clean all;