Skip to content

Instantly share code, notes, and snippets.

@alexanderankin
Last active November 3, 2023 16:21
Show Gist options
  • Save alexanderankin/badc4a7202c846a5745dd2a51853c831 to your computer and use it in GitHub Desktop.
Save alexanderankin/badc4a7202c846a5745dd2a51853c831 to your computer and use it in GitHub Desktop.
https://plugins.jetbrains.com/plugin/download?rel=true&updateId=424435
# https://stackoverflow.com/q/24044513
wget -qO- https://plugins.jetbrains.com/files/$(curl https://plugins.jetbrains.com/api/plugins/4415/updates | jq -r '.[0].file') | bsdtar -xvf- -C ~/.PhpStorm2018.3/config/plugins
https://plugins.jetbrains.com/api/plugins/17718/updates
file=$(curl https://plugins.jetbrains.com/api/plugins/17718/updates -fSsL | jq .[0].file -r)
curl -O https://plugins.jetbrains.com/files/$file
intellij_plugins="/c/Program Files (x86)/Jetbrains/Intellij.../plugins"
unzip $file -d "$intellij_plugins"
# Setting the TLS version to ensure compatibility with HTTPS requests
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Getting the file information from the JetBrains plugin API
$response = Invoke-RestMethod -Uri 'https://plugins.jetbrains.com/api/plugins/17718/updates' -Method Get
# Parsing the first file in the response
$file = $response[0].file
# Downloading the file
Invoke-WebRequest -Uri "https://plugins.jetbrains.com/files/$file" -OutFile "$file"
# Use a specific file name
$fileName = "plugin.zip"
Invoke-WebRequest -Uri "https://plugins.jetbrains.com/files/$file" -OutFile $fileName
@alexanderankin
Copy link
Author

.config/JetBrains/IntelliJIdea2023.2/options/github-copilot.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment