Skip to content

Instantly share code, notes, and snippets.

# Install Docker
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common -y
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
@alfa-jpn
alfa-jpn / PULL_REQUEST_TEMPLATE.md
Created November 4, 2018 03:36
俺的ぷるりてんぷれ

概要

PR概要を記述する

チケット

  • なし
  • あり (チケットのリンクを貼る)

実装内容・手法

実装内容や、問題の解決手法を記述する

AllCops:
TargetRubyVersion: 2.5
Exclude:
- 'Rakefile'
- 'bin/**/*'
- 'db/**/*'
- 'vendor/**/*'
# 日本語コメントの許可
Style/AsciiComments:
[client]
default-character-set=utf8mb4
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
[mysqldump]
default-character-set=utf8mb4
@alfa-jpn
alfa-jpn / install-rbenv.sh
Last active August 29, 2015 14:04
rbenv + 俺的rbenv必須プラグイン
#!/bin/bash
# Install Rbenv
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv
# Install RubyBuild
git clone git@github.com:sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# Install RbenvRails
git clone git@github.com:alfa-jpn/rbenv-rails.git ~/.rbenv/plugins/rbenv-rails
@alfa-jpn
alfa-jpn / nitrous-rbenv.sh
Created July 2, 2014 15:27
Install rbenv and ruby-build for nitrous.io
#!/bin/bash
# rbenv https://github.com/sstephenson/rbenv
git clone git@github.com:sstephenson/rbenv.git ~/.rbenv
# ruby-build https://github.com/sstephenson/ruby-build
git clone git@github.com:sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
# config shell
echo 'export RBENV_ROOT="$HOME/.rbenv"' >> ~/.bash_profile
@alfa-jpn
alfa-jpn / devise.ja.yml
Created November 29, 2013 10:49
devise(3.2.2)用の日本語localeファイル。
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
ja:
devise:
confirmations:
confirmed: "アカウントが確認されました。"
send_instructions: "アカウント確認メールが数分以内に届きます。"
send_paranoid_instructions: "メールアドレスが登録されている場合、アカウント確認メールが数分以内に届きます。"
failure:
already_authenticated: "ログイン済みです。"
@alfa-jpn
alfa-jpn / create_rails.sh
Created November 10, 2013 07:18
This script create rails project without global environment. (bash script.) @require bundler(bundle command.) @Usage create_rails.sh {ProjectName} {RailsVersion} @example # create example_project with rails 4.0.0 bash create_rails.sh example_project 4.0.0
#!/bin/bash
# create new rails project in the version.
# create_rails.sh {project_name} [rails_version]
#
# @example
# sh create_rails.sh nyaruko 4.0.0
# @author
# alfa-jpn
#