View gist:8927373
1 2 3 4 5 6 7 8 9 10
> curl -v http://grails.org
* Adding handle: conn: 0x7fcf6b80aa00
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7fcf6b80aa00) send_pipe: 1, recv_pipe: 0
* About to connect() to grails.org port 80 (#0)
* Trying 208.91.2.18...
* Connected to grails.org (208.91.2.18) port 80 (#0)
> GET / HTTP/1.1
View output.txt
1 2 3 4 5 6 7 8 9
[info] Compiling 1 Scala source to /Users/matschaffer/code/graphitedemos/demo-app/target/scala-2.10/classes...
[error] /Users/matschaffer/code/graphitedemos/demo-app/src/main/scala/com/devopscasts/demo/DemoServlet.scala:19: type mismatch;
[error] found : Long
[error] required: Int
[error] case requestStart: java.lang.Long => stats.recordExecutionTime("latency", requestEnd - requestStart)
[error] ^
[error] one error found
[error] (compile:compile) Compilation failed
[error] Total time: 1 s, completed Nov 23, 2013 11:04:23 PM
View jacksonsnippet.java
1 2 3
ObjectMapper mapper = new ObjectMapper()
mapper.configure(JsonParser.Feature.ALLOW_COMMENTS, true)
map = mapper.readValue(file, HashMap.class)
View hider.js
1 2 3 4 5 6 7 8 9 10
// ==UserScript==
// @name Hide Amazon Instant Video Purchase
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Hides all purchasing buttons on Amazon Instant Video pages. Helpful if you have kids watching it who like orange buttons better than green ones.
// @match www.amazon.com/*
// @copyright 2012+, You
// ==/UserScript==
 
jQuery(function () {
View core.clj
1 2 3 4 5 6 7 8 9 10
(ns soundscape.core
(:require [leipzig.live :refer :all]
[leipzig.melody :refer :all]
[leipzig.scale :refer :all]
[leipzig.canon :refer :all]
[overtone.live :as overtone]
[overtone.synth.stringed :as strings]
[overtone.at-at :as atat]))
 
(def wind-pool (atat/mk-pool))
View curl.out
1 2
> curl 'http://github.com/bittorrent/bencode.git/info/refs?service=git-upload-pack'
curl: (7) couldn't connect to host
View Jarfile
1
jar 'com.netflix.hystrix:hystrix-core', '~>1.2.16'
View helperclasses.groovy
1 2 3 4 5 6 7 8 9
includeTargets << grailsScript("_GrailsBootstrap")
 
 
target(main: "Desc") {
depends(compile)
 
def myClass = classLoader.loadClass("com.me.MyClass")
myClass.newInstance()
}
View gist:5470949
1 2 3 4 5
def myresolver = new URLResolver()
myresolver.m2compatible = true
myresolver.addArtifactPattern("http://artifacts.myrepo.com/myrepo-releases/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]")
myresolver.addIvyPattern("http://artifacts.myrepo.com/myrepo-releases/[organisation]/[module]/[revision]/[module]-[revision]-ivy.[ext]")
resolver myresolver
View gist:5426910
1
org.springframework.web.client.ResourceAccessException: I/O error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Something went wrong with that request. Please try again.