![[파워쉘]텔레그램 푸시](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FoNlOk%2FbtrCiaE7hdy%2FAAAAAAAAAAAAAAAAAAAAAPMolZN_rdjVnnTNyVkmheSNRPCEfgY_EbiYJPelri9R%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3D8UVrt3CqDw0mgL2x%252BQdGmyRNofM%253D)
아래 내용 test.ps1로 저장 $token = "#########################" $chatId = "################" $message = $args Invoke-RestMethod -Uri "https://api.telegram.org/bot$token/sendMessage?text=$message&chat_id=$chatId" 실행 powershell -executionpolicy bypass test.ps1 테스트~~~
설치환경 : centos7 파이썬3.6설치 [daraksharavim.tistory.com]$ yum -y install https://centos7.iuscommunity.org/ius-release.rpm [daraksharavim.tistory.com]$ yum -y install python36u python36u-libs python36u-devel python36u-pip [daraksharavim.tistory.com]$ ln -s /bin/python3.6 /bin/python3 [daraksharavim.tistory.com]$ ln -s /bin/pip3.6 /bin/pip [daraksharavim.tistory.com]$ pip install --upgrade pip [daraksh..
![[PHP]mysql 접속 에러](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2Fc0MHK6%2Fbtq85gmgfUE%2FAAAAAAAAAAAAAAAAAAAAAJnwD4AEajCL0t9tsLdPXfVSL-25P6G_3SJ-L3ee6bD5%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DQUMDRM%252B3zb8iS51t%252BApLwp0hXIA%253D)
PHP Warning: mysql_connect(): mysqlnd cannot connect to MySQL 4.1+ using the old insecure authentication. Please use an administration tool to reset your password with the command SET PASSWORD = PASSWORD('your_existing_password'). This will store a new, and more secure, hash value in mysql.user. 위와 같이 오류가 발생할 경우는 php버전과 mysql버전에서 사용하는 password 암호화 방식이 다르기때문에 발생된 에러입니다. 해결방법은 아래와 같습니다. mysql> sel..
![[파워쉘]파일 마지막 쓰기한 날짜변경](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FJXDaR%2FbtrCiva7dlh%2FAAAAAAAAAAAAAAAAAAAAAAtWTlDMHR6-Y730nTdCwVYSyRq1lhuofSPezfoUP1Lj%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3Dstkbd6bz3qLQYmFx48AGR%252BgtrTk%253D)
# 변경할 날짜지정 $d = Get-Date "02/09/2013 4:59 PM" # 변경할 파일 대상 지정 $f = Get-Item "C:\test\test.txt" # 변경할 파일에 변경할 날짜 적용 $f.LastWriteTime = $d 출처 : http://stackoverflow.com/questions/21630424/modifying-lastwritetime-directory-in-powershell