Skip to content

Instantly share code, notes, and snippets.

Paul N. Baker paul-nelson-baker

View GitHub Profile
#!/usr/bin/env bash
# Global configuration for new repos
git config --global init.defaultBranch main
# To update existing repos
git branch -m master main
git push origin :master main
git branch --set-upstream-to=origin/main main
paul-nelson-baker / SpringMVC X-UA-Compatible
Last active Aug 29, 2015
Spring MVC response header for X-UA-Compatible: IE=edge,chrome=1
View SpringMVC X-UA-Compatible
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(@RequestHeader("User-Agent") String userAgent, HttpServletResponse response) {;
if (userAgent.contains("MSIE")) {"Adding response header for IE");
response.addHeader("X-UA-Compatible", "IE=edge,chrome=1");
return "home";
You can’t perform that action at this time.