System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
#!/bin/bash | |
set -e | |
# get package directories based on diff change from last 5 commits | |
list=$(git diff --name-only HEAD~5..HEAD . | grep -o "packages/\w*" | uniq) | |
# store root dir | |
pwd=$PWD |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
#!/bin/sh | |
# Install node and npm via nvm - https://github.com/creationix/nvm | |
# Run this script like - bash script-name.sh | |
# Define versions | |
INSTALL_NODE_VER=10 | |
INSTALL_NVM_VER=0.34.0 |
axios({ | |
url: 'http://localhost:5000/static/example.pdf', | |
method: 'GET', | |
responseType: 'blob', // important | |
}).then((response) => { | |
const url = window.URL.createObjectURL(new Blob([response.data])); | |
const link = document.createElement('a'); | |
link.href = url; | |
link.setAttribute('download', 'file.pdf'); | |
document.body.appendChild(link); |