Find out the process that opened thr port
netstat -tulpn
ls -l /proc/1138/exe
fuser 7000/tcp
__all__ = ['imread', 'imsave'] | |
from distutils.version import LooseVersion | |
import warnings | |
import numpy as np | |
from PIL import Image, __version__ as pil_version | |
from ...util import img_as_ubyte, img_as_uint | |
http://linuxcommand.org/lc3_wss0120.php
pwdx <PID>
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 [email protected]:CVPR/clean-scoring-v2-api.git
import pandas as pd | |
from sklearn.model_selection import train_test_split | |
# split train, dev set and save to file | |
all_data = pd.read_csv(output_file_balanced, sep='\t') | |
all_data.sample(frac=1) | |
train_set, dev_set = train_test_split(all_data, test_size=0.2) | |
train_set.to_csv(output_file_train, sep='\t', header=False, index=False) | |
dev_set.to_csv(output_file_dev, sep='\t', header=False, index=False) |
import csv | |
import gzip | |
import os | |
file_name = 'input0000' | |
out_file_name = 'input0000.fix' | |
if os.path.exists(out_file_name): | |
os.remove(out_file_name) |
import unittest | |
import os, sys, time | |
import json | |
from subprocess import call | |
import requests | |
import csv | |
parentPath = os.path.abspath("../..") | |
if parentPath not in sys.path: | |
sys.path.insert(0, parentPath) |