Skip to content

Instantly share code, notes, and snippets.

@bsamm
bsamm / renameGmailLabels.gs
Last active March 28, 2023 16:28
renameGmailLabels.gs
// Author: Brandon C Sammons
// https://github.com/bsamm
// 10/27/2020
// Goal: Write a simple script to rename and normalize labels in gmail.
// API Reference: https://developers.google.com/apps-script/reference/gmail/gmail-app
function main() {
var labels = GmailApp.getUserLabels().slice(0, 50); // use .slice(0, 1) method to get first 1 label, if you just want to test
var processedLabels = [];
Just type this in the url bar
chrome://cache
ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
may need to run in sudo, if you aren't the root
@bsamm
bsamm / gist:11d23d168a834fda9528
Last active September 15, 2015 22:35
Command Line | Install 'sublime' command line tools
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
If you get a error, you can just go to /usr/local/bin and rm sublime and try again.
http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/