Last active
May 15, 2023 21:06
-
-
Save HanClinto/096d27335af7869f9b19f97185f27ba0 to your computer and use it in GitHub Desktop.
Open a VSCode tunnel on an arm64 device
This file contains 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
# 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