Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Seunggabi Kim seunggabi

🎯
Focusing
View GitHub Profile
@seunggabi
seunggabi / aws-cli-configure.sh
Last active Nov 24, 2022
aws-cli-configure.sh
View 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
View mail.py
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 Nov 30, 2022
semantic-branch-names.md
View semantic-branch-names.md

Semantic Branch Names

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

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

Example

View semantic-commit-messages.md

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

View db.js
// menifest.json
// "permissions": [
// "storage"
// ],
window.$seunggabi = {
db: (function () {
let name = getName();
let type = getType();
View 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"
View 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}"
View 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 Jun 27, 2020
backup_jenkins.sh
View 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
View scrollBottom.js
window.scrollTo(0,document.body.scrollHeight);