Skip to content

Instantly share code, notes, and snippets.

View eliastg's full-sized avatar
🏠
Working from home

eliastg

🏠
Working from home
View GitHub Profile
@DWboutin
DWboutin / directUploadToS3.js
Created March 31, 2019 22:33
Direct image url to S3 wiht axios and nodejs
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 = () => {
@leolopez89
leolopez89 / gradle2maven.sh
Last active July 13, 2022 14:54
How to convert a gradle repository into a maven repository
#!/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>