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
FROM php:7.4-fpm-alpine | |
WORKDIR "/application" | |
# Install essential build tools | |
RUN apk add --no-cache \ | |
git \ | |
yarn \ | |
autoconf \ | |
g++ \ | |
make \ |
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
<?php | |
public function decrypt($secret, $data) | |
{ | |
$secret = hex2bin($secret); | |
$iv = base64_decode(substr($data, 0, 16), true); | |
$data = base64_decode(substr($data, 16), true); | |
$tag = substr($data, strlen($data) - 16); | |
$data = substr($data, 0, strlen($data) - 16); | |
try { |
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
/** | |
This is based on the example provided at: | |
https://developers.google.com/apps-script/samples/automations/vacation-calendar | |
The following changes were made: | |
- Uses the outOfOffice eventType to identify events to sync. It does not use a keyword search. | |
- Events use the full names of members, pulled from the Google Workspace API (AdminDirectory.) | |
- Recurring OOF events are supported. | |
- Creates "shadow events" instead of importing the actual events, to circumvent "forbidden" errors in some cases, and issues with recurring events. |
OlderNewer