Skip to content

Instantly share code, notes, and snippets.

View kd0g's full-sized avatar

taewoong kdog kim kd0g

View GitHub Profile
@pahud
pahud / main.workflow
Last active July 24, 2023 08:20
Github Actions with Amazon EKS CI/CD
workflow "Demo workflow" {
on = "push"
resolves = ["SNS Notification"]
}
action "Build Image" {
uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6"
runs = ["/bin/sh", "-c", "docker build -t $IMAGE_URI ."]
env = {
IMAGE_URI = "xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/github-action-demo:latest"
@kd0g
kd0g / gist:4de90b89ad7167a3a51da6a04235cae8
Created March 3, 2018 12:28 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@kd0g
kd0g / phone_replace.scpt
Created March 3, 2018 12:10
MAC에서 전화번호 바꾸기 스크립트
tell application "Contacts"
-- repeat with aPerson in people of group "Test Group"
repeat with aPerson in people
set thePhones to phones of aPerson
if thePhones is not {} then
set errorList to {}
repeat with aPhoneNumber in thePhones
set theNumber to value of aPhoneNumber
try
set value of aPhoneNumber to my getNewNumber(theNumber)
# coding: utf8
'''
사실 문제 자체가 기억 안나서 구글신에 물어볼 뻔.
n == 2일 때, 어떻게 움직이면 좋을지 move()를 여러번 적어놓고 해결한 다음,
move(1, 3)
move(1, 2)
move(2, 3)
pp()를 만들고,