gitignoreで決まったファイルのみ許容する書き方
working-memo/.gitignore at master · kanagawa41/working-memo * !bin !bin/*.sh
working-memo/.gitignore at master · kanagawa41/working-memo * !bin !bin/*.sh
$ docker build -f fluentd/Dockerfile . --tag fluentd $ docker run -d \ -p 24224:24224 \ -p 24224:24224/udp \ --name fluentd_c \ --env-file .env \ fluentd $ docker exec -it flue...
解決 amazon web services - AWS Athena and date_format - Stack Overflow select current_timestamp ,date_format (current_timestamp, '%Y_%m_%d') ,format_datetime (current_timestamp, '...
ソース ※awslogsが4/11/2020 04:50の形式で検索が上手く行かない。 function detecte_log { EXPAND_SECONDS=10 if [ "$#" -ne 1 ]; then echo "Need time such as 'July 29 2020 17:24:07 JST'" exit 1 fi occured...
Rails 5, ActiveRecord has_many for nested Serializers not used? · Issue #2011 · rails-api/active_model_serializers より render json: resource, include: "shipment_service_types,shipment_service_types....
解決 Share session (cookies) between subdomains in Rails? Ultimately I found that I needed to state the tld_length (top level domain length) in that expression. The default tld_length is 1 while ...
Google JSON Style Guide
MY_VAR=$(grep MY_VAR .env | cut -d '=' -f 2-) Parse a .env (dotenv) file directly using BASH
解決 $ ssh -N -L 13306:xxx-db-01.cluster-xxx.ap-northeast-1.rds.amazonaws.com:3306 user_name_for_ssh@connect_to_ip_via_ssh $ mysql -u username -p --port=13306 -h 127.0.0.1 database_name 参考 Connec...
[A Comprehensive Guide to Rails Service Objects Toptal](https://www.toptal.com/ruby-on-rails/rails-service-objects-tutorial)
解決 requestは複数のcontrollerを使用した場合に使用する。 controllerは単体の動作の確認をする為に確認する。 request spec - Request specs - RSpec Rails - RSpec - Relish require "rails_helper" RSpec.describe "Widget management", :type =&...
SQLアンチパターン - ナイーブツリー
IS NULL を使用した検索では、インデックスが使用される NULL を許可するカラムにユニークインデックスを貼った場合、各々のNULL は別の値として区別され、重複エラーを発生させない 参考 MySQL のNULL ではまったことあれこれ - LukeSilvia’s diary
解決 FactoryBot.define do factory :user_action_error do user user_action_history { association(:user_action_history, user: user) } end end 参考 Creating associations initialized via ‘bui...
MobaXterm Xserver with SSH, telnet, RDP, VNC and X11 - Animated demo