본문 바로가기

백엔드기술/개발환경33

github 윈도우에서 ssh 설정하기 윈도우 콘솔에서 git 명령을 날리니 매번 아이디와 패스워드를 물어보기에찾아보고 해결방법을 정리함 1. git bash 실행 2. SSH Key 확인 - (있으면 3번 패스)$ ls -al ~/.ssh 3. SSH Key 생성$ ssh-keygen -t rsa -c "minho@daumcorp.com" 4. ssh-agent 실행$ eval `ssh-agent -s` 5. ssh 추가$ ssh-add 6. ssh 키 등록~/.ssh/id_rsa.pub 파일 내용을 github에 추가Add SSH key 참고사이트- https://help.github.com/articles/generating-ssh-keys- http://stackoverflow.com/questions/17846529/could-not.. 2014. 9. 16.
Postgresql 유용한 함수 1. string_agg문자열을 붙여준다. data Daum 클라우드 이용안내.odt Daum 클라우드 이용안내.hwp Daum 클라우드 이용안내.doc SELECT string_agg(filename, ' ')FROM MAPPING WHERE DISKID = 'abc' result Daum 클라우드 이용안내.odt Daum 클라우드 이용안내.hwp Daum 클라우드 이용안내.doc 2. coalescenull체크 SELECT coalesce(filename, '')FROM MAPPING WHERE DISKID = 'abc' 3. to_tsvector형태소 분석 SELECT to_tsvector(filename)FROM MAPPING WHERE DISKID = 'abc' result 'daum':1 'o.. 2014. 9. 4.
STS.ini 백업 -startupplugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326-productorg.springsource.sts.ide--launcher.defaultActionopenFile--launcher.XXMaxPermSize256M-vmargs-Dfile.encoding=utf-8-Dclient.encoding.override=utf-8-Dosgi.requiredJavaVersion=1.6-Xms512m-Xmx2048m-XX:MaxPermSize=2048m-Dorg.eclipse.. 2014. 8. 29.
.gitignore # Copyright: Benjamin Weiss (keyboardsurfer) https://github.com/keyboardsurfer# Under CC-BY-SA V3.0 (https://creativecommons.org/licenses/by-sa/3.0/legalcode) # built application files*.apk*.ap_*.jar # lint folderlint # files for the dex VM*.dex # Java class files*.class # generated filesbin/gen/classes/gen-external-apklibs/ # maven output foldertarget # Local configuration file (sdk path, etc)l.. 2014. 2. 24.
리눅스 서버 구축하기 - 두번째 리눅스를 설치하면 python이 이미 설치가 되어있는데 이것은 최신버젼으로 대체하려고 하니 이미 의존성이 많아서그냥 기본 설치된 버젼으로 사용하기로 함 파이썬 django 설치pip설치 후 pip로 django 최신버젼 설치sudo apt-get install python-setuptoolssudo apt-get install python-pipsudo pip install django psycopg2 설치postgresql db 접속을 위한 파이썬 라이브러리sudo apt-get install python-psycopg2 참고)윈도우용 psycopg2http://www.stickpeople.com/projects/python/win-psycopg/이곳이 사이트가 내려갔는지 파일을 임시로 여기에 올림 윈.. 2014. 2. 22.
리눅스 서버 구축하기 한글이 깨지면export LANG=en_US.UTF-8 처음에 root 암호설정sudo passwd root 최신상태로 sudo apt-get updatesudo apt-get upgrade vi 설치sudo apt-get install vim ssh설치sudo apt-get install sshsudo /etc/init.d/ssh start ftp설치 sudo apt-get install vsftpd sudo vi /etc/vsftpd.conf anonymous_enable=NO local_enable=YES write_enable=YES sudo /etc/init.d/vsftpd start 열린 포트 확인netstat -ntl make가 되도록 설치gcc설치sudo apt-get install gcc.. 2014. 2. 9.