Skip to content

Instantly share code, notes, and snippets.

@onmoving
onmoving / postgresql logging query
Created July 16, 2012 07:20
postgresql: logging query 쿼리 로깅
enable logging using pgadmin tool
menu: tools --> server configuration --> postgresql.conf
- enable below 3 item
1. log_directory
2. log_filename
3. log_statement = mod
after that, reload configuration
log location :
@onmoving
onmoving / python
Created July 20, 2012 02:00
python 정리
####pdb attach debugger 디버거 활성화
import pdb; pdb.set_trace()
####print traceback 출력
try:
...
except:
import traceback
@onmoving
onmoving / _using_git.md
Last active January 20, 2022 10:18
git: command summary git 명령 정리
@onmoving
onmoving / ubuntu_install_jdk7.md
Created October 4, 2012 01:01
[Ubuntu] 우분투 12.04에서 SUN-JDK7 설치

우분투 12.04에서 SUN-JDK7 설치

우분투 12.04에서는 java가 기본적으로 설치되어 있지 않다. apt-get으로 설치되는 jdk는 open-jdk라는 것으로 오라클에서 배포하는 jdk가 아니다.

1 오라클 사이트에서 jdk를 다운로드 받는다.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

2 압축을 풀고 /usr/lib/jvm 으로 옮긴다.

@onmoving
onmoving / nodejs_supervisor.md
Created October 5, 2012 07:56
[node.js]Supervisor

Supervisor를 활용한 생산성 향상

참고 url: Node.js 개발 생산성을 높이기 위한 도구 "Supervisor"(http://inspiredjw.tistory.com/?page=8), InspiredJW

$ sudo npm install supervisor -g
...
/usr/local/bin/node-supervisor -> /usr/local/lib/node_modules/supervisor/lib/cli-wrapper.js

/usr/local/bin/supervisor -> /usr/local/lib/node_modules/supervisor/lib/cli-wrapper.js

@onmoving
onmoving / tcpdump_http_capture
Created October 7, 2012 00:54
[tcpdump] how to capture http traffic using tcpdump
sudo tcpdump -A -i lo port 3000
-i: specify device ex: eth0, wlan0, lo
lo: loopback
-A: print in ASCII
-X: print in hex and ASCII

#bash 사용하기

###목차