Skip to content

Instantly share code, notes, and snippets.

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

Tomas Aprile taprile314

🏠
Working from home
  • Buenos Aires, Argentina
View GitHub Profile
@taprile314
taprile314 / boilerplate-vercel-function-upload-blob.js
Last active December 3, 2025 15:51
Vercel Serverless Function Fetch API - Upload file to Vercel Blob
import { put } from '@vercel/blob';
/**
* Serverless API handler for image upload to Vercel Blob Storage
* Using Vercel Web Standard fetch API
*/
export default {
/**
* @param {Request} request - Web Standard Request object containing multipart form data
*/
@taprile314
taprile314 / clean-branches.sh
Created June 3, 2021 17:20
delete all branches but master
git branch | grep -v "master" | xargs git branch -D
@taprile314
taprile314 / fix-crlf.sh
Last active August 18, 2021 22:18
git disable autocrlf
git config --global core.autocrlf false
git rm --cached -r .
git reset --hard
const fileDownloadManager = {
initDownload({ endpoint, filename }) {
fileDownloadManager.endpoint = endpoint
fileDownloadManager.filename = filename
const permissions = window.cordova.plugins.permissions
permissions.checkPermission(
permissions.READ_EXTERNAL_STORAGE,
fileDownloadManager.checkPermissionCallback,
null