Skip to content

Instantly share code, notes, and snippets.

@HanClinto
Last active May 15, 2023 21:06
Show Gist options
  • Save HanClinto/096d27335af7869f9b19f97185f27ba0 to your computer and use it in GitHub Desktop.
Save HanClinto/096d27335af7869f9b19f97185f27ba0 to your computer and use it in GitHub Desktop.
Open a VSCode tunnel on an arm64 device
# If `code` does not exist in the local directory, then download it.
# https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64
if [ ! -f code ]; then
echo "Downloading code..."
wget -q "https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-arm64" -O code.tar.gz
tar -xzf code.tar.gz
rm code.tar.gz
fi
# Start the tunnel
./code tunnel --random-name --accept-server-license-terms &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment