본문 바로가기

전체 글152

리눅스 쉘스크립트 등등 서버백업용 계정디렉터리별 압축스크립트. 특정폴더(landzz) 제외설정있음. 구문강조는 대충 css 가 젤로 나아보여서 선택함. #!/bin/sh SOURCE_DIR="/hdd/home/" TARGET_DIR="/hdd/_backup2017/" DIRS=`ls -l $SOURCE_DIR | egrep '^d' | awk '{print $9}'` CNT=0 for DIR in $DIRS do CNT=$((CNT+1)) done spinner() { local i sp n #sp='-\|/' sp='-/|\' n=${#sp} printf ' ' while sleep 0.08; do printf "%s\b" "${sp:i++%n:1}" done } counter=0 sizes='' printf "%s\n%s\.. 2020. 6. 22.
간만에 외장하드정리하다가.. 예전백업분보다가 그냥 생각나서 정리해봄.. 2008 중순 ~2011 초순의 흔적... 가나다순으로 빡시게 일했구나..ㅎㅎ 2019. 12. 2.
jquery 폼항목 숫자만 입력받기+숫자콤마찍기 2019-10-24 업데이트 - 이율입력용 num_only3 추가. - document 전역설정으로 input 쪽에 class만 추가하면됨 $(function(){ //일반 num_only : 무조건 숫자만입력되게 $(document).on('keypress', 'input.num_only', function(e){ if(e.which && (e.which 57) ) e.preventDefault(); }); $(document).on('keyup', 'input.num_only', function(e){ if( $(this).val() != null && $(this).val() != '' ) { var tmps = parseInt($(this).val().replace.. 2019. 10. 24.
PG작업시 테스트용 pg관리자 [kcp/inicis] ==============KCP상점관리자 https://testadmin8.kcp.co.kr/ID : test1234PW : test12345 가상계좌 콜백확인http://devadmin.kcp.co.kr/Modules/Noti/TEST_Vcnt_Noti.jsp =====================이니시스 상점관리자 https://iniweb.inicis.com/security/login.doMID: INIpayTestPW: inicis~1111 정기결제 빌링아이디MID: INIBillTstPW: inicis~1111 ============================================= 2019. 1. 29.
php curl, fcm, 소켓통신등 php 원격서버 통신하면서 만들어뒀던 라이브러리 정리. curl 을 이용하지않고 php socket 를 이용한방식은 아래를 참고(php4 호환) http://landzz.com/102?category=93332 curl GET 통신 (일반적인 용도) 그냥 평범한 사용 https://gist.github.com/landzz/9d0c0ce752f792cec433260e8d06608a curl POST 통신 (일반post : form urlencoded ) 그냥평범한 사용 https://gist.github.com/landzz/882ed1a9826928e18a065fa0a532e930 curl POST 파일첨부 (multipart/formdata) https://gist.github.com/landzz/99e.. 2018. 6. 8.