강좌 및 설정/기타 설정

강좌 및 설정/기타 설정 8

ip 주소 확인

현재 사용하고 있는 pc의 ip 주소를 확인하는 방법입니다. ip 주소는 공인ip와 사설ip로 나누어 볼수 있습니다. 요새는 집에서도 여러기기에서 인터넷을 사용하기 때문에 가정에서도 사설ip를 많이 사용합니다. 이때 우리집에 들어온 매인에 해당하는 ip가 공인ip라고 생각하시면 되고요. 공인ip에서 각기기에 할당해준 ip가 사설ip라고 보시면 됩니다. 내 공인IP 주소 확인 방법 1. 네이버 접속 > ip 주소 검색 2. 명령 프롬프트 ( 시작메뉴 > cmd 검색 > 명령프롬프트 실행) nslookup myip.opendns.com. resolver1.opendns.com > enter 하단 Address가 현재 컴퓨터의 공인IP 주소이다. 내 사설IP(로컬 IP, 가상 IP) 주소 확인 방법 명령 프롬..

vscode 단축키 모음

코드정렬 관련 코드 정렬 정렬한 코드 드래그 선택 > ctrl + k + f 들여쓰기, 내여쓰기 ctrl + ], ctrl + [ 행 이동 alt + ↑/↓ 편집관련 행 복사 ctrl + c 선택 복사 드래그 선택 ctrl + c 행 잘라내기 ctrl + x 선택 잘라내기 드래그 선택 ctrl + x 붙여넣기 ctrl + v 행 삭제 ctrl + shift + k 행 삽입 (아래줄) ctrl + enter 행 삽입(윗줄) ctrl + shift + enter 행 주석, 선택 주석 ctrl + / 다중 주석(php,asp 등 다중주석이 가능한 경우) alt + shift + a 멀티 커서 커서 추가 (위, 아래) ctrl + alt + ↑/↓ 같은 문자열 복수 선택 문자열 선택 > ctrl + d 같은 문..

VS CODE 사용자 코드 조각 html:ko 설정

1, 좌측하단 톱니바퀴 선택 2. 사용자 코드 조각 구성을 선택 3. html 입력 후 html.json 선택 { // Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} fo..

ssl 관련

1) 난수생성 (이미생성시 넘어감) openssl sha1 * > rand.dat ------------------------------------------------------------------------------------------------------------------- 2) 개인키 생성 openssl genrsa -rand rand.dat -des3 2048 > domain.key 3) CSR 파일생성 find / -name openssl.cnf -> /etc/pki/tls/openssl.cnf openssl req -config /etc/pki/tls/openssl.cnf -new -key domain.key -out domain.csr 4) 개인키 비번삭제 openssl rsa -..

docx 파일 열기시 zip으로 확장자 변경현상

최신 버젼의 MS 오피스 제품군으로 작업한 docx.pptx 이 두가지 형식의 파일 a 태그 링크로 연결시 클릭하면 서버에서는 docx파일이지만 zip으로 자동으로 바뀌어서 저장될 경우 아파치의 mime.types을 변경해주여야 한다. 아피치 conf 디렉토리 밑에 보면 mime.type을 열어 application/vnd.openxmlformats docx pptx xlsx 를 추가해주고 서버 재가동하면 된다. pptx, xlsx는 확인해 보지 못했다.

alllow_url_fone = Off 설정에 따른 fsockopen 사용함수

//alllow_url_fone = Off 설정에 따른 fsockopen 사용함수 선언부 function url_include( $url ) { $url_parsed = parse_url($url); $host = $url_parsed["host"]; $port = $url_parsed["port"]; $port = $port ==0 ? 80 :$port; $path = $url_parsed["path"]; //if url is http://example.com without final "/" //I was getting a 400 error $path = empty($path) ? "/" : $path; //redirection if url is in wrong format if (empty($host..