Last active
May 21, 2021 14:13
-
-
Save kujirahand/bc5cf20af7e6356b47d57fc55e7d1948 to your computer and use it in GitHub Desktop.
ColabになでしこWebSocket Echoサーバーを構築するコマンド
This file contains hidden or 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
#!/bin/bash | |
# ColabになでしこWebSocketサーバを自動構築するスクリプト | |
# Colab | |
# [URL] https://colab.research.google.com/ | |
# 以下のコマンドをColabで実行してください。 | |
# => !curl "https://n3s.nadesi.com/index.php?action=plain&page=546" > setup.sh && /bin/bash ./setup.sh | |
echo "なでしこをインストールしています" | |
npm install -g nadesiko3 | |
npm install nadesiko3-websocket | |
curl https://n3s.nadesi.com/plain/545.nako3 > echo.nako3 | |
echo "cloudflaredをインストールしています" | |
wget https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.deb | |
dpkg -i cloudflared-stable-linux-amd64.deb | |
echo "サーバーを起動します。" | |
echo "★★★下記の『https://』からはじまるURLをコピーしてください★★★" | |
cnako3 echo.nako3 & cloudflared tunnel --url localhost:5001 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment