This file contains hidden or 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
#!/bin/bash | |
# Change to ZSH | |
chsh -s /usr/bin/zsh | |
# Install Homebrew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/rsj/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" |
This file contains hidden or 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
function delete_or_decline_events(dryRun = true, search, fromDate, toDate) { | |
if (!(search && fromDate && toDate)) return // Skip exectuion during definition | |
Logger.log("Events to be deleted starting: " + fromDate) | |
Logger.log("Events to be deleted starting: " + toDate) | |
var calendarName = Session.getActiveUser().getEmail() | |
var calendar = CalendarApp.getCalendarsByName(calendarName)[0] | |
// get events from date, to date and with a search term "YOUR SEARCH TERM" |