목록전체 글 (196)
개발 공부
-- 사용중인 table space 확인 SELECT * FROM DBA_TABLESPACES ; -- 특정 유저 table space 확인 SELECT tablespace_name FROM all_tables WHERE OWNER LIKE 'EDU'||'%'; -- users -- 스키마 소유주 생성 CREATE USER schema_owner IDENTIFIED BY password DEFAULT TABLESPACE users TEMPORARY TABLESPACE temp QUOTA UNLIMITED ON users; -- 소유주 권한 부여 GRANT CONNECT, CREATE TABLE TO schema_owner; -- GRANT CONNECT, RESOURCE TABLE TO schema_ow..
creat user 시 아래 오류 발생 create user userName identified by !!pwd -- SQL Error [922] [42000]: ORA-00922: 누락된 또는 부적합한 옵션 오라클 password 정책 확인 o Passwords must be from 1 to 30 characters long. o Passwords cannot contain quotation marks. o Passwords are not case sensitive. o A Password must begin with an alphabetic character. o Passwords can contain only alphanumeric characters and the underscore (_), d..
본인 IP 확인 $ ifconfig target ip 방화벽 확인 $ telnet ip port 방화벽 등록 확인 : iptables -nL {-line-numbers} 삽입 : iptables -I INPUT 1 -s 111.111.111.111 -p tcp –dport 2000 -j ACCEPT 삽입 : iptables -I chain-incoming-ssh 1 -s 192.168.1.140 -j ACCEPT 삽입 : iptables -I IN_public_allow 1 -s 0.0.0.0/0 -p tcp --dport 8888 -m conntrack --ctstate NEW,UNTRACKED -j ACCEPT 초기화(?) :firewall-cmd --reload [centOS8 ↑] firewall..
리눅스 파일에 상태비트 중 immutable bit (변경 불가) 가 설정되어 있으면 chmod 변경이 불가능하다. attr 확인 $ lsattr fileName.file ----i--------e-- fileName.file immutable bit 제거 #파일 하나 $ chattr -i fileName.file #특정 형식 전체 $ find . -iname "*.php" | xargs chattr -i

- 가끔 로컬 bash 에서 remote에게 push 나 기타 요청을 하면 아래 오류가 뜬다. remote: Repository not found. fatal: repository 'https://github.com/MyRepo/project.git/' not found - 이는 주로 해당 저장소에 접근권한이 없어서 그런 것으로 os에 등록되어있는 credential을 모두 삭제해주고 진행하면 된다. 맥 환경 Keychain Access 에서 github.com 의 비밀번호 삭제 윈도우 환경 자격증명관리자( Credential Manager) 에서 'windows 자격 증명' 삭제 1. [윈도우키] 누르고 [자격 증명 관리자] 검색 2. windows 자격 증명 클릭 3. 일반 자격증명 아래 git: 으..

- 아래 작성한 내용을 포스팅하려고 보니 github settings 에서 브랜치 이름을 바꾸는 기능을 추가해서 제공해주는 것 같다. - 주의할 점으로는 아래 local에서 부터 변경하는 것과 반대로 멤버들이 직접 local 환경의 branch 명을 수정해 주어야한다. 로컬 브랜치명 수정 $ git branch -m develop $ git fetch origin $ git branch -u origin/ ------------------------------------------------------------------------------------------------------- (원래 포스팅 하려던 내용 _ 아직 유효한 방법) - github는 문화, 사회적 이유로 default 브랜치 명을 ..
1. Source repository clone $ git clone --mirror [source repo _ https://github.com/계정/repo이름.git] # 또는 # $ git clone --bare [source repo _ https://github.com/계정/repo이름.git] 2. git push to target repository $ cd [source repo이름] $ git push --mirror [target repo _ https://github.com/계정/repo이름.git] 3. 1번에서 clone한 임시 저장소 삭제 (option) $ cd .. $ rm -rf [source repo이름] 참고 : https://hanul-dev.netlify.app/g..
로케일 확인 $ locale $ echo $LANG 전체 profile에 설정 % vi /etc/profile ... #마지막줄에 원하는 인코딩 추가 exprot LANG="ko_KR.UTF-8" 사용자별 profile 설정 $ ~/.bash_profile ... # 맨 마지막 줄에 원하는 인코딩 추가 export LANG="ko_KR.UTF-8" 변경사항 적용 $ source "설정파일"
코딩테스트 연습 - 월간 코드 챌린지 시즌2 - 괄호 회전하기 (약 30분 소요) //특정 입력값 로깅을 위한 변수 var isLogging = false; function solution(s) { var answer = 0; //if(s == "}]()[{"){ //isLogging = true; //console.log("isLogging = "+isLogging); //} for(var i = 0 ; i < s.length ; i++){ if(omit(s)){ //console.log("touched"); answer ++; } var temp = s.charAt(0); //charAt 찾아봄 s = s.slice(1)+temp; //slice 찾아봄 } return answer; } var tem..
코딩테스트 연습-2018 KAKAO BLIND RECRUITMENT-[3차] 파일명 정렬 https://programmers.co.kr/learn/courses/30/lessons/17686 //약 130 소요 var logFlag = false; function solution(files) { //숫자5개인 경우 오류나는 것 아래 테스트로 확인함 //files = ["A-00011 Freedom Fight44er", "A-10 Superfort5ress", "A-10 Thunderbolt6II", "A-10 Tomcat"]; //if(files[0] == 'img12.png'){ logFlag = true; //console.log(logFlag); //} var answer = []; //비교를 위한..