๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
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.
728x90