This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
public class start | |
{ | |
public static void main(String[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//MultipartEntity 객체 선언 | |
//boundaryString은 Multipart 업로드시 사용할 임의의 String값 | |
//charset은 자바에서 기본적으로 사용할 수 있는 Charset 객체 | |
MultipartEntity reqEntity | |
= new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE, boundaryString, charset); | |
//tempString을 StringBody 객체에 넣고 MultipartEntity에 넣음 | |
reqEntity.addPart("part", new StringBody(tempString)); | |
//HttpPost에 삽입 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker create \ | |
--name=plex \ | |
--net=bridge \ | |
-e VERSION=latest \ | |
-e PUID=<Plex UID> -e PGID=<Plex GID> \ | |
-e TZ=<타임존> \ | |
-v <Plex Database가 저장될 경로>:/config \ | |
-v <영상 및 음악 폴더 경로>:/data \ | |
-v <트랜스코딩용 임시폴더 경로>:/transcode \ | |
-p 32400:32400 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker create \ | |
--name=plex \ | |
--net=bridge \ | |
-e VERSION=latest \ | |
-e PUID=1035 -e PGID=100 \ | |
-e TZ=Asia/Seoul \ | |
-v /volume1/plex/config:/config \ | |
-v /volume1/plex/data:/data \ | |
-v /volume1/plex/transcode:/transcode \ | |
-p 32400:32400 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker create \ | |
--name=plex1 \ | |
--net=bridge \ | |
-e VERSION=latest \ | |
-e PUID=1035 -e PGID=100 \ | |
-e TZ=Asia/Seoul \ | |
-v /volume1/plex1/config:/config \ | |
-v /volume1/plex1/data:/data \ | |
-v /volume1/plex1/transcode:/transcode \ | |
-p 32400:32400 \ |