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
#!/bin/bash | |
# | |
# Usage: | |
# | |
# bash gradle2maven.sh | |
# Will be used as default directories | |
# your default gradle reprository: $HOME/.gradle/caches/modules-2/files-2.1/ | |
# in your current path, a new maven directory: $PWD/maven-XXXXX`/repository | |
# | |
# bash gradle2maven.sh <gradle-files2.1-path> |
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
import AWS from 'aws-sdk'; | |
import stream from 'stream' | |
import axios from 'axios'; | |
export default async (url, filename, callback) => { | |
const s3 = new AWS.S3({ params: { Bucket: process.env.STATIC_MAPS_BUCKET }}); | |
let contentType = 'application/octet-stream' | |
let promise = null | |
const uploadStream = () => { |