Skip to content

Instantly share code, notes, and snippets.

@CSUwangj
Last active November 9, 2020 10:46
Show Gist options
  • Select an option

  • Save CSUwangj/f18ac9b06ac76effa3dca76876e21ac6 to your computer and use it in GitHub Desktop.

Select an option

Save CSUwangj/f18ac9b06ac76effa3dca76876e21ac6 to your computer and use it in GitHub Desktop.

Revisions

  1. CSUwangj revised this gist Nov 9, 2020. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions get-vscode-server.sh
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,9 @@
    #!/bin/bash
    set -euo pipefail
    IFS=$'\n\t'
    commit_id=d2e414d9e4239a252d1ab117bd7067f125afd80a

    # Download url is: https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable
    curl -sSL "https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz
    curl -sSL "https://update.code.visualstudio.com/latest/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz

    mkdir -p ~/.vscode-server/bin/${commit_id}
    # assume that you upload vscode-server-linux-x64.tar.gz to /tmp dir
  2. CSUwangj created this gist Oct 22, 2020.
    12 changes: 12 additions & 0 deletions get-vscode-server.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash
    set -euo pipefail
    IFS=$'\n\t'
    commit_id=d2e414d9e4239a252d1ab117bd7067f125afd80a

    # Download url is: https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable
    curl -sSL "https://update.code.visualstudio.com/commit:${commit_id}/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz

    mkdir -p ~/.vscode-server/bin/${commit_id}
    # assume that you upload vscode-server-linux-x64.tar.gz to /tmp dir
    tar zxvf vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${commit_id} --strip 1
    touch ~/.vscode-server/bin/${commit_id}/0