• 돌아가기
  • 아래로
  • 위로
  • 목록
  • 댓글
잡담

chatGPT 코딩 실력

똥쓰똥쓰 496

0

4

아래 Rclone 마운트 스크립트를 좀 튜닝해 달라고 했는데 이렇게 해줬는데

맞는 표현 이겠죠? AI 정말 대단합니다....

 

can you give me fine-tuning of below bash script? 

 

#!/bin/bash

sleep 30

sudo mount --make-shared /volume2

 

#mount GD
sudo rclone mount GD: /volume2/mount/GD --config /root/.config/rclone/rclone.conf --allow-other --allow-non-empty --fast-list --drive-skip-gdocs --poll-interval=15s --vfs-cache-mode full --vfs-write-back 5s --bwlimit-file 16M --buffer-size=16M --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit 2048M --vfs-cache-max-size 100G --vfs-cache-max-age 336h --vfs-read-ahead 32M --dir-cache-time=1000h --log-level INFO --log-file /volume2/mount/rclone/Log/rclone_GD.log --cache-dir=/volume2/mount/rclone/Cache --timeout 1h --umask 000 &
sudo rclone mount GD.Share.Movie: /volume2/mount/GD.Share/GD.Share.Movie --config /root/.config/rclone/rclone.conf --allow-other --allow-non-empty --fast-list --drive-skip-gdocs --poll-interval=15s --vfs-cache-mode full --vfs-write-back 5s --bwlimit-file 16M --buffer-size=16M --vfs-read-chunk-size=32M --vfs-read-chunk-size-limit 2048M --vfs-cache-max-size 100G --vfs-cache-max-age 336h --vfs-read-ahead 32M --dir-cache-time=1000h --log-level INFO --log-file /volume2/mount/rclone/Log/rclone_GD_Share_Movie.log --cache-dir=/volume2/mount/rclone/Cache --timeout 1h --umask 000 &

 

[chatGPT 답변]

 

Here's a refined version of the script:

 

#!/bin/bash

 

sleep 30

 

sudo mount --make-shared /volume2

 

declare -a mount_list=(

"GD: /volume2/mount/GD"

"GD.Share.Movie: /volume2/mount/GD.Share/GD.Share.Movie" 

...

)

 

for mount in "${mount_list[@]}"; do

IFS=':' read src dest <<< "$mount"

sudo rclone mount "$src": "$dest"
--config /root/.config/rclone/rclone.conf
--allow-other
--allow-non-empty
--fast-list
--drive-skip-gdocs
--poll-interval=15s
--vfs-cache-mode full
--vfs-write-back 5s
--bwlimit-file 16M
--buffer-size=16M
--vfs-read-chunk-size=32M
--vfs-read-chunk-size-limit 2048M
--vfs-cache-max-size 100G
--vfs-cache-max-age 336h
--vfs-read-ahead 32M
--dir-cache-time=1000h
--log-level INFO
--log-file "/volume2/mount/rclone/Log/rclone_$src.log"
--cache-dir=/volume2/mount/rclone/Cache
--timeout 1h
--umask 000 &

done

신고공유스크랩
4
profile image 3등
하늘위의하늘 2023.02.07. 22:07
Ms가 github 인수하고 이러닝을 그것을 통해서 하고있지 않나생각합니다. ㅎㅎ
게임 회사도 인수했으니 메타버스로 가나요?
ㅎㅎ

댓글 쓰기 권한이 없습니다. 로그인

취소 댓글 등록

cmt alert

신고

"님의 댓글"

이 댓글을 신고하시겠습니까?

댓글 삭제

"님의 댓글"

삭제하시겠습니까?


목록

공유

facebooktwitterpinterestbandkakao story
번호 분류 제목 글쓴이 날짜 조회 추천
오픈소스 Hoarder 소개 📦 - AI 기반 태깅 기능을 갖춘 오픈 소스 Bookmark-Everything 앱(mymind 오픈 소스 대안) 6 달소 1일 전22:53 202 +1
정보 Proxmox) VMware ESXi 기반 가상 머신 마이그레이션에 사용할 수 있는 새로운 가져오기 마법사 5 달소 1일 전22:48 102 +1
정보 안녕하세요! 새로 가입했습니다. 6 Razorbacks 1일 전18:06 93 +1
383 잡담
normal
kmw_ 11시간 전13:43 257 0
382 잡담
image
주차장 3일 전17:47 517 +1
381 잡담
normal
아나나나나다 24.03.21.12:58 386 0
380 잡담
image
빨간물약 24.03.20.14:09 288 0
379 잡담
image
bass9030 24.03.18.18:16 410 0
378 잡담
image
purndal 24.03.16.15:15 222 +1
377 잡담
image
purndal 24.03.15.10:49 185 +3
376 잡담
image
달소 24.03.14.22:23 200 +2
375 잡담
image
달소 24.03.11.23:27 147 0
374 잡담
image
달소 24.03.08.16:56 373 0
373 잡담
normal
달소 24.03.08.16:51 163 0
372 잡담
image
eyeball 24.03.04.10:47 486 +2
371 잡담
image
짝퉁교보 24.03.03.03:26 669 0
370 잡담
image
ljr10 24.02.29.16:48 368 0
369 잡담
image
서하 24.02.27.21:53 622 +2
368 잡담
image
kmw_ 24.02.26.19:24 274 +1
367 잡담
normal
서맹 24.02.25.22:10 185 0
366 잡담
image
달소 24.02.25.00:38 310 0
365 잡담
image
kmw_ 24.02.22.21:35 185 0
364 잡담
image
달소 24.02.19.22:45 471 +1