pip install modernize
python -m modernize -w *.py
watch -n 1 "netstat -nt | grep TIME_WAIT | wc -l"
cat /etc/sysctl.conf
net.ipv4.tcp_tw_reuse = 1 으로 수정
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_prd_no(image_path): | |
prd_no = image_path.split('/')[-1].split('_')[0] | |
return prd_no |
command line ctrl + v + k
vi ctrl + shift + kkk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding:utf-8 -*- | |
import sys | |
import os | |
from tqdm import tqdm | |
import cv2 | |
from collections import defaultdict | |
import numpy as np | |
from PIL import Image |
NewerOlder