Skip to content

Instantly share code, notes, and snippets.

View serithemage's full-sized avatar
🏠
Working from home

Jung Do Hyun serithemage

🏠
Working from home
View GitHub Profile
@serithemage
serithemage / autostop_instances.py
Last active December 29, 2017 06:27
An AWS Lambda function that stops all instances that are not protect tagged
import boto3
import logging
# setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
client = boto3.client('ec2')
runningInstanceFilter = [
@serithemage
serithemage / mxnet_on_colab.ipynb
Last active September 11, 2018 04:16
mxnet_on_colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@serithemage
serithemage / konlpy+mecab_install_to_amazon_linux2.sh
Last active November 5, 2019 22:15
konlpy와 mecab을 amazon linux2에 인스톨하는 스크립트입니다
#!/bin/bash
sudo amazon-linux-extras install epel
sudo yum install -y https://packages.groonga.org/centos/groonga-release-latest.noarch.rpm
sudo yum install -y -enablerepo=epel groonga
sudo yum install -y gcc-c++ java-1.8.0-openjdk-devel python-devel python3-devel fontconfig fontconfig-devel libstdc++
sudo yum install mecab mecab-devel mecab-ipadic git make curl xz patch
sudo pip3 install konlpy
@serithemage
serithemage / apache-mxnet-gluon-on-colab.ipynb
Created September 29, 2019 00:05
Apache MXNet/gluon on Colab.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@serithemage
serithemage / setup-for-d2l.ipynb
Last active November 18, 2019 01:52
Setup for D2L.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@serithemage
serithemage / 2017_csat_mathematics_type_ga.ipynb
Created April 6, 2019 01:52
2017_CSAT_Mathematics_Type_GA.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
cd ~/
sudo yum install ruby -y
sudo amazon-linux-extras install epel -y > /dev/null 2>&1
sudo yum install figlet -y
echo "ruby version"
ruby --version
if [ -f ~/master.zip ]
then
echo "lolcat master.zip already download"
@serithemage
serithemage / softbank20181Q.md
Last active May 13, 2021 06:14
소프트뱅크 2018년3월 1분기 결산설명회 요약 번역

이 글은 소프트뱅크 2018년3월 1분기 결산설명회에서 손정의 회장의 발언만을 요약/번역한 것 입니다. 동영상은 아래 링크에서 보실 수 있습니다.

인사말 번역(영상의 1분45초부터)

손정의 입니다. 잘 부탁 드립니다.

최근 절실히 느끼고 있습니다만 뭐든지 단기간만 봐서는 안된다는 생각이 듭니다.

@serithemage
serithemage / ec2_auto_stop.py
Last active June 1, 2021 01:13
Finds ec2 of all regions and stops instances where the tag AutoStopProtect is not set to True.
import boto3
import logging
# setup simple logging for INFO
logger = logging.getLogger()
logger.setLevel(logging.INFO)
client = boto3.client('ec2')
runningInstanceFilter = [