IT 인터넷34 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. 모바일웹 기본 css 모바일웹 개발 시 자주 사용되는 CSS @charset "utf-8"; html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, can.. 2015. 10. 7. 이전 1 2 3 4 5 6 다음