Skip to content

Instantly share code, notes, and snippets.

View seunggabi's full-sized avatar
🎯
Focusing

Seunggabi Kim seunggabi

🎯
Focusing
View GitHub Profile
@seunggabi
seunggabi / aws-cli-configure.sh
Last active November 24, 2022 06:07
aws-cli-configure.sh
brew install awscli
#aws configure
#AWS Access Key ID [None] : [발급받은 IAM의 Access Key ID]
#AWS Secret Access Key [None] : [발급받은 IAM의 Secret Access Key]
#Default region name [None] : ap-northeast-2[서울 리전]
#Default output format [None] :
mkdir -p ~/.aws
@seunggabi
seunggabi / prepare-commit-msg
Last active November 1, 2023 08:03
prepare-commit-msg
#!/bin/bash
if [ -z "${SKIP_BRANCH}" ]; then
SKIP_BRANCH=(master develop release hotfix)
fi
NAME=$(git symbolic-ref --short HEAD)
NAME="${NAME##*/}"
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from const import MAIL_DL, MAIL_FROM, MAIL_SERVER
class Mail:
def __init__(self):
pass
@seunggabi
seunggabi / semantic-branch-names.md
Last active April 25, 2024 08:44
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

// menifest.json
// "permissions": [
// "storage"
// ],
window.$seunggabi = {
db: (function () {
let name = getName();
let type = getType();
@seunggabi
seunggabi / boot.sh
Created May 17, 2020 16:33
boot.sh
#!/bin/sh
# sh /home1/irteam/apps/boot/boot.sh restart /home1/irteam/deploy/api.jar dev jp
USER=`/usr/bin/whoami`
readonly BOOT_DIR=/home1/irteam/apps/boot
readonly L7CHECK_URL=http://localhost/monitor/l7check
readonly PROC_NAME=springboot
readonly PROC_PID="${BOOT_DIR}/${PROC_NAME}.pid"
@seunggabi
seunggabi / copy_hdfs.sh
Last active May 17, 2020 16:11
copy_hdfs.sh
#!/bin/sh
target=$1
source /home1/irteam/apps/${target}/source.me
user=$2
from=$3
to=$4
path="hdfs://${target}/user/${user}/${to}"
@seunggabi
seunggabi / mail.sh
Created May 17, 2020 16:06
mail.sh
#!/bin/sh
# yum install mailx
# /etc/mail.rc
# set smtp=host
subject=$1
attach=$2
content=$3
to=$4
@seunggabi
seunggabi / backup_jenkins.sh
Last active June 27, 2020 05:34
backup_jenkins.sh
#!/bin/sh
HOME=/home1/irteam
JENKINS_HOME=${HOME}/jenkins_home
BACKUP_HOME=${HOME}/backup
mkdir -p -m777 ${BACKUP_HOME}
rm -rf ${BACKUP_HOME}/jenkins_origin.tar.gz
mv ${BACKUP_HOME}/jenkins.tar.gz ${BACKUP_HOME}/jenkins_origin.tar.gz