Skip to content

Instantly share code, notes, and snippets.

View stewartjarod's full-sized avatar
:shipit:
shipit

Jarod Stewart stewartjarod

:shipit:
shipit
View GitHub Profile
@stewartjarod
stewartjarod / ZSH Git Bump
Created July 9, 2018 19:26
Bump git version tag by patch, minor, or major
# Usage: `tag M` | `tag maj` | `tag major` || `tag m` | `tag min` | `tag minor` || `tag p` | `tag patch`
function gtag() {
if [ -n $1 ]
then
echo "› Creating tag: v$1"
if git tag -a "v$1" -m "v$1" >/dev/null
then
echo "› Pushing Tag to Upstream"
git push origin --tags

Keybase proof

I hereby claim:

  • I am stewartjarod on github.
  • I am stewartjarod (https://keybase.io/stewartjarod) on keybase.
  • I have a public key ASDIIZD4BPc0JAtBHL1bdTXAhfklIPqinQddh2hOINzVTAo

To claim this, I am signing this object:

@stewartjarod
stewartjarod / GoLangSetup
Created September 21, 2014 21:22
Quick GO Lang setup
# OS X Go Setup
# Install Go lang latest (1.3.1 as of Sept. 21, 2014)
###############################################################################
brew update
brew install hg
brew install go
# Set up Go lang workspace
mkdir -p ${HOME}/Projects/GO
@stewartjarod
stewartjarod / emailImageAttachment.js
Created April 11, 2013 18:00
Send email with attachment Second Method... Should work with Azure.
var sg = require('sendgrid');
var email = new sg.Email({
to: 'test@test.com',
toname: 'Test Person',
from: 'tester@tester.com',
fromname: 'Test Sender',
subject: 'Email Test with Image',
text: 'This is a test.',
html: 'this is a test <img src="cid:testme" alt="graphic"/>',
});
@stewartjarod
stewartjarod / mailWithAttachedImage.js
Created April 11, 2013 16:49
Sending email through SendGrid using the SendGrid Node.js Library that includes an attached image using CID. Does not display correctly with Gmail, Yahoo, or Hotmail (such is the nature of CID).
var SendGrid = require('sendgrid').SendGrid;
var sendgrid = new SendGrid('username', 'password');
sendgrid.send({
to: 'test@test.com',
from: 'tester@tester.com',
fromname: 'Test Person',
subject: 'Hello World',
text: 'My first email through SendGrid',
html: 'My first email with SendGrid with html <img src="cid:testme" alt="graphic"/>',