Skip to content

Instantly share code, notes, and snippets.

View takat0-h0rikosh1's full-sized avatar

Takato Horikoshi takat0-h0rikosh1

  • japan tokyo
View GitHub Profile
@takat0-h0rikosh1
takat0-h0rikosh1 / Dockerfile
Last active November 5, 2023 04:08
serverless-bastion-files
FROM amazonlinux:2
WORKDIR /app
COPY entrypoint.sh /app
RUN chmod -R +x /app
RUN rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022 \
&& yum install -y \
sudo \
unzip \
@takat0-h0rikosh1
takat0-h0rikosh1 / ignore_composer_pypi_packages.md
Last active April 28, 2022 03:10
Terraform の階層化フィールドの ignore_changes 備忘録

cloud composer の terraform リソース定義において pypi_packages の階層化がキツすぎて ignore するのに手こずったのでメモしておく。

  lifecycle {
    ignore_changes = [
      config[0].software_config[0].pypi_packages,
    ]
  }
@takat0-h0rikosh1
takat0-h0rikosh1 / Slack リマインダーを設定するコマンド Tips
Last active April 18, 2022 09:11
Slack リマインダーを設定するコマンド Tips
# 日時指定して通知
/remind #target_channel メッセージを書くところだYo!!! on 04/01/2022 12:30
# 曜日を指定して毎週通知
/remind #target_channel メッセージを書くところだYo!!! every Monday Wednesday Friday at 10:00
@takat0-h0rikosh1
takat0-h0rikosh1 / example_airflow_bq_hook_insert_all_dag.py
Created February 28, 2022 08:55
example_airflow_bq_hook_insert_all_dag
from airflow.operators.python_operator import PythonOperator
from airflow.utils.dates import days_ago
from airflow import DAG
from airflow.providers.google.cloud.hooks.bigquery import BigQueryHook
default_args = {
'owner': 'airflow',
'depends_on_past': False,
'start_date': days_ago(2),
'retries': 0,
@takat0-h0rikosh1
takat0-h0rikosh1 / A_MY_RAILE_NOTE
Last active December 27, 2021 13:38
MY_RAILS_NOTE
Railsの知見置き場
$ aws ecs create-service \
--cluster claster_name \
--service-name service_name \
--task-definition task_def_name \
--load-balancers "targetGroupArn=target_group_arn,containerName=container_name,containerPort=container_port" \
--desired-count 1 \
--launch-type FARGATE \
--platform-version LATEST \
--network-configuration "awsvpcConfiguration={subnets=[subnet-xxx,subnet-xxx,subnet-xxx],securityGroups=[sg-xxx,sg-xxx],assignPublicIp=DISABLED}"
import cats.{Applicative, Monad, MonadError, ~>}
import cats.implicits._
import cats.data.{EitherT, Kleisli}
import com.softwaremill.macwire._
import monix.eval.Task
import scalikejdbc.{AutoSession, DB, DBSession}
import scala.concurrent.Await
import scala.concurrent.duration._