http://learn.iphonedev.tv/directory/


http://www.skillshare.com/classes/ios


http://www.raywenderlich.com/video-tutorials

'document' 카테고리의 다른 글

ktorrent 설치 centos  (0) 2014.04.29
nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

ktorrent 설치 centos

document 2014. 4. 29. 11:22

1. 설치하기.

yum install ktorrent (epel 저장소)


2. remote 설정하기

http://www.maketecheasier.com/remotely-control-ktorrent/







비트토렌트는 다음에서...





'document' 카테고리의 다른 글

ios 개발 동영상 강좌  (0) 2014.06.22
nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

nodejs 기본

document 2014. 4. 10. 09:50

'document' 카테고리의 다른 글

ios 개발 동영상 강좌  (0) 2014.06.22
ktorrent 설치 centos  (0) 2014.04.29
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

'document' 카테고리의 다른 글

ios 개발 동영상 강좌  (0) 2014.06.22
ktorrent 설치 centos  (0) 2014.04.29
nodejs 기본  (0) 2014.04.10
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

http://blog.naver.com/parkjy76?Redirect=Log&logNo=30147484242





출처 : http://dtx.co.jp/archives/321

InnoDB의 핫 백업이 가능한 백업툴로서는 InnoDB Hot Backup가 유명합니다만 무상으로 사용할수 있는 툴에 Percona Xtra Backup가 있습니다.

Percona Xtra Backup의 주요 특징은 아래와 같습니다.
・InnoDB의 핫백업
・백업한 파일을 tar형식으로 압출해 리모트 호스트에 전송
・지정한 테이블만 백업
・차분 백업은 이전의 백업과 머지한다.

이번에 프로젝트의 디비 백업툴로서 인스톨하게 되었습니다.
아래는 인스톨 메모

환경
・CentOS5.5 i386
・mysql5.1


전제조건

mysql_user: mysql
mysql_root_dir: /usr/local/mysql
mysql_data_dir: /usr/local/mysql/var
my.conf: /etc/my.conf
backup_dir: /var/backup

root로 작업
su root cd /usr/local/src wget http://www.percona.com/downloads/XtraBackup/XtraBackup-1.2/Linux/binary/i686/xtrabackup-1.2.tar.gz

환경에 따라 다운로드할 파일을 변경해 주세요. http://www.percona.com/downloads/
tar zxf xtrabackup-1.2.tar.gz
chown -R mysql.mysql xtrabackup-1.2/bin/
cp xtrabackup-1.2/bin/* /usr/local/mysql/bin

mysql/bin디렉토리에 복사
cp /usr/local/mysql/bin/innobackupex-1.5.1 /usr/local/mysql/bin/innobackupex

vi /etc/my.cnf
[mysqld]에
datadir=/usr/local/mysql/var
를 추가

백업 디렉토리 작성
mkdir -p /var/backup

백업 실행
/usr/local/mysql/bin/innobackupex-1.5.1 --user={mysql_user_name} --password={mysql_user_password} /var/backup

백업은 /var/backup/{backup_date}에 작성됩니다.


리스토어 방법

mysql정지

/etc/init.d/mysql stop

data_dir의 대피
cd /usr/local/mysql mv var var.bk


리스토어 실행

/usr/local/mysql/bin/innobackupex-1.5.1 --user={mysql_user_name} --password={mysql_user_password} --copy-back /var/backup/{backup_date}/


소유자 변경

chown -R mysql.mysql /usr/local/mysql/var


mysql기동

/etc/init.d/mysql start

'document' 카테고리의 다른 글

ios 개발 동영상 강좌  (0) 2014.06.22
ktorrent 설치 centos  (0) 2014.04.29
nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

여러가지 설치

document 2012. 9. 12. 19:10

php53

yum install php53 php53-common php53-devel php53-gd php53-mbstring php53-mysql php53-xml php53-xmlrpc



mysql55

rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

yum install libmysqlclient15 mysql55 mysql55-server  --enablerepo=webtatic




'document' 카테고리의 다른 글

ios 개발 동영상 강좌  (0) 2014.06.22
ktorrent 설치 centos  (0) 2014.04.29
nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
Posted by altvirus
,

nginx 설치

document 2012. 9. 12. 19:07

yum install gcc gcc-c++ make autoconf wget libxml2-devel perl perl-devel perl-ExtUtils-* pcre-devel openssl-devel zlib library cpan

wget http://nginx.org/download/nginx-1.0.12.tar.gz

tar xvzf nginx-1.0.12.tar.gz

./configure --user=nobody --group=nobody --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/log/run/nginx.pid --lock-path=/var/log/lock/subsys/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail_ssl_module --with-http_mp4_module --with-mail

make

make install


vi /etc/init.d/nginx




============

#!/bin/sh

#

# nginx - this script starts and stops the nginx daemon

#

# chkconfig:   - 85 15

# description:  Nginx is an HTTP(S) server, HTTP(S) reverse \

#               proxy and IMAP/POP3 proxy server

# processname: nginx

# config:      /etc/nginx/nginx.conf

# config:      /etc/sysconfig/nginx

# pidfile:     /var/run/nginx.pid


# Source function library.

. /etc/rc.d/init.d/functions


# Source networking configuration.

. /etc/sysconfig/network


# Check that networking is up.

[ "$NETWORKING" = "no" ] && exit 0


nginx="/usr/sbin/nginx"

prog=$(basename $nginx)


NGINX_CONF_FILE="/etc/nginx/nginx.conf"


[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx


lockfile=/var/lock/subsys/nginx


start() {

    [ -x $nginx ] || exit 5

    [ -f $NGINX_CONF_FILE ] || exit 6

    echo -n $"Starting $prog: "

    daemon $nginx -c $NGINX_CONF_FILE

    retval=$?

    echo

    [ $retval -eq 0 ] && touch $lockfile

    return $retval

}


stop() {

    echo -n $"Stopping $prog: "

    killproc $prog

    retval=$?

    echo

    [ $retval -eq 0 ] && rm -f $lockfile

    return $retval

}


restart() {

    configtest_q || configtest || return 6

    stop

    start

}

reload() {

    configtest_q || configtest || return 6

    echo -n $"Reloading $prog: "

    killproc $nginx -HUP

    echo

}

configtest() {

    $nginx -t -c $NGINX_CONF_FILE

}


configtest_q() {

    configtest >/dev/null 2>&1

}


rh_status() {

    status $prog

}


rh_status_q() {

    rh_status >/dev/null 2>&1

}


# Upgrade the binary with no downtime.

upgrade() {

    local pidfile="/var/run/${prog}.pid"

    local oldbin_pidfile="${pidfile}.oldbin"


    configtest_q || configtest || return 6

    echo -n $"Staring new master $prog: "

    killproc $nginx -USR2

    retval=$?

    echo

    sleep 1

    if [[ -f ${oldbin_pidfile} && -f ${pidfile} ]];  then

        echo -n $"Graceful shutdown of old $prog: "

        killproc -p ${oldbin_pidfile} -QUIT

        retval=$?

        echo

        return 0

    else

        echo $"Something bad happened, manual intervention required, maybe restart?"

        return 1

    fi

}


case "$1" in

    start)

        rh_status_q && exit 0

        $1

        ;;

    stop)

        rh_status_q || exit 0

        $1

        ;;

    restart|configtest)

        $1

        ;;

    force-reload|upgrade)

        rh_status_q || exit 7

        upgrade

        ;;

    reload)

        rh_status_q || exit 7

        $1

        ;;

    status|status_q)

        rh_$1

     ;;

    condrestart|try-restart)

        rh_status_q || exit 7

        restart

            ;;

    *)

        echo $"Usage: $0 {start|stop|reload|configtest|status|force-reload|upgrade|restart}"

        exit 2

esac 

============



chmod 100 /etc/init.d/nginx

/etc/init.d/nginx start

'document' 카테고리의 다른 글

ktorrent 설치 centos  (0) 2014.04.29
nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Posted by altvirus
,

- 현재 디렉토리 내 확장자가 txt인 파일들을 중에서 "홍길동"이라는 문자열을 갖고 있는 파일의 한 줄과 이름을 보여준다.

find . -name "*.txt" | xargs grep 홍길동


- 이 때 검색어로 사용된 문자열은 색을 달리하여 표시하고 싶다면

find . -name "*.txt" | xargs grep --color=auto 홍길동


 - 검색어의 위치(줄번호)를 같이 표기하고 싶다면


find . -name "*.txt" | xargs grep -n 홍길동


- 대소문자를 구분하고 싶지 않다면

find . -name "*.txt" | xargs grep -i LgMobile

즉, LGMobile, LGMOBILE, lgMobile을 가리지 않고 찾는다.


- 현재 디렉토리 내 확장자가 txt인 파일들을 중에서 "홍길동"이라는 문자열을 갖고 있는 파일의 이름만 보고 싶다면

find . -name "*.txt" | xargs grep -l 홍길동


- 검색 결과에 다음과 같은 메시지가 포함된다면

grep: [특정경로]: No such file or directory


2>/dev/null 을 추가하면 해당 메시지를 표시하지 않고 찾은 결과만 볼 수 있다. 즉,

find . | xargs grep 2>/dev/null 홍길동


- 모든 옵션은 함께 사용 가능하다.

find . -name "*.txt" | xargs grep --color=auto -n 2>/dev/null 홍길동

'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
mp4 변환 ffmpeg  (2) 2012.08.21
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Smooth Streaming Module for Apache  (0) 2011.11.23
Posted by altvirus
,

mp4 변환 ffmpeg

document 2012. 8. 21. 15:59

"C:\Program Files\Sgi's Video Converter GUI\ffmpeg.exe" -y -i  "C:\c\4.asf"   -threads 2 -vcodec libx264  -f mp4   -r 25 -b 512kb -bufsize 2048k -acodec libfaac -ac 2 -ab 128kb -ar 44100 "C:\c\4.mp4"



ffmpeg -y -i "http://www.coens.net/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4" -acodec libvo_aacenc -b:a 160k -s 1920x1080 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -level:v 30 -b:v 6075k -threads 1 "/home/cine21/coens/wp-content/uploads/2014/05/sample-video-h264-fullres.mp4"



ffmpeg -y -i "http://www.coens.net/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4" -acodec libvo_aacenc -b:a 160k -s 1920x1080 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -level:v 30 -b:v 6075k -threads 1 "/home/cine21/coens/wp-content/uploads/2014/05/sample-video-h264-1080.mp4"


ffmpeg -y -i "http://www.coens.net/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4" -acodec libvo_aacenc -b:a 160k -s 1280x720 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -level:v 30 -b:v 2700k -threads 1 "/home/cine21/coens/wp-content/uploads/2014/05/sample-video-h264-720.mp4"


ffmpeg -y -i "http://www.coens.net/wp-content/plugins/video-embed-thumbnail-generator/images/sample-video-h264.mp4" -acodec libvo_aacenc -b:a 160k -s 640x360 -vcodec libx264 -profile:v baseline -pix_fmt yuv420p -level:v 30 -b:v 675k -threads 1 "/home/cine21/coens/wp-content/uploads/2014/05/sample-video-h264-480.mp4"

'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
이미지 업로드  (2) 2012.03.13
mysql root 설정  (0) 2012.03.10
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Smooth Streaming Module for Apache  (0) 2011.11.23
Posted by altvirus
,

이미지 업로드

document 2012. 3. 13. 00:43
imageshack 
    <form action="http://imageshack.us/redirect_api.php" method="post" enctype="multipart/form-data">
      <input type="file" name="media"/>
      <input type="hidden" name="key" value="467DKQRXe7d220b4ff5826d19f2ee26f430710ec">
      <input type="hidden" name="error_url" value="http://cine21.com/error.php">
      <input type="hidden" name="success_url" value="http://blog0.cafe24.com/p.php?one=%y&two=%u&three=%s&four=%b&five=%i">
      <input type="submit"/>
    </form>


====================
 <form action="http://api.imgur.com/2/upload.xml" method="post" enctype="multipart/form-data">
      <input type="file" name="image"/>
      <input type="hidden" name="key" value="6073eb1a85063fede9460e13e83d514b">
      <input type="submit"/>
</form>

'document' 카테고리의 다른 글

nodejs 기본  (0) 2014.04.10
Getting started with Neo4J on Windows  (0) 2014.03.19
Percona Xtrabackup을 사용해 핫 백업/리스토어 하기  (1) 2013.08.13
여러가지 설치  (2) 2012.09.12
nginx 설치  (0) 2012.09.12
[리눅스] 파일 내 문자열 검색  (1) 2012.08.25
mp4 변환 ffmpeg  (2) 2012.08.21
mysql root 설정  (0) 2012.03.10
드롭박스 리눅스에 데몬으로 설치한 사용하기  (0) 2011.12.31
Smooth Streaming Module for Apache  (0) 2011.11.23
Posted by altvirus
,