Skip to content

Commit

Permalink
Merge pull request thecoder-001#72 from thecoder-001/playit
Browse files Browse the repository at this point in the history
Adds initial playit support.
  • Loading branch information
thecoder-001 authored Oct 6, 2022
2 parents 1dd115d + 674f07c commit 7b8e741
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MineColab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"memory_allocation = \"-Xmx6144M -Xms6144M\"\n",
"\n",
"# Chose the tunnle service you want to use\n",
"# Available options: ngrok, argo\n",
"# Available options: ngrok, argo, playit\n",
"tunnel_service = \"argo\"\n",
"print(\"Procedding to use\", tunnel_service)\n",
"\n",
Expand All @@ -108,6 +108,13 @@
" print('Starting server...')\n",
" !java $memory_allocation $server_flags -jar $jar_name nogui\n",
"\n",
"elif tunnel_service == \"playit\":\n",
" ! curl -SsL https://playit-cloud.github.io/ppa/key.gpg | sudo apt-key add -\n",
" ! sudo curl -SsL -o /etc/apt/sources.list.d/playit-cloud.list https://playit-cloud.github.io/ppa/playit-cloud.list\n",
" ! sudo apt update &>/dev/null && sudo apt install playit &>/dev/null && echo \"Playit.gg installed\" || echo \"Failed to install playit\"\n",
" print('Starting server...')\n",
" ! playit & java $memory_allocation $server_flags -jar $jar_name nogui\n",
"\n",
"else:\n",
" # Download & make argo executable\n",
" !wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64\n",
Expand Down

0 comments on commit 7b8e741

Please sign in to comment.