[This is sample output of the above script for a shared drive named "Shared Drive"]
Number of files in root of Shared drive: 4
/* | |
###### | |
# # # ###### ##### ##### #### # # | |
# # # # # # # # # # # | |
###### # ##### # ##### # # ## | |
# # # # # # # # ## | |
# # # # # # # # # # | |
# # ###### # ##### #### # # |
/** | |
* Based on: https://github.com/googleworkspace/solutions/blob/master/content-signup/src/Code.js | |
*/ | |
var EMAIL_TEMPLATE_DOC_URL = 'https://docs.google.com/document/d/***/edit?usp=sharing'; | |
var EMAIL_SUBJECT = '[Response requested] Please confirm your Wiki Loves Monuments winners'; | |
var CC_RECIPIENTS = '[email protected], [email protected]' | |
/** | |
* Installs a trigger on the Spreadsheet for when a Form response is submitted. |
const BearerTokenKey = 'twitterBearerToken'; | |
function onOpen() { | |
SpreadsheetApp | |
.getUi() | |
.createMenu('Twitter') | |
.addItem('Set Bearer token', 'helpers.requestBearerToken') | |
.addItem('Sign out', 'helpers.logout') | |
.addToUi(); | |
} |
Usually we will use this command
rsync --dry-run -a --mkpath --no-o --no-g --no-p -P -c SRC/ DST/
Remove --dry-run
to actually copy the files rather than merely comparing
Remove -c
to make it faster by comparing mod-time and size rather than checksum
function doGet(request) { | |
if (request.parameters.url != undefined && request.parameters.url != "") { | |
var imageBlob = UrlFetchApp.fetch(request.parameters.url).getBlob(); | |
var resource = { | |
title: imageBlob.getName(), | |
mimeType: imageBlob.getContentType() | |
}; | |
var options = { | |
ocr: true | |
}; |
<html class="theme-light" id="content"> | |
<head> | |
<title>Notes</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta charset="UTF-8" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | |
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | |
<style> |
function doGet(request) { | |
if (request.parameters.url != undefined && request.parameters.url != "") { | |
var imageBlob = UrlFetchApp.fetch(request.parameters.url).getBlob(); | |
var resource = { | |
title: imageBlob.getName(), | |
mimeType: imageBlob.getContentType() | |
}; | |
var options = { | |
ocr: true | |
}; |
#!/bin/bash | |
# Optional: | |
# add an A DNS record pointing to you server's IP address | |
# e.g, for mydomain.com, mail -> 127.0.0.1. Would be mail.mydomain.com | |
docker run -it --rm --name inbucket -p 9000:9000 -p 25:2500 -p 1100:1100 inbucket/inbucket |
const fs = require("fs"); | |
const readline = require("readline"); | |
const { google } = require("googleapis"); | |
const GoogleSpreadsheet = require('google-spreadsheet'); | |
const { promisify } = require('util'); | |
const scope = ["https://www.googleapis.com/auth/youtube.readonly"]; | |
const creds = require('./client_secret.json'); | |
const doc = new GoogleSpreadsheet(process.env.SPREADSHEET_ID); |