Skip to content

Instantly share code, notes, and snippets.

Jonathan Freeman freethejazz

  • Chicago, Il
Block or report user

Report or block freethejazz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bmchild
bmchild / IsLoggedIn.java
Created Jul 22, 2013
Check if a user is logged in
View IsLoggedIn.java
Authentication auth = SecurityContextHolder.getContext().getAuthentication();
if (!(auth instanceof AnonymousAuthenticationToken)) {
// do something...
}
@bric3
bric3 / install_jdk5_post_lion.sh
Last active Aug 8, 2017
Automate the install of JDK 5 on Lion, Mountain Lion, Mavericks
View install_jdk5_post_lion.sh
# _______ _ _ _ _ _
# |__ __| | (_) (_) | | | |
# | | | |__ _ ___ ___ ___ _ __ _ _ __ | |_ _ __ ___ _____ _____ __| |
# | | | '_ \| / __| / __|/ __| '__| | '_ \| __| | '_ ` _ \ / _ \ \ / / _ \/ _` |
# | | | | | | \__ \ \__ \ (__| | | | |_) | |_ | | | | | | (_) \ V / __/ (_| |
# |_| |_| |_|_|___/ |___/\___|_| |_| .__/ \__| |_| |_| |_|\___/ \_/ \___|\__,_|
# | |
# |_|
#
# New home : https://github.com/bric3/osx-jdk5-installer
You can’t perform that action at this time.