Skip to content

Instantly share code, notes, and snippets.

View tyrann0us's full-sized avatar

Philipp Bammes tyrann0us

View GitHub Profile
@tyrann0us
tyrann0us / Code.gs
Last active October 8, 2024 19:43
Generate a free/busy ICS file from your Google Calendar using this Google Apps Script, which securely saves the file to your Google Drive. Share your availability without exposing event details. All data processing and storage occur within your Google account.
/**
* Generates an ICS file containing free/busy information from your Google Calendar
* and saves it to Google Drive.
*/
function generateFreeBusyICS() {
// Configuration
var calendarId = 'primary'; // Calendar ID to read events from
var fileName = 'busy.ics'; // Name of the ICS file to be saved in Google Drive
var eventTitle = 'Busy'; // Title for the events in the ICS file
var organizationName = 'Acme Corporation'; // Name for the PRODID property
@tyrann0us
tyrann0us / gist:2231b4af0a47f8b79cf873d1ba2c7e68
Last active June 8, 2020 09:27
All WooCommerce order status with German translation (and slug)
"Pending payment" (pending) = "Zahlung ausstehend"
"Processing" (processing) = "In Bearbeitung"
"On hold" (on-hold) = "In Wartestellung"
"Completed" (completed) = "Abgeschlossen" ("Fertiggestellt" in some places for Swiss German)
"Cancelled" (cancelled) = "Storniert/Abgebrochen"
"Refunded" (refunded) = "Rückerstattet"
"Failed" (failed) = "Fehlgeschlagen"
@tyrann0us
tyrann0us / WordPress siteurl vs home
Last active June 2, 2020 09:08
WordPress `siteurl` vs. `home`
`siteurl` = WordPress Address (URL) = WordPress-Adresse (URL) (German) -> URL
`home` = Site Address (URL) = Website-Adresse (URL) (German) -> URL to WordPress core files
See https://codex.wordpress.org/Changing_The_Site_URL
@tyrann0us
tyrann0us / _gallery.scss
Last active January 24, 2017 09:39
SCSSified WordPress gallery styles (based on Twenty Seventeen)