Skip to content

Instantly share code, notes, and snippets.

View yhirano55's full-sized avatar
🐕
Enjoy

yhirano55 yhirano55

🐕
Enjoy
View GitHub Profile
@yhirano55
yhirano55 / 00.md
Last active September 26, 2023 15:01
katacoda

なぜKubernetesが必要なのか?

https://thinkit.co.jp/article/13289

k8sとは

  • Kubernetesはコンテナ化されたアプリケーションの展開、スケーリング、および管理を自動化するためのコンテナオーケストレーションエンジンです。
  • Dockerに注目が集まり、プロダクションで利用するシーンが増えたため、あと、Microservices化などの流れに伴って、流行している。
  • 以前はDocker Swarmもあったが、デファクトスタンダードはk8sになっている。
@yhirano55
yhirano55 / for_speaker.md
Last active February 23, 2022 13:44
Railsdm 2018: ご登壇者向け資料

Railsdm 2019: ご登壇者向け資料

要点

発表資料について

  • 両日の会場ともに、アスペクト比は、16:9 となります。
  • スクリーンまでの距離が遠いため、 文字サイズは多少大きめ がよさそうです。

登壇方法について

@yhirano55
yhirano55 / for_speakers.md
Last active February 23, 2022 13:44
Rails Developers Meetup 2017: ご登壇に関する注意事項

Rails Developers Meetup 2017 ご登壇者各位

12月9日(土)のご登壇に関して、期日が迫ってきましたので、 改めていくつか注意事項等をアナウンスさせていただきます。

CHANGELOG

  • 12/3 19:25 TECH PLAY SHIBUYAでの推奨スクリーンサイズの件を追記

登壇方法について

@yhirano55
yhirano55 / seed_fu.rake
Last active January 16, 2020 19:30
Run in CI: RAILS_ENV=test bundle exec rails db:seed_fu:lint
# lib/tasks/seed_fu/lint.rake
namespace :db do
namespace :seed_fu do
desc 'Verify that all fixtures are valid'
task lint: :environment do
if Rails.env.test?
conn = ActiveRecord::Base.connection
%w[development test production].each do |env|
conn.transaction do
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails"

以下のログは下記コードの実行後に生成されたマークダウンファイルとなります。

env = Rack::MockRequest.env_for('http://localhost:3000/books')
TraceLocation.trace(ignore: /rbenv|activesupport/) { status, headers, body = Rails.application.call(env) }

Generated by trace_location at 2019-06-06 10:43:54 +0900

Generated by trace_location at 2019-06-05 10:39:18 +0900

activerecord-5.2.3/lib/active_record/connection_handling.rb:49
ActiveRecord::ConnectionHandling#establish_connection
def establish_connection(config = nil)
 raise "Anonymous class is not allowed." unless name

Generated by trace_location at 2019-06-06 08:18:16 +0900

activerecord-5.2.2.1/lib/active_record/connection_handling.rb:89
ActiveRecord::ConnectionHandling#connection
def connection
  retrieve_connection

Generated by trace_location at 2019-06-05 10:56:45 +0900

activemodel-5.2.3/lib/active_model/secure_password.rb:55
ActiveModel::SecurePassword::ClassMethods#has_secure_password
def has_secure_password(options = {})
  # Load bcrypt gem only when has_secure_password is used.

Generated by trace_location at 2019-06-04 23:08:49 +0900

activerecord-5.2.3/lib/active_record/validations.rb:65
ActiveRecord::Validations#valid?
def valid?(context = nil)
  context ||= default_validation_context
 output = super(context)