Skip to content

Instantly share code, notes, and snippets.

@kujirahand
Last active May 21, 2021 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kujirahand/bc5cf20af7e6356b47d57fc55e7d1948 to your computer and use it in GitHub Desktop.
Save kujirahand/bc5cf20af7e6356b47d57fc55e7d1948 to your computer and use it in GitHub Desktop.
ColabになでしこWebSocket Echoサーバーを構築するコマンド
#!/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