728x90 분류 전체보기720 Jekyll - 빠른 시작, Docs https://jekyllrb-ko.github.io/docs/ Quickstart Jekyll is a static site generator. It takes text written in your favorite markup language and uses layouts to create a static website. You can tweak the site’s look and feel, URLs, the data displayed on the page, and more. jekyllrb.com 2023. 3. 3. 자바스크립트 - SMS 문자 보내기 SMS보내기 location.href = sms:수신자번호?body=보낼메세지; 출처: https://ttowa.tistory.com/m/entry/JS-%EC%9B%B9Mobile%EC%97%90%EC%84%9C-SMS-%EB%AC%B8%EC%9E%90%EB%B3%B4%EB%82%B4%EA%B8%B0 [JS] 웹(Mobile)에서 SMS 문자보내기 1.Android(안드로이드) SMS보내기 location.href = sms:수신자번호?body=보낼메세지; 2.IOS(아이폰) SMS보내기 location.href = sms:수신자번호&body=보낼메세지; 3.Android & IOS 자동 분기 실제 디바이스에서 테스트 해 ttowa.tistory.com 2023. 3. 2. Jekyll - 테마 사이트 모음 http://jekyllthemes.org/ Jekyll Themes jekyllthemes.org jamstackthemes.dev Jekyll Over 1000 themes and starters for Jamstack and static site generators. jamstackthemes.dev jekyllthemes.io Jekyll Themes – a curated directory Find the best Jekyll themes for your next project – a curated directory of themes, templates and resources for building Jekyll websites. jekyllthemes.io 출처: https://jekyllrb-.. 2023. 3. 2. 셀레니움 - 이미지(img) 다운로드 (No urllib.urlretrieve) URL 요청 방식인 urllib.urlretrieve은 src 주소로 요청을 하는 방식이기 때문에 캡챠(자동등록방지 문자)처럼 매번 요청할 때마다 이미지가 바뀌는 경우가 있어 무용지물이 된다. 그러므로 이미 브라우저에 로드가 된 이미지를 가져오는 방법을 사용해야 한다. 방법 1. screenshot_as_png 사용 (추천) from selenium import webdriver driver = webdriver.Firefox() driver.get('https://www.webpagetest.org/') with open('filename.png', 'wb') as file: file.write(driver.find_element_by_xpath('/html/body/div[1]/div[5]/div[2.. 2023. 2. 28. 리눅스 - 파일 체크섬(checksum) 확인 명령어(sha256sum) 명령어 echo "[해시] [파일이름]" | sha256sum --check - 사용 예시 echo "c409c819eed60985273e94e575fd5dfd8dd34baef3764fc7356b0f23e25a372c protonvpn-stable-release_1.0.3_all.deb" | sha256sum --check - 2023. 2. 27. 리눅스 - 라즈베리파이 프록시 서버 설치하기(Privoxy) Privoxy 설치 sudo apt install privoxy -y 설정 파일 수정 sudo nano /etc/privoxy/config listen-address :8118 위와 같이 수정해 준다. Privoxy 재시작 sudo systemctl restart privoxy 참고: https://www.howtogeek.com/683971/how-to-use-a-raspberry-pi-as-a-proxy-server-with-privoxy/ How to Use a Raspberry Pi as a Proxy Server (with Privoxy) A Raspberry Pi proxy server allows you to control the websites people can visit. It can .. 2023. 2. 26. 윈도우 - HDD 초기화 , USB 용량 복구하기(diskpart) 1. diskpart라고 입력한다 2. list disk 라고 입력하고 USB 메모리 용량과 비슷한 것의 디스크 번호를 기억해 두세요. 3. select disk 디스크번호 를 입력한다 4. clean 을 입력한다 5. create partition primary를 입력한다 6. format fs=ntfs quick 을 입력한다 7. exit 를 입력한다 출처: https://blog.naver.com/devlog_/221619228538 2023. 2. 26. 음악 - 유튜브 영상을 기타 코드로 변환하는 사이트 https://chordify.net/ Instant chords for any song - Chordify Chordify turns any music or song (YouTube, Deezer, SoundCloud, MP3) into chords. Play along with guitar, ukulele, or piano with interactive chords and diagrams. chordify.net 2023. 2. 24. MySQL - 사용자 권한 부여(grant), 취소(revoke) 모든 권한(SELECT, INSERT, UPDATE, DELETE 등) 부여 (GRANT 권한 ON 데이터베이스.테이블 TO 유저@호스트) GRANT all privileges ON db_name.* TO username@localhost identified by '비밀번호'; GRANT all privileges ON db_name.* TO username@localhost identified by '비밀번호' WITH GRANT OPTION; username에게 db_name이라는 데이터베이스에 모든 테이블에 대한 권한을 부여 localhost : 로컬 호스트에서 접속 % : 외부 호스트에서 접속 WITH GRANT OPTION : 사용자가 부여받은 권한을 다른 사용자에게 또다시 부여할 수 있는 권한.. 2023. 2. 24. MySQL - 외부 접속 허용하기 외부 접속 가능한 계정 생성 참고 https://janger.tistory.com/512 bind-address = 127.0.0.1 주석 처리 sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf 출처: https://funarock.tistory.com/909 ERROR 2003 (HY000): Can't connect to MySQL server on '' (111) 해결 방법 ERROR 2003 (HY000): Can't connect to MySQL server on '' (113) 해결 방법 문제의 에러ERROR 2003 (HY000): Can't connect to MySQL server on 'x.x.x.x' (111) 1. bind-address 주석 및 값 변경하.. 2023. 2. 24. PHP - IP 상관없이 세션 기반으로 로그인 중복 방지 1. 사용자의 테이블에 session 컬럼을 추가한다. 2. 사용자가 로그인에 성공하면 session_id()을 session에다 추가한다. $session_id = session_id(); $sql = "UPDATE members SET session = '$session_id' WHERE username = '$username'"; 3. 헤더에서 매번 현재 사용자의 세션과 비교를 해서 만약 다르면 로그아웃 처리를 하게 한다. $session_id = session_id(); $sql_ = "SELECT * FROM members WHERE session = '$session_id' AND username = '$username'"; $result = mysqli_query($conn, $sql_); .. 2023. 2. 18. PHP - shell_exec 함수 한글 경로 or 한글 인자가 깨지는 경우 urlencode() 사용 $arg = urlencode($arg); $data = shell_exec('python3 app.py ' . $arg); 출처: https://zxchsr.tistory.com/72 [PHP] 문자 인코딩 변환 iconv() / urlencode() ■ PHP 한글 깨짐 문자 인코딩 변환 ● iconv ( string $from_encoding , string $to_encoding , string $string ) ● urlencode(string $string) zxchsr.tistory.com 2023. 2. 18. 이전 1 ··· 20 21 22 23 24 25 26 ··· 60 다음 728x90