I'm trying to automate Eclipse installation.
For JDKs for example, I can get the download links via https://api.adoptopenjdk.net/q/swagger-ui/
The Eclipse download button contains a link with a mirror id, and then that page triggers a download. Unfortunately it's not a clean redirect that could be followed with curl/wget. I can observe the final download URL with a proxy like Fiddler, but that is not a stable solution.
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-03/R/eclipse-java-2021-03-R-macosx-cocoa-x86_64.dmg&mirror_id=1190
Or, if no API exists, is there another somewhat stable URL to download Eclipse binaries from programmatically?
Add &r=1 to the URL for the direct file/binary download link, for example:
Use mirror #1190: https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-03/R/eclipse-java-2021-03-R-macosx-cocoa-x86_64.dmg&mirror_id=1190&r=1
Best mirror (without mirror_id=...): https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-03/R/eclipse-java-2021-03-R-macosx-cocoa-x86_64.dmg&r=1
Download from eclipse.org (mirror_id=1): https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2021-03/R/eclipse-java-2021-03-R-macosx-cocoa-x86_64.dmg&mirror_id=1&r=1
These are stable links as long as the files have not been archived.
See also:
Eclipse Wiki - IT Infrastructure Doc - Use mirror sites/see which mirrors are mirroring my files?
PHP code of download.php
Related
I'm looking to install an older version of the VSCode jupyter extension. (The reason is that I'm using a VSCode build from Code Server which is as of VSCode v1.57.1 - released this summer - and I'd like to install extensions for it). It looks like the Jupyter Extension version 2021.6.9999 is the newest version of the Jupyterhub plugin that supports VSCode version v1.57.1.
However, the marketplace only displays the last 5 extension versions under the "Version History" section of the landing page. These versions listed are all too new.
I'm able to find the source code for Jupyter version 2021.6.9999 on Github, but the vsix binaries are not there. I'm not sure how to compile it; seems like it'd be a pretty involved process.
Is there an archive of the vsix plugin files going back further than just 5 releases? Those versions were available earlier this year, so it seems like there should be a way to access the older vsix extensions somewhere. Any thoughts is much appreciated.
Marketplace not showing the older versions, but you can download .vsix files from marketplace anyway.
Copy below link and paste your browser, it will download jupyter
version 2021.6.999662501, you can download any vsix binary with this method, just change version name from URL.
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-toolsai/vsextensions/jupyter/2021.6.999662501/vspackage
Also, there is a site to download older vsix files: https://www.vsixhub.com/history/43174/
How can find the version number?
I research the source code and see version number format <year>.<month>.<build_number> from here: https://github.com/microsoft/vscode-jupyter/blob/main/CONTRIBUTING.md#versioning
GitHub Actions create releases and upload to marketplace when triggered. There is no human interaction. If you research Github Actions pipelines you can find version numbers. For an example:
https://github.com/microsoft/vscode-jupyter/runs/3765342614?check_suite_focus=true#step:7:169
A newer VSCode feature makes it easier.
Right click on the extension in the Extension tab. It will display an option "Install another version". From this menu you can install the desired version.
You can try
Go to https://web.archive.org/
Search for the package using original marketplace URL
Click on a date
Right click on download button and copy the URL
Remove everything before HTTPS://
Open remaining URL in browser
Cheers :)
Example
https://marketplace.visualstudio.com/items?itemName=AndersLaublaubplusco.SitecoreHelixVisualStudioTemplates
https://web.archive.org/web/20210116094649/https://marketplace.visualstudio.com/items?itemName=AndersLaublaubplusco.SitecoreHelixVisualStudioTemplates
https://marketplace.visualstudio.com/items?itemName=AndersLaublaubplusco.SitecoreHelixVisualStudioTemplates
search for respective date
I'm trying to install PostgreSQL via Ansible on a Windows machine, meaning I'll need a URL. I know this shows me a download link, and I can usually right-click on the link and get the actual URL. Clocking on that line takes you to this page, and right-clicking on the start the download now link on that page doesn't give me a direct URL either, but a link to a javescript. I even looked a the HTML source in Brave browser Developer tools. I even found an example here, but the ftp url shown there doesn't have Windows installers. I also searched for "Postgres download URL" here, to no avail.
What the heck is the actual download URL, say for version 13?
On the page you linked to, if you click on the "Download" it takes you to this page](https://www.enterprisedb.com/postgresql-tutorial-resources-training?cid=437) which typically starts the download automatically.
However, there is a message
If your download does not begin automatically, start the download now
which is the direct link to the installer (in this case for 13.3)
how does one download the compiled file from a github project.
For example I was trying to download sandboxie and was taken here where I managed to download the zip, but there is no exe in the zip:
https://github.com/sandboxie/sandboxie (1)
I then searched for the installation package via google and through https://m.majorgeeks.com/files/details/sandboxie.html managed to download the compiled exe. Checking the link location for the exe, it points to here:
https://github-releases.githubusercontent.com/254327261/440a6e00-7d97-11eb-9289-9e5f62cb44fe?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210323%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210323T060753Z&X-Amz-Expires=300&X-Amz-Signature=c3092c5eac115a0cb9ccfe5beafc58d8fdac12288c19adba380de01dc58e95b2&X-Amz-SignedHeaders=host&actor_id=81162979&key_id=0&repo_id=254327261&response-content-disposition=attachment%3B%20filename%3DSandboxie-Classic-x64-v5.49.0.exe&response-content-type=application%2Foctet-stream
(2)
How would I get from (1) to (2) without having to google for the compiled file. Is there a location I have to go in github or do I have run some commands? I am also not a familiar with compiling exe's from the source files.
Actually you can't get from (1) to (2) because they are not same repository.
This is the repository the second link came from repository if you go to Releases section releases you will find the downloading link in the assets.
To make sure that this is the same repository in the second link you will find repo_id=254327261 and it is the same id of the repo I gave you the link above
I am using Netbeans remote ftp for a while now. I have my projects all configured correctly. Usually when i work on something i right click the file download it manually and then edit and save (save auto upload set on config)
This is quite some manual work and I often forget to download latest before editing which results in loss of work.
Is there any option to set netbeans to auto download the file (when i open it to edit)?
It figures to be very dangerous to auto download the latest files without any personal monitoring.
I am now using version control system git with bitbucket. Its pretty easy to use and has private repositories in the cloud.
I am using a desktop app called sourceTree that is recommended with bitbucket but it appears netbeans has a basic features for git built in. I find it much more userfriendly to use sourceTree though.
I can't find a free repository allowing to distribute Eclipse Update Site.
The main requirement is that it should provide access to raw content so that Eclipse can use the URL to retrieve all the binaries of my projects.
GitHub provided access to raw url but it seems it stopped.
Do you know if bitbucket does it? any different solution?
Actually, you can host an eclipse update site easily on github using raw url. I know because I have done it recently and it works.
It is true that you get a 404 when you try to access the repos 'raw' directory. However, that is actually not a problem because when you use the Eclipse (or Marketplace) installer to install something from an update site the installer does not access the folder directly. Rather it will only access files like 'catalog.xml'. This means that if you point the Eclipse installer at your raw update-site folder then it will be able to read the contents of the site without any problem.
Here is an example:
https://github.com/kdvolder/thirdparty-p2-repo/tree/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository
The corresponding raw url is this:
https://raw.githubusercontent.com/kdvolder/thirdparty-p2-repo/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository
Yes, that will give a 404 when you click it. But that is okay, just open "Help >> Install New Software" and paste the link into the "Work with" field of the dialog and it works fine:
It works because raw urls like this one are all the installer needs:
https://raw.githubusercontent.com/kdvolder/thirdparty-p2-repo/4bb37ca4de6cd001f400c2913421b8c4b49538e1/target/repository/category.xml
Github also allows this. You need to create github page and upload your p2 repository there. On the website github pages is explained how to achieve that. Just scroll and the steps will appear on the page (fancy javascript). For your project there is a second repository, where you have to put your repository.
I prefer to use sourceforge for the update site of my Eclipse projects. I recently published a blog post detailing all the steps to achieve that http://www.lorenzobettini.it/2015/01/publish-an-eclipse-p2-repository-on-sourceforge-with-rsync/