Skip to content

Instantly share code, notes, and snippets.

View ixdy's full-sized avatar

Jeff Grafton ixdy

View GitHub Profile
@canadaduane
canadaduane / Filter-NGPVAN-Political-Emails.md
Last active February 6, 2024 18:16
Move Incoming NGPVAN Political Emails in Gmail to Spam (Google Apps Script)
  1. Go to https://script.google.com
  2. Create a New Project
  3. Replace the Code.gs file it creates for you with the javascript below (copy/paste)
  4. Save the script
  5. Go to Triggers (looks like an alarm clock on left-hand side)
  6. Create a Trigger that acts every 10 minutes and calls filterNGPVANSpam
  7. You'll need to authorize this script to act on your behalf, which may require that you use the scary "Advanced" section to allow the script to read/write to your email inbox.
"""gen_build_data: generate build_data from various templates.
This does something very simple: concatenates bazel's stable-status and
volatile-status linkstamp data with an optional header and footer.
"""
def _gen_build_data_impl(ctx):
cmd = ["cat"]
inputs = [
ctx.version_file, # volatile-status.txt