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
@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

ChangeLog を支える英語

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

ほとんど引用です。

基本形

@ymsrk
ymsrk / commit_message_example.md
Created November 23, 2020 04:01 — forked from mono0926/commit_message_example.md
[転載] gitにおけるコミットログ/メッセージ例文集100
@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
# 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 / 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
@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;
## Add Gem files
gemの名前 | 内容
--------------------- | ---------------------------------------------
sidekiq | 非同期処理を実現する
active_decorator | レイヤーを追加する
pry-rails | pryでrails consoleを利用できる
pry-byebug | pryでステップ実行ができる
hirb | モデル出力を整形して表示
hirb-unicode | マルチバイト文字を問題なく表示
@ymsrk
ymsrk / .pryrc
Created June 3, 2017 15:46
Rails consoleで pryを利用する
begin
require 'hirb'
rescue LoadError
# Missing goodies, bummer
end
if defined? Hirb
Hirb::View.instance_eval do
def enable_output_method
@output_method = true
@ymsrk
ymsrk / .rspec
Created April 9, 2017 15:31
setting_rspec
--color
--warnings
--require spec_helper
--format documentation