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
@bvulaj
bvulaj / rm-symlinks.sh
Created Aug 31, 2015
Remove git symlinks in favor of NTFS hardlinks+junctions.
View rm-symlinks.sh
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 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 ignore-doclint-java8.xml
<profile>
<id>java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<additionalparam>-Xdoclint:none</additionalparam>
</properties>
</profile>
@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 / ProviderInfo.java
Created Mar 14, 2018
Basic Type Safe Injection
View ProviderInfo.java
@Component
@ConfigurationProperties("provider")
public class ProviderInfo {
private String name;
private boolean enabled;
private List<String> roles;
}
@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 / AppConfig.java
Last active Mar 14, 2018
Simple Field Injection w/ @value
View AppConfig.java
@Configuration
public class AppConfig {
// Using SpEL
@Value("#{providerInfo.name ?: 'bar'}")
private String providerName;
// Injecting a Duration w/ a default
@Value("${timeout:500ms}")
private Duration timeout;
}
@bvulaj
bvulaj / AppConfig.java
Last active Mar 14, 2018
Third Party Injection
View AppConfig.java
@Configuration
public class AppConfig {
@Bean
@ConfigurationProperties("provider")
public ProviderInfo providerInfo() {
return new ProviderInfo();
}
}
@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.