Skip to content

Instantly share code, notes, and snippets.

View DonghoonPark12's full-sized avatar

DHPark DonghoonPark12

  • HAE
  • Seoul, Rep.of.Korea.
View GitHub Profile
@DonghoonPark12
DonghoonPark12 / gist:9ad26035efe0cb5fbe5cc36ebab4835a
Last active June 4, 2018 12:24
리눅스 심볼링 링크(ln -s)와 하드링크(ln) 차이
# 어떤 파일 test.txt를 저장하게 되면 내용을 하드에 저장하게 되고, 그 위치 정보를 test.txt가 가리키게 된다.
# 위치 정보를 가지고 있는 파일 명을 다른 이름으로 연결
ln -s test.txt hello.txt
# 위치 정보를 가지고 있는 파일 명을 여러개 생성
ln test.txt hello.txt
# 현재 디렉토리에서 .pl 확장자를 가진 모든 파일 찾기
find -name '*.pl'
#!/usr/bin/python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#!/usr/bin/python
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#!/bin/bash
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#!/bin/bash
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
#4 DashInsert
f = open("input.txt","r")
long = f.read() #문자열로 읽음
#print(len(long))
flag1 = 0
flag2 = 0
list = []
for i in long:
list.append(i)
#1. 이름 분석
'''
def chunk(long,n):
for i in range(0,len(long),n):
yield long[i:i+n]
f = open("input.txt","r")
long = f.read() #문자열로 읽음
#print(long)
print(type(long))
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run
sudo sh cuda_8.0.61_375.26_linux.run --override --silent --toolkit # install cuda in /usr/local/cuda
cd /usr/local/cuda
tar -xzvf cudnn-8.0-linux-x64-v6.0.tgz
sudo cp cuda/include/cudnn.h /usr/local/cuda/include
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64
sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn*
#add environment variables
@DonghoonPark12
DonghoonPark12 / .bashrc
Last active October 3, 2018 12:39
.bashrc
alias eb='subl ~/.bashrc'
alias sb='source ~/.bashrc'
alias gs='git status'
alias gp='git pull'
alias at='source activate tf' #tensorflow python3.6
alias at2='source activate tf2' #tensorflow python2.7
alias dt='source deactivate tf || source deactivate tf2'
alias cw='cd ~/catkin_ws'
alias cs='cd ~/catkin_ws/src'
alias cm='cd ~/catkin_ws && sudo catkin_make'