Skip to content

Instantly share code, notes, and snippets.

View itsraghz's full-sized avatar
🎯
Focusing

Raghavan alias Saravanan Muthu itsraghz

🎯
Focusing
View GitHub Profile
@hackjutsu
hackjutsu / upstream.md
Last active December 11, 2023 07:44
[set upstream] What does '--set-upstream' do? #tags: git
git branch --set-upstream-to <remote-branch>
# example
git branch --set-upstream-to origin feature-branch

# show up which remote branch a local branch is tracking
git branch -vv

sets the default remote branch for the current local branch.

@brunocribeiro
brunocribeiro / SendEmailOffice365.java
Created June 2, 2015 00:05
JavaMail samples using Office365 SMTP
import java.util.Date;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.mail.Authenticator;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
@d3noob
d3noob / .block
Last active May 13, 2020 14:42
Simple d3.js bar chart
license: mit