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
/* | |
I've always hated being a bit too in the zone during coding | |
only to know that I've written too many lines of code before a commit. | |
This plugin makes sure that I'm always in check of around how | |
many lines of code I've made/modified and commit them when needed. | |
*/ | |
import { defineConfig } from 'vite'; | |
import { exec } from 'child_process'; |
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
var Dropbox = require('dropbox').Dropbox | |
var accessToken = '##ACCESSTOKEN##' | |
var filename = 'fileToUpload.zip' | |
fs.readFile(filename, (err, data) => { | |
if(err) { | |
// handle error | |
return | |
} | |
(new Dropbox({ accessToken: accessToken })).filesUpload({ |
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
const keys = require('./auth.json') | |
const fs = require('fs') | |
const {JWT} = require('google-auth-library') | |
const {drive} = require('googleapis/build/src/apis/drive') | |
// DELETE ALL FILES in "apis" folder except "drive" to slim down "googleapis" file size | |
function downloadFileToGdrive() { | |
const auth = new JWT({ |
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
const keys = require('./auth.json') | |
const fs = require('fs') | |
const {JWT} = require('google-auth-library') | |
const {drive} = require('googleapis/build/src/apis/drive') | |
// DELETE ALL FILES in "apis" folder except "drive" to slim down "googleapis" file size | |
function uploadFileToGdrive() { | |
const auth = new JWT({ |