Skip to content

Instantly share code, notes, and snippets.

View Teivaz's full-sized avatar

Sasha Kuznietsov Teivaz

View GitHub Profile
@Teivaz
Teivaz / gdrive.js
Last active September 1, 2023 18:03
Google Drive API V3 simple but working use case.
'use strict';
const driveUploadPath = 'https://www.googleapis.com/upload/drive/v3/files';
// 'id' is driveId - unique file id on google drive
// 'version' is driveVersion - version of file on google drive
// 'name' name of the file on google drive
// 'appProperties' keep the custom `ifid` field
const fileFields = 'id,version,name,appProperties';
@Teivaz
Teivaz / nginx.conf
Created August 20, 2019 18:56
Serve apple-app-site-association.json with nginx
location = /apple-app-site-association {
root /var/www/http; # Your location here
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate";
try_files /apple-app-site-association.json =404;
}