CentOS Minimal 설치 후 네트워크 잡기 Installed minimal CentOS 6.4 in VirtualBox but have no internet? # 네트워크 상태 화인 vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0" HWADDR="08:00:27:07:9e:57" NM_CONTROLLED="NO" ONBOOT="YES" BOOTPROTO="dhcp" # 서비스 재시작 service network restart os/Linux 2015.09.15
Node.js SSL Creating an SSL Certificate for Node.js var https = require('https'), fs = require('fs'); var sslOptions = { key: fs.readFileSync('./ssl/server.key'), cert: fs.readFileSync('./ssl/server.crt'), //ca: fs.readFileSync('./ssl/ca.crt'), ca: [fs.readFileSync('./ssl/ca1.crt'), fs.readFileSync('./ssl/ca2.crt')], // 2개 모두 적용 할 경우 requestCert: true, rejectUnauthorized: false }; var secureServer = https.c.. lang/node 2015.09.11
일괄 이미지 변환툴 [Ubuntu] 사진 일괄 편집 도구 - phatch 리눅스에서 사진 크기 일괄적으로 줄이는 방법 - NAUTILUS 확장팩 설치 append 2015.09.29 ImageMagick: convert to keep same name for converted image mogrify Convert 참고 : 2015/08/07 - [OS/Ubuntu] - 리눅스 이미지를 PDF 만들기(내 보내기) convert from.pdf to.png convert -resize '50%' form.png to.png convert -resize '300x300' from.png to.png # 비율유지 convert -resize '300x300!' from.png to.png # 전체 혹은 멀티 convert -re.. os/Ubuntu 2015.09.06
Node Mysql Reconnection nodejs mysql Error: Connection lost The server closed the connection var db_config = { host: 'localhost', user: 'root', password: '', database: 'example' }; var connection; function handleDisconnect() { connection = mysql.createConnection(db_config); // Recreate the connection, since // the old one cannot be reused. connection.connect(function(err) { // The server is either down if(err) { // or .. lang/node 2015.09.04