본문 바로가기

반응형

분류 전체보기

(134)
파이썬으로 네이버 object storage(s3)에 파일 2천개 업로드(파일명 변경후) 하는 방법 우선 boto3를 설치한다. pip install boto3 import boto3 from pathlib import Path import sys service_name = 's3' endpoint_url = 'https://kr.object.ncloudstorage.com' # aws에 업로드할경우 삭제 region_name = 'kr-standard' access_key = '엑세스키' secret_key = '시크릿키' if __name__ == "__main__": s3 = boto3.client(service_name, endpoint_url=endpoint_url, aws_access_key_id=access_key, aws_secret_access_key=secret_key) bucket_..
[TabloTV] 구매후기 케이블 tv를 녹화해 보려고 구매를 했습니다. 무려 해외 직구를... 버뜨~!!!!!! 공중파만 됩니다. ㅠㅠ;;; 케이블TV는 녹화가 안되니... 저처럼 한국에서 구매하시려는 분들은.. 패스하세요~ ㅠㅠ;;
안드로이드 adb 기가지니 앱 실행 adb shell am start -a android.intent.action.MAIN -n com.kt.gigagenie.mobile/.ui.MainActivity adb로 안드로이드 연결시 기가지니 앱을 실행하는 방법입니다.
[ffmpeg] USB Camera를 UDP로 송출하기 usb 카메라를 udp로 송출하여 다른곳에서 볼 수 있게 할 수 있다. 내 아이피가 192.168.100.13일때 239.0.0.2의 1234로 영상을 송출하는 내용이다. ffmpeg -f dshow -i video="USB Camera" -vf scale=1280:720 -vcodec libx264 -tune zerolatency -f mpegts "udp://239.0.0.2:1234?pkt_size=1316&localaddr=192.168.100.13" 장치의 정확한 이름은 ffmpeg -list_devices true -f dshow -i dummy 명령어로 확인 가능하다.
파이썬 ftp로 접속후 한글파일 다운로드 import ftplib import os # ftp 정보 host = 'server' user = 'id' passwd = 'pw' try: # ftp 연결 with ftplib.FTP() as ftp: ftp.connect(host=host,port=21) print(ftp.getwelcome()) # 접속 메세지 출력 ftp.encoding = 'utf-8' ftp.sendcmd('OPTS UTF8 ON') # 이 문구를 넣어줘야 한글 사용이 가능함 s = ftp.login(user=user,passwd=passwd) ftp.cwd('/테스트폴더A') dirlist = ftp.nlst() print(dirlist) ftp.cwd('테스트폴더B') dirlist = ftp.nlst() print(di..
codef.io php로 토큰값 가져오기 $url = "https://oauth.codef.io/oauth/token?grant_type=client_credentials&scope=read"; $clientId = "클라이언트ID"; $clientSecret = "클라이언트시크릿키"; $credentials = base64_encode($clientId.":".$clientSecret); $headers = []; $headers[] = "Authorization: Basic {$credentials}"; $headers[] = 'Content-Type: application/json'; $headers[] = 'Cache-Control: no-cache'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL..
dsm 7에서 cURL이 ftp를 지원하지 않는다. 음.. 버젼업을 하고.. 한참을 삽질한 다음에 알게 되었다 ㅠㅠ;;; 사용할 수 있는 방법은 링크를 참고하세요. Synology DSM 7 and broken FTP support in curl – WebIT Tech Blog Synology DSM 7 and broken FTP support in curl – WebIT Tech Blog I recently updated my DS1517 to DSM 7 and noticed that FTP support has been left out in curl/libcurl they included. This is how I compiled the latest version of curl, including support for all omitted protoc..
Hyper-V 윈도우 7 설치시 인터넷 접속안될때 (vmguest.iso) 네트워크 관련 드라이버를 설치 안해서 그러네요.. 첨부한 Iso파일을 디스크추가해서 설치하면 됩니다. 아.. 윈도우 7의 경우 서비스팩1을 설치하셔야 합니다.

반응형