Skip to content

Instantly share code, notes, and snippets.

View bvulaj's full-sized avatar
🏠
Working from home

Brandon Vulaj bvulaj

🏠
Working from home
View GitHub Profile
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
  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

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 August 31, 2015 17:56
Remove git symlinks in favor of NTFS hardlinks+junctions.
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
</profile>
@bvulaj
bvulaj / CrossDomainCookieCsrfTokenRepository.java
Created July 27, 2017 03:22
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…
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 August 1, 2017 16:02
When I'm Remote, You're Remote
<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 March 14, 2018 22:18
Configuring Multiple Objects of the Same Type
@Configuration
public class AppConfig {
@Bean
@ConfigurationProperties("foo")
public ProviderInfo fooProviderInfo() {
return new ProviderInfo();
}
@Bean
@ConfigurationProperties("bar")
@bvulaj
bvulaj / InnerClassProperties.java
Last active March 14, 2018 22:19
Nested Configuration Objects w/ an Inner Class
@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 March 14, 2018 22:19
Nested Configuration Objects w/o an Inner Class
public class NonInnerClass {
private String name;
}