Skip to content

Instantly share code, notes, and snippets.

Avatar

Jean Osorio JeanOsorio

  • Barcelona, Spain
View GitHub Profile
@JeanOsorio
JeanOsorio / upload.js
Created Jun 1, 2020 — forked from virolea/upload.js
Tracking file upload progress using axios
View upload.js
upload(files) {
const config = {
onUploadProgress: function(progressEvent) {
var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
console.log(percentCompleted)
}
}
let data = new FormData()
data.append('file', files[0])
@JeanOsorio
JeanOsorio / s3.sh
Created Sep 27, 2019 — forked from chrismdp/s3.sh
Uploading to S3 in 18 lines of Shell (used to upload builds for http://soltrader.net)
View s3.sh
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine
# This is how I upload my new Sol Trader builds (http://soltrader.net)
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash
S3KEY="my aws key"
S3SECRET="my aws secret" # pass these in
function putS3
{
path=$1
@JeanOsorio
JeanOsorio / cloudSettings
Last active May 28, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-05-28T18:23:05.411Z","extensionVersion":"v3.4.3"}
You can’t perform that action at this time.