본문 바로가기

전체 글317

ssh # vi /etc/ssh/sshd_config Port 9999 Protocol 2 PermitRootLogin no ClientAliveInterval 600 2015. 12. 19.
iptables # yum -y install system-config-firewall-tui # vi /etc/sysconfig/iptables # systemctl mask firewalld # systemctl start iptables # systemctl enable iptables.service 2015. 12. 19.
selinux disabled # sestatus # vi /etc/selinux/config SELINUX=enforcing -> SELINUX=disabled # reboot 2015. 12. 19.
yum update # yum -y update 2015. 12. 19.
랜덤 문자열 생성 $arrNo = array("1","2","3","4","5","6","7","8","9","0");$arrAp = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z");$randStr = "";for ($i=0; $i>8; $i++) {    if (rand(0,1) == 0) {        $randStr.= $arrNo[rand(0,(count($arrNo)-1))];    } else {        $randStr.= $arrAp[rand(0,(count($arrAp)-1))];    }}echo $randStr; 2015. 11. 9.
스크롤시 특정 위치 이벤트 처리 $(function() { $(window).scroll(function() { if ($(this).scrollTop() >= Math.ceil($('.target').offset().top)) { } else { } }); }); 2015. 11. 3.