Posted
Filed under 프로그래밍
1. Storege 에서 Add로 하나 추가

2. fdisk -l 로 추가된거 확인

3. fdisk /dev/xvdb(추가된 스토리지 위치)

4. Command 에서 p -> n -> 모두 앤터 -> w

5. mkfs.ext4 /dev/xvdb1(fdisk로 생성한 스토리지 위치)

6. mount /dev/xvdb1 /data 


2014/06/09 19:06 2014/06/09 19:06
Posted
Filed under 장난감
2014/06/05 18:53 2014/06/05 18:53
Posted
Filed under 프로그래밍
Window -> Preferences -> Team -> Git

Remote Connection timeout(seconds) 

시간 늘려주면된다.

2014/05/28 11:28 2014/05/28 11:28
Posted
Filed under 프로그래밍

config/environments/production.rb

config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true

config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'gmail.com',
  :user_name            => 'account@gmail.com',
  :password             => 'password',
  :authentication       =>  :plain,
  :enable_starttls_auto => true
}
…


config/gitlab.yml

# Gitlab application config file
# Email used for notification
# about new issues, comments
email:
 from: account@gmail.com
  …
2014/05/28 11:06 2014/05/28 11:06
Posted
Filed under 프로그래밍
CENTOS 기준으로...

ifconfig lo:0 L4장비IP netmask 255.255.255.255 up

/etc/rc.local 에 재부팅할때도 항상 올라오게 해야함..
sudo ifconfig lo:0 L4장비IP netmask 255.255.255.255 up



2014/05/23 19:49 2014/05/23 19:49
Posted
Filed under 프로그래밍
git config --global http.postBuffer 524288000
2014/05/02 16:28 2014/05/02 16:28
Posted
Filed under 프로그래밍/PHP

class Timer {

 var $classname = "Timer";
 var $start     = 0;
 var $stop      = 0;
 var $elapsed   = 0;

 # Constructor
 function Timer( $start = true ) {
  if ( $start )
   $this->start();
 }

 # Start counting time
 function start() {
 $this->start = $this->_gettime();
 }

 # Stop counting time
 function stop() {
 $this->stop    = $this->_gettime();
 $this->elapsed = $this->_compute();
 }

 # Get Elapsed Time
 function elapsed() {
 if ( !$elapsed )
 $this->stop();

  return $this->elapsed;
 }

 # Get Elapsed Time
 function reset() {
 $this->start   = 0;
 $this->stop    = 0;
 $this->elapsed = 0;
 }

 #### PRIVATE METHODS ####

 # Get Current Time
 function _gettime() {
 $mtime = microtime();
 $mtime = explode( " ", $mtime );
 return $mtime[1] + $mtime[0];
 }

 # Compute elapsed time
 function _compute() {
 return $this->stop - $this->start;
 }
 
}

$t=new Timer();

2014/04/07 10:49 2014/04/07 10:49