Skip to content

Instantly share code, notes, and snippets.

@jamesramsay
jamesramsay / README.md
Last active April 26, 2024 13:15
Gmail: delete old emails automatically

Gmail: delete old emails automatically

Automatically deletes old emails that match the specified label.

Get started

  • Create a new Google Apps Script at https://script.google.com
  • Overwrite the placeholder with the javascript below
  • Update the following constants:
  • LABEL_TO_DELETE: the label that should be have old messages deleted
@timball
timball / ssh_attach.sh
Created December 28, 2012 19:00
ssh_attach is to be sourced from a .profile and connects your shell to previously running ssh-agents . think of it as a slightly functional keymanager for your ssh sessions . --timball
#!/bin/bash
#
# ssh_attach.sh
#
# source this file in a .bashrc .
#
# something like :
#
# # interactive shell ??
# if [ "$PS1" ]; then