Skip to content

Instantly share code, notes, and snippets.

View doyleyoung's full-sized avatar

Doyle Young doyleyoung

View GitHub Profile
/usr/local/include/v8.h:3915:36: error: 'v8::PropertyHandlerFlags' is not a class, namespace, or scoped enumeration
PropertyHandlerFlags flags = PropertyHandlerFlags::kNone)
^
...
-> FAIL Installing JavaScript::V8 failed.
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE
→ find . -name "*.pm" -exec podchecker {} \;
*** ERROR: =over on line 26 without closing =back at line EOF in file ./lib/Path/Resource/Base.pm
./lib/Path/Resource/Base.pm has 1 pod syntax error.
*** WARNING: empty section in previous paragraph at line 398 in file ./lib/Path/Resource.pm
./lib/Path/Resource.pm pod syntax OK.
[ { "info" : { "headers" : { "request" : { "accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"accept-encoding" : "gzip, deflate",
"accept-language" : "en-US,en;q=0.5",
"connection" : "keep-alive",
"cookie" : "__utma=111872281.1267843614.1350523597.1350756724.1350843287.4",
"host" : "localhost:8080",
"user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:28.0) Gecko/20100101 Firefox/28.0"
},
"response" : { "Content-Length" : "2",
"Content-Type" : "text/html",
@doyleyoung
doyleyoung / gist:eb35a71faa48252f02e7
Created June 2, 2015 15:02
Spring Boot 2 Metrics
{"counter.status.200.health":1,"gauge.response.health":29.0,"mem":503296,"mem.free":385021,"processors":8}
@doyleyoung
doyleyoung / gist:3cfacb9c9232b81c954b
Created June 2, 2015 15:01
Spring Boot 2 Command line
Let's inspect the beans provided by Spring Boot:
application
applicationContextIdFilter
auditEventRepository
auditListener
autoConfigurationAuditEndpoint
baseController
basicErrorController
beanNameHandlerMapping
beanNameViewResolver
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
package SpringBootTest;
import java.util.Arrays;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.doyleyoung.springboot.test</groupId>
<artifactId>SpringBootTest</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
package SpringBootTest;
import org.springframework.boot.SpringApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class BaseController {