기본 콘텐츠로 건너뛰기

10월, 2015의 게시물 표시

div popup

<html> <head> <script language='JavaScript'> function setCookie( name, value, expiredays ){ var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' } function closeWin(flag, layer){ var obj  = window.event.srcElement; if ( flag ) { setCookie( layer, 'done' , 1 ); } document.all[layer].style.visibility = 'hidden'; } // 윈도우즈 로딩이 끝난후 window.onload = function(){  cookiedata = document.cookie; var divs   = document.all.tags('DIV'); // DIV 들을 가져옵니다. for(var i=0; i<divs.length; i++){ // DIV 중에 class 가 layer_popup 로 지정된 객체들이면 if(divs[i].className=='layer_popup'){ // 쿠키 내에서 해당하는 div 객체의 ID 값을 가지는 객체를 가져와서 동적으로 비교 if( cookiedata.indexOf(divs[i].id+'=done')...

vagrant --help

box manages boxes: installation, removal, etc. 설치, 제거 등 박스를 관리 connect connect to a remotely shared Vagrant environment 원격 공유 환경에 연결 destroy stops and deletes all traces of the vagrant machine 베이그란트 머신정지후 삭제. global-status    outputs status Vagrant environments for this user 베이그란트 사용자에 대한 상태를 출력 halt stops the vagrant machine 베이그란트 머신을 정지 help shows the help for a subcommand 하위 명령에 대한 도움말 보여줌. init initializes a new Vagrant environment by creating a Vagrantfile Vagrantfile 를 만들어 베이그란트 환경을 초기화 login            log in to HashiCorp's Atlas HashiCorp 의 아틀라스에 로그인 package          packages a running vagrant environment into a box 몰라 plugin           manages ...

CentOS 6.7 + owncloud 8 + apache

CentOS 6.7 + owncloud 8 + apache 서버에 설치 하려고 하다가 조금 시행착오가 있어서 다시 정리함. 일단 epel 은 정상적으로 업데이트가 되어 있어야 함. (php 버전이 5.4 이상이어야 함.) Install php $ yum update $ yum install httpd php php-mysql sqlite php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-gd curl php-curl -y     $ mysql -uroot -p   mysql>CREATE DATABASE owncloud; mysql>GRANT ALL PRIVILEGES ON owncloud.* TO 'owncloud_user'@'localhost' IDENTIFIED BY 'owncloud_user_pasword'; mysql>FLUSH PRIVILEGES;    php Setup $ vim /etc/php.ini default_charset = "UTF-8" post_max_size = 8192M upload_max_filesize =  8192M   Download owncloud $ wget https://download.owncloud.org/community/owncloud-8.2.0.tar.bz2 $ tar -xjf owncloud-8.2.0.tar.bz2 $ mv owncloud /srv/www/php/owncloud/ $ chown -R apache.apache /srv/www/php/owncloud/ owncloud Setup #upload filesize change $ vi .htaccess php_value upload_max_filesize 8192M php_value post_max_siz...

CentOS 6.7 + Mysql 5.6 + rbenv ruby rails + nginx ( + rubymine + vagrant chef )

설치 하다가 빡쳐서 정리함. 내용은 주로 digitalocean + qiita 등에 있는걸로 정리하였음. 일단 내가 사용할 서버에 CentOS 7 USB 가 정상적으로 인스톨 되지 않는 문제로 내키지 않았지만 CentOS 6.7 을 설치함. 그런데 이게 Mysql 5.1 이 yum repo 에 있어서 버전을 올릴 필요가 있었음. 1. setup CentOS $ su $ /usr/sbin/visudo   # User privilege specification root ALL=(ALL) ALL # add user id demo ALL=(ALL) ALL    $ yum install ibus ibus-hangul ibus-anthy     $ rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm $ rpm -Uvh http://mirror.premi.st/epel/6/i386/epel-release-6-8.noarch.rpm $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm         2. install MYSQL   $ rpm -qa | grep mysql   $ sudo yum remove mysql*   $ sudo yum install http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm $ sudo yum install mysql-client mysq...

ubuntu server 15.04 - apt source.list

실수로 날려 먹고 다시 적용 하려고 했는데 검색으로 나오지를 않았다. 그냥 서버에 올라가 있는거 복사해서 블로그에 저장함. (역시 미러는 자이스트가 좋음..;;) # deb cdrom:[Ubuntu 15.04 _Vivid Vervet_ - Release amd64 (20150422)]/ vivid main restricted # See  http://help.ubuntu.com/ community/UpgradeNotes  for how to upgrade to # newer versions of the distribution. deb  http://ftp.jaist.ac.jp/ubuntu/  vivid main restricted deb-src  http://ftp.jaist.ac.jp/ubuntu/  vivid main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb  http://ftp.jaist.ac.jp/ubuntu/  vivid-updates main restricted deb-src  http://ftp.jaist.ac.jp/ubuntu/  vivid-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb  http://ftp.jaist.ac.jp/ubuntu/  vivid universe ...