Skip to content

Instantly share code, notes, and snippets.

View JayGoldberg's full-sized avatar

Jay Goldberg JayGoldberg

  • Google
  • San Francisco, CA, USA
View GitHub Profile
@somebox
somebox / platformio.md
Last active October 7, 2025 07:51
PlatformIO Condensed One-Page Reference

PlatformIO Reference Guide (LLM-Friendly)

This is a summarized and simplified on-page guide based on the PlatformIO documentation, intended for use as context for LLM-assisted coding. It was created with a summarization workflow created in n8n and then summarized with Genimi 2.0 Flash, and the final document restructured and reformatted using Gemini 2.5-pro.


Part I: Introduction & Core Concepts

Chapter 1: Introduction to PlatformIO

@1mm0rt41PC
1mm0rt41PC / castanet.py
Last active November 1, 2025 20:31 — forked from interfect/castanet.sh
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env python3
# castanet.py: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
#
@DavidePrincipi
DavidePrincipi / castanet.sh
Last active September 28, 2025 18:03 — forked from interfect/castanet.sh
Set up a Chromecast from a Linux PC, without an Android or iOS mobile device and without Google Home
#!/usr/bin/env bash
# castanet.sh: Script to connect a chromecast to a WiFi network.
#
# Allows you to put your Chromecast on WiFi and do Chromecast initial setup
# without using the Google Home app at all, just using a normal Linux computer.
#
# You do need your Chromecast to be on Ethernet, or (untested) to join its setup WiFi
# network with your PC, and you also need to find out its IP yourself with e.g.
# Wireshark.
@tyrann0us
tyrann0us / Code.gs
Last active December 13, 2024 19:45
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 generateICS() {
// 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
/**
* A number of global variables that are re-used throughout this script.
*/
// 5 minute maximum runtime
var maxRuntime = 5 * 60 * 1000;
var ss = SpreadsheetApp.getActiveSpreadsheet();
We can't make this file beautiful and searchable because it's too large.
id,name,summary,neighbourhood
958,"Bright, Modern Garden Unit - 1BR/1B",New update: the house next door is under construction and there is the possibility of noise from 7am - 5pm. Our rates are discounted during this time period. Our bright garden unit overlooks a grassy backyard area with fruit trees and native plants. It is an oasis in a big city. The apartment comfortably fits a couple or small family. It is located on a cul de sac street that ends at lovely Duboce Park.,Duboce Triangle
3850,Charming room for two,"Your own private room plus access to a shared bathroom across the hall. House is on a big hill with a great view. Plenty of 72-hour free parking in front. Free maps, breakfast food and advice about what to do in San Francisco. As part of the booking procedure, my house rules require you send me this sentence via the Airbnb message thread: ""Kevin, I have read your listing and house rules carefully and I agree to follow what you wrote."" If you don't, you forfeit your reservation and money.",Inner
@lpenz
lpenz / custom.toml
Created August 27, 2023 13:09
custom.toml example for Raspberry Pi OS
# Raspberry PI OS config.toml
# This file is used for the initial setup of the system on the first boot, if
# it's s present in the boot partition of the installation.
#
# This file is loaded by firstboot, parsed by init_config and ends up
# as several calls to imager_custom.
# The example below has all current fields.
#
# References:
# - https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/master/usr/lib/raspberrypi-sys-mods/firstboot
# takes a csv export of the google sheet as input and tries to download pastebins
#
# usage:
# download_pastebins.py <prefix> <name column> <url column> <csv file>
#
# example:
# download_pastebins.py mt18 1 5 "MT18 Draw List - Played Games.csv"
import sys, os, re, urllib.request, csv
@thisjt
thisjt / Google Drive File Uploader.js
Created June 29, 2023 21:05
Function to Upload a (Zip) File to Google Drive
const keys = require('./auth.json')
const fs = require('fs')
const {JWT} = require('google-auth-library')
const {drive} = require('googleapis/build/src/apis/drive')
// DELETE ALL FILES in "apis" folder except "drive" to slim down "googleapis" file size
function uploadFileToGdrive() {
const auth = new JWT({
@mhawksey
mhawksey / Method1.gs
Created February 17, 2023 09:07
Google Apps Script methods for generating Google My Drive report.
// @OnlyCurrentDoc
const FOLDER_ID = 'YOUR_FOLDER_ID'; // OR 'root' if you want your entire My Drive
/**
* Method One: Using built-in DriveApp / file iterator
*/
function generateFolderFilesDriveApp() {
try {
const folderId = FOLDER_ID;
const parentFolder = (folderId === 'root') ? DriveApp.getRootFolder() : DriveApp.getFolderById(folderId);