Skip to content

Instantly share code, notes, and snippets.

@cappypopp
cappypopp / crack-server-side-query-params-in-ssgtm.user.js
Last active January 16, 2025 19:35
Userscript that automatically cracks the Request URLs in server-side Google Tag Manager Preview windows. Requires a userscript browser extension (Tampermonkey, etc.)
// ==UserScript==
// @name Show GTM Server-Side Query Params in Table
// @namespace https://gist.github.com/cappypopp/
// @version 2.0.5
// @description Cracks HTTP Request URLs Into Query Param Table
// @author Cappy Popp
// @homepage https://gist.github.com/cappypopp/
// @match https://CHANGEME.com
// @grant none
// @license MIT
@cappypopp
cappypopp / moveToCalendar.gs
Created August 22, 2022 15:30 — forked from erickoledadevrel/moveToCalendar.gs
Moving events from one calendar to another, using Google Apps Script
/**
* Move events with a given title from your primary calendar to another calendar.
* You must enable the Calendar Advanced Service:
* https://developers.google.com/apps-script/guides/services/advanced#enabling_advanced_services
*/
function moveEvents(eventTitle, fromCalendarName, toCalendarName) {
var fromCalendarId = CalendarApp.getCalendarsByName(fromCalendarName)[0].getId();
var toCalendarId = CalendarApp.getCalendarsByName(toCalendarName)[0].getId();
var now = new Date();