Skip to content

Instantly share code, notes, and snippets.

@bahamat
bahamat / dl.cf
Last active August 29, 2015 14:17
Cfengine bundle to download a file.
body common control {
bundlesequence => { "dl" };
}
bundle agent dl
{
vars:
"file" string => "cfengine-3.6.5.tar.gz";
@sigmaris
sigmaris / calendarCopy.js
Last active August 2, 2023 12:58 — forked from AndrewSouthpaw/calendarCopy.js
Google Apps script to copy personal events and block those times in your work calendar.
// *******************
// This setup will allow you to synchronize personal events from one calendar (the "secondary calendar") e.g. your Opsgenie
// schedule, to another calendar, e.g. work (the "primary calendar").
//
// Follow these steps:
// 1. Go to https://script.google.com/home and click [+ New project]
// 2. Make sure the two calendars you want to sync are in your Google calendar list, and the primary calendar can be edited
// by the Google account you're currently under (or switch accounts to the owner of the primary calendar)
// To get your Opsgenie schedule into Google Calendar, export your Opsgenie webcal URL: https://support.atlassian.com/opsgenie/docs/view-your-on-call-schedule/#Export-with-manual-URL