Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Brandon Vulaj bvulaj

🏠
Working from home
Block or report user

Report or block bvulaj

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
View Collab Error
DEBUG: Mon Aug 26 14:22:55 EDT 2013: com.smartbear.collaborator.ui.debug.DebugWindow
Collaborator version 8.0.8000
DEBUG: Mon Aug 26 14:22:55 EDT 2013: com.smartbear.collaborator.ui.debug.DebugWindow
Build Number:8.0.8000.016
DEBUG: Mon Aug 26 14:22:55 EDT 2013: com.smartbear.collaborator.ui.debug.DebugWindow
VM Max Memory: 3804758016
DEBUG: Mon Aug 26 14:22:55 EDT 2013: com.smartbear.collaborator.ui.debug.DebugWindow
VM Current Memory: 323223552
DEBUG: Mon Aug 26 14:22:55 EDT 2013: com.smartbear.collaborator.ui.debug.DebugWindow
Logging System Properties
View branching_strat_test.md
  1. Start a new project for a salsa recipe. Recipe should have the title "Salsa Recipe" and should specify that ingredients should be mixed together and served in a wooden bowl. The ingredients are tomatoes, onions, cilantro, and ice cream. Tab out everything except the title. Build a release so we can demo.

  2. The demo users loved it. Release the recipe.

  3. You used tabs in the file and our standard is to use spaces. The users don't really care but we'd like to follow the standard. We can just release that during the next planned release. We will need to make sure it is fully QA'd so we can assure that it shows up correctly on the target operating systems and programs.

  4. Our chef has devised a couple of new features. First we want to serve the salsa in a clear glass bowl so people can see how much they have left. Next, he wants to replace the tomatoes and onions with diced mango and sugar. Can you build those features?

  5. Oh no! People have started to make the recipe we released and they are complaining

View gist:75c69adfa929d9a11c48
HG / Mercurial
  • Pros
    • Great set of client-tools
    • History is absolutely sacred
      • Maintains a guaranteed accurate history
      • No modification of history allowed
    • Quick learning curve due to commonality with SVN commands and straight-forward functionality
    • Runs cleanly under all operating systems
    • Mercurial does not require repository maintenance.
  • Cons
@bvulaj
bvulaj / rm-symlinks.sh
Created Aug 31, 2015
Remove git symlinks in favor of NTFS hardlinks+junctions.
View rm-symlinks.sh
View ignore-doclint-java8.xml
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
</profile>
@bvulaj
bvulaj / CrossDomainCookieCsrfTokenRepository.java
Created Jul 27, 2017
The Cookie based, provided implementation of CsrfTokenRepository, CookieCsrfTokenRepository, does not allow setting the domain or domain pattern, so it is not possible to use the cookie across sub-domains. This implementation, which assumes `httpOnly=false` at this time, allows you to customize the cookie's domain as you would with `org.springfr…
View CrossDomainCookieCsrfTokenRepository.java
package com.phrankly.commons.security;
import java.lang.reflect.Method;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@bvulaj
bvulaj / when-im-remote-youre-remote.html
Last active Aug 1, 2017
When I'm Remote, You're Remote
View when-im-remote-youre-remote.html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>When I'm Remote, You're Remote</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"></link>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="page-header">
@bvulaj
bvulaj / AppConfig.java
Last active Mar 14, 2018
Configuring Multiple Objects of the Same Type
View AppConfig.java
@Configuration
public class AppConfig {
@Bean
@ConfigurationProperties("foo")
public ProviderInfo fooProviderInfo() {
return new ProviderInfo();
}
@Bean
@ConfigurationProperties("bar")
@bvulaj
bvulaj / InnerClassProperties.java
Last active Mar 14, 2018
Nested Configuration Objects w/ an Inner Class
View InnerClassProperties.java
@Component
@ConfigurationProperties("props")
public class InnerClassProperties {
private InnerClass innerClass;
private InnerClass otherInnerClass;
public static class InnerClass {
private String name;
}
}
@bvulaj
bvulaj / NonInnerClass.java
Last active Mar 14, 2018
Nested Configuration Objects w/o an Inner Class
View NonInnerClass.java
public class NonInnerClass {
private String name;
}
You can’t perform that action at this time.