Office 2019 정품인증 스크립트 2가지
Office 2019 정품인증 스크립트 2가지 더 읽기"
<?php /* URL파일에서 불필요한 라인을 삭제한다. 사용방법: php url_remove_superfluous_info.php "D:\settings\config\favorites\10_my favorites\netflix.url" */ $fp = fopen($argv[1], "r") or die($argv[1] . "Unable to open file! (read)"); $ii = 0; while (!feof($fp)) { $oneline = fgets($fp); $read_str[$ii] = str_replace(array( "\n", "\t", "\r" ) , '', $oneline); $ii++; } fclose($fp); echo $argv[1] . "\n"; $fp = fopen($argv[1], "w") or
<?php // php.ini에서 phar.readonly = Off 로 설정 후 사용 try { $pharFile = ‘countrycurrency.phar’; // clean up if (file_exists($pharFile)) { unlink($pharFile); } if (file_exists($pharFile . ‘.gz’)) { unlink($pharFile . ‘.gz’); } // create phar $phar = new Phar($pharFile); // start buffering. Mandatory to modify stub to add shebang $phar->startBuffering(); // Create the default stub
# 특정 Database 백업 mysqldump –single-transaction –routines –triggers -u root -p<root 비밀번호> <DATABASE명> > backup_database.sql # 모든 Database 백업 mysqldump –single-transaction –routines –triggers –all-databases -u root -p<root 비밀번호> > backup_database.sql
[MySQL] mysqldump를 사용한 Database 백업 더 읽기"
■diff로 patch 파일 만들기/opt/src.orig와 /opt/src 두 디렉토리를 비교하여 변경 부분을 patch 파일 형태로 출력한다.diff -Naur /opt/src.orig /opt/src > src.patch/opt/src.orig와 /opt/src 두 디렉토리를 비교하여 변경된 파일들만 체크 한다.diff -qr /opt/src.orig /opt/src > src.patch■diff-q: 두 파일이 다를 경우에만 알려준다.-u: unified 출력 형식을 사용한다.-q: 두 파일의 자세한 차이점이 비교하는 것이 아니라, 단순히 두 파일이 다른지만 알려준다.-N, –new-file: 디렉토리
■IPv6 활성화 여부 확인 방법ip addr show | grep inet6 ■CentOS 7vi /etc/default/grub GRUB_CMDLINE_LINUX=”rhgb quiet”를 아래와 같이 수정한다.GRUB_CMDLINE_LINUX=”rhgb quiet ipv6.disable=1″ grub2-mkconfig -o /boot/grub2/grub.cfg ■Ubuntu 20.04.xxvi /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT=”maybe-ubiquity”를 아래와 같이 수정한다.GRUB_CMDLINE_LINUX_DEFAULT=”maybe-ubiquity ipv6.disable=1″ update-grub
htpasswd -c /var/www/.htpasswd guest1 .htaccess AuthName “login”AuthType BasicAuthUserFile /var/www/.htpasswdrequire valid-user
1. Windows NT 추가REG ADD HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon /v LegalNoticeCaption /f /t REG_SZ /d “WARNING!!”REG ADD HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon /v LegalNoticeText /f /t REG_SZ /d “Authorized users only. All activity may be monitored and reported.” 삭제REG DELETE HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon /v LegalNoticeCaption /fREG DELETE HKLM\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon /v LegalNoticeText /f 2. 윈도우 서버 secpol.msc 보안 설정 > 로컬 정책 > 보안 옵션 대화형
https://github.com/ImageMagick/ImageMagick ■파일포맷변경convert image_org.gif image_out.jpg[설명] image_org.gif 이미지를 image_out.jpg로 바꾼다. convert image_org.png image_out.jpg[설명] image_org.png 이미지를 image_out.jpg로 바꾼다. ■윈도우즈 명령행 프롬프트에서 간단하게 와일드카드 적용FOR %A IN (*.svg) DO ( convert -antialias -background transparent -density 600 -resize 640x %A %~nA.png ) ■확대,축소,리사이즈convert image_org.jpg -resize 25%x25% -quality 100 image_out.jpg[설명] image_org.jpg 이미지를 1/4 축소한 image_out.jpg로 바꾼다. convert image_org.jpg -resize 800×600 -quality
■Linuxether-wake -i enp2s0 f4:30:b9:9b:4c:5a (HP ar505wm) ■OpenWRTNetwork Interface to use: br-lanHost-to wake up: E4:11:5B:43:B7:53 (PROBOOK_4330S.LAN)