This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security { | |
// see DefaultSecurityConfig.groovy for all settable/overridable properties | |
active = true | |
loginUserDomainClass = "com.mattstine.wendysstore.domain.User" | |
authorityDomainClass = "com.mattstine.wendysstore.domain.Role" | |
useRequestMapDomainClass = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AuthFilters { | |
def authenticateService | |
def filters = { | |
blurbCheck(controller: 'blurb') { | |
before = { | |
if (authenticateService.ifAllGranted('ROLE_ADMIN')) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controllerAnnotationStaticRules = [ | |
'/blurb/**': ['ROLE_ADMIN'], | |
‘/setting/**’: ['ROLE_ADMIN'] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script language="JavaScript"> | |
document.write("<SCR" + "IPT SRC='" + ez_codePath + "ezloader.js'><\/SCR" + "IPT>"); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.codehaus.jackson.map.ObjectMapper; | |
import java.util.Map; | |
import java.net.URL; | |
import java.io.*; | |
public class Lucky13 { | |
public int pay(int bet) throws Exception { | |
return new ObjectMapper().readValue(new BufferedReader(new InputStreamReader(new URL("http://roulette.engineyard.com/") | |
.openStream())).readLine(), Map.class).get("winning_number").equals("13") ? 35 * bet : 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Excerpt from an email I sent during May 2011: | |
I've been doing some research into this whole DevOps space as part of | |
my efforts focused on improving our continuous delivery pipelines at | |
<REDACTED>. Of course one of my main avenues is to harness otherwise | |
non-productive time listening to podcasts, and yesterday I happened | |
upon DevOps Cafe. It seems this guy named Tim Berglund did an | |
interview with these guys last summer around the theme of his | |
"Complexity Theory and Software Development" talk. ;-) I listened to | |
about half of it on the way in to the office this morning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task uberJar(type: Jar) { | |
baseName = "foo-cacheserver-uberjar" | |
from { | |
sourceSets.main.output.classesDir | |
sourceSets.main.output.resourcesDir | |
configurations.compileNoGemFire.collect { it.isDirectory() ? it : zipTree(it) } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@PropertySource("classpath:application.properties") | |
public class AppConfig { | |
@Autowired | |
private Environment env; | |
@Bean | |
public DriverManagerDataSource dataSource() { | |
final DriverManagerDataSource driverManagerDataSource = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: test | |
director_uuid: 46beb722-f241-4419-a0b5-dcba70805116 | |
releases: | |
- name: lite | |
version: 151.9-dev | |
networks: | |
- name: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:int="http://www.springframework.org/schema/integration" | |
xmlns:int-kafka="http://www.springframework.org/schema/integration/kafka" | |
xmlns:task="http://www.springframework.org/schema/task" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans | |
http://www.springframework.org/schema/beans/spring-beans.xsd | |
http://www.springframework.org/schema/integration | |
http://www.springframework.org/schema/integration/spring-integration.xsd |