Skip to content

Instantly share code, notes, and snippets.

View lifefeel's full-sized avatar

J.P Lee lifefeel

  • Seoul, South Korea
  • 09:47 (UTC +09:00)
View GitHub Profile
@lifefeel
lifefeel / nfd2nfc.py
Last active October 8, 2019 06:20 — forked from joonahn/repair_broken_mac_filename.py
mac에서 생성한 한글 파일명을 windows에서 읽을 때 깨진 파일을 복구해 주는 스크립트
import sys
from unicodedata import normalize
import glob
import os
def nfd2nfc(data):
return normalize('NFC', data)
if len(sys.argv) > 1:
path = sys.argv[1]
@lifefeel
lifefeel / Dockerfile
Last active December 15, 2020 10:47
도커 이미지 생성 시 locale을 UTF-8 설정 및 timezone 설정
FROM ubuntu
# Locale Setting
ENV LC_ALL C.UTF-8
# Timezone Setting
RUN apt-get update && apt-get install -y tzdata
RUN ls /usr/share/zoneinfo && \
ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime && \
echo "Asia/Seoul" > /etc/timezone
@lifefeel
lifefeel / .bashrc
Last active July 29, 2021 03:01
Script to initialize conda when connecting to a shell
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/opt/anaconda3/bin:$PATH"