Skip to content

Instantly share code, notes, and snippets.

View Jongbhin's full-sized avatar

Jongbhin Park Jongbhin

  • SK Planet
  • Pangyo
View GitHub Profile
@Jongbhin
Jongbhin / check_cuda_cudnn.md
Last active February 10, 2024 23:24
[Cuda cudnn version check] #cuda #cudnn #nvidia

To check nvidia driver

modinfo nvidia

To check cuda version

cat /usr/local/cuda/version.txt
@Jongbhin
Jongbhin / git_reference.md
Last active August 8, 2023 06:38
[Git reference] #git #reference

Git add remote

git remote add REMOTE-ID REMOTE-URL
git remote set-url --add --push all REMOTE-URL-1
git remote set-url --add --push all REMOTE-URL-2
# git remote set-url --add --push all git@175.126.56.233:CVPR/clean-scoring-v2-api.git

Git fetch all branches

@Jongbhin
Jongbhin / linux_command_reference.md
Last active July 25, 2022 07:42
[linux command reference] #linux #command #reference

Linux netstat command find out which process is listing upon a port

Find out the process that opened thr port

netstat -tulpn
ls -l /proc/1138/exe

Find out the processes PID that opened tcp port 7000, enter:

fuser 7000/tcp
@Jongbhin
Jongbhin / bash_reference.md
Last active March 30, 2022 02:31
[bash reference] #bash #reference
@Jongbhin
Jongbhin / conda_init.sh
Last active May 17, 2021 05:03
[conda initial shell] #conda
# for ann in dic
cd $CONDA_PREFIX
mkdir -p ./etc/conda/activate.d
mkdir -p ./etc/conda/deactivate.d
touch ./etc/conda/activate.d/env_vars.sh
touch ./etc/conda/deactivate.d/env_vars.sh
# set alias for pip
cat >> ./etc/conda/activate.d/env_vars.sh << EOF
alias pip3='/app/recsy11/.conda/envs/ann/bin/pip3'
@Jongbhin
Jongbhin / conda_reference.md
Last active April 27, 2021 22:53
[conda reference] #conda #anaconda

Frequently used cmommand

conda env list
conda config --envs
conda config --set auto_activate_base false
conda remove --name myenv --all
conda create -n py27 python=2.7 anaconda
conda env remove -n ENV_NAME
@Jongbhin
Jongbhin / csv_read_write.md
Last active February 27, 2021 06:21
[csv read write] #python #csv

Using csv

# -*- coding: utf-8 -*-

import os
import csv

data_dir = 'some_dir'
input_file = os.path.join(data_dir, 'some_input_file.tsv')
output_file = os.path.join(data_dir, 'some_out_file.tsv')
@Jongbhin
Jongbhin / python2_3.md
Created January 21, 2021 05:38
[python 2 to 3] #python
pip install modernize
python -m modernize -w *.py
@Jongbhin
Jongbhin / clipboard
Last active January 5, 2021 04:11
[Clipboard] #clipboard
split_cmd = "split -n l/{} -d -a 2 {} meta_input".format(file_num, file_path)
nohup /app/puser/catalog_preprocessor/src/run.sh today 1002,1003,153118,1001,1004,153106,1006,1007,153108,1531201,1005,153111,153112 &> /app/puser/catalog_preprocessor/log/run.log.`date +"\%Y\%m\%d"` &
신규생성된 상품은 일주일간 추가매칭에서 제외한다.
신규생성이 존재하면 추가매칭은 제거한다.
11->12일 증분 결과