Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 7b8e741

Browse files
authored
Merge pull request #72 from thecoder-001/playit
Adds initial playit support.
2 parents 1dd115d + 674f07c commit 7b8e741

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

MineColab.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"memory_allocation = \"-Xmx6144M -Xms6144M\"\n",
8585
"\n",
8686
"# Chose the tunnle service you want to use\n",
87-
"# Available options: ngrok, argo\n",
87+
"# Available options: ngrok, argo, playit\n",
8888
"tunnel_service = \"argo\"\n",
8989
"print(\"Procedding to use\", tunnel_service)\n",
9090
"\n",
@@ -108,6 +108,13 @@
108108
" print('Starting server...')\n",
109109
" !java $memory_allocation $server_flags -jar $jar_name nogui\n",
110110
"\n",
111+
"elif tunnel_service == \"playit\":\n",
112+
" ! curl -SsL https://playit-cloud.github.io/ppa/key.gpg | sudo apt-key add -\n",
113+
" ! sudo curl -SsL -o /etc/apt/sources.list.d/playit-cloud.list https://playit-cloud.github.io/ppa/playit-cloud.list\n",
114+
" ! sudo apt update &>/dev/null && sudo apt install playit &>/dev/null && echo \"Playit.gg installed\" || echo \"Failed to install playit\"\n",
115+
" print('Starting server...')\n",
116+
" ! playit & java $memory_allocation $server_flags -jar $jar_name nogui\n",
117+
"\n",
111118
"else:\n",
112119
" # Download & make argo executable\n",
113120
" !wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64\n",

0 commit comments

Comments
 (0)