Skip to content

Instantly share code, notes, and snippets.

@rilutham
rilutham / ecs-env-export.md
Created June 8, 2020 04:00
Export AWS ECS task definition environment key
  • Install jq
  • Run the following command
aws ecs describe-task-definition \
	--task-definition <task_arn> \
	--query "taskDefinition.containerDefinitions[0].environment[]" |
	jq -r '.[] | "-e \(.name)=\"\(.value)\" \\"'
@rilutham
rilutham / calculate_payroll_scheme_user_adjustments.rb
Created April 7, 2020 10:11
calculate_payroll_scheme_user_adjustments.rb
class CalculatePayrollSchemeUserAdjustments
include Interactor
def call
context.fail!(message: I18n.t("admin.user_adjustments.e.payroll_scheme_nil")) if context.payroll_scheme.blank?
context.fail!(message: I18n.t("admin.user_adjustments.e.payroll_scheme_users_nil")) if context.payroll_scheme.users.blank?
payroll_scheme = context.payroll_scheme
users = payroll_scheme.users
start_date = payroll_scheme.current_period_start_date
@rilutham
rilutham / install-amazon1-td-agent3.sh
Last active April 1, 2020 02:38
Fluentd Installation Script For Amazon Linux 2018.03
echo "=============================="
echo " td-agent Installation Script "
echo "=============================="
echo "This script requires superuser access to install rpm packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
@rilutham
rilutham / pull-request-template.md
Last active July 8, 2019 07:12
Pull Request Template

Overview

What is the feature?

(Describe what the feature is or put link to JIRA board)

What is the solution?

(Describe at a high level how the feature was implemented)

What areas of the code does impact?

(Describe what parts/ areas of the code are impacted)