Skip to content

Instantly share code, notes, and snippets.

Jonathan Freeman freethejazz

  • Chicago, Il
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 Apr 18, 2020
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.