-
Download and start boot2docker.
-
Run these commands:
git clone --branch collectd-riemann-influxdb \ https://github.com/bfritz/dockerfiles cd dockerfiles
This file contains hidden or 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 java.io.InputStream; | |
import java.net.*; | |
public class UrlFetch { | |
public static void main(String... args) throws Exception { | |
URL url = new URL(args[0]); | |
URLConnection conn = url.openConnection(); | |
InputStream is = conn.getInputStream(); | |
while (is.available() > 0) { | |
System.out.print((char) is.read()); |
This file contains hidden or 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
java.util.NoSuchElementException: None.get | |
at scala.None$.get(Option.scala:322) | |
at scala.None$.get(Option.scala:320) | |
at app.IssuesControllerBase$$anonfun$app$IssuesControllerBase$$handleComment$1$$anonfun$apply$77$$anonfun$33.apply(IssuesController.scala:352) | |
at app.IssuesControllerBase$$anonfun$app$IssuesControllerBase$$handleComment$1$$anonfun$apply$77$$anonfun$33.apply(IssuesController.scala:352) | |
at scala.Option.getOrElse(Option.scala:120) | |
at app.IssuesControllerBase$$anonfun$app$IssuesControllerBase$$handleComment$1$$anonfun$apply$77.apply(IssuesController.scala:352) | |
at app.IssuesControllerBase$$anonfun$app$IssuesControllerBase$$handleComment$1$$anonfun$apply$77.apply(IssuesController.scala:335) | |
at scala.Option.map(Option.scala:145) | |
at app.IssuesControllerBase$$anonfun$app$IssuesControllerBase$$handleComment$1.apply(IssuesController.scala:335) |
This file contains hidden or 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
[info] Loading global plugins from /home/brad/.sbt/0.13/plugins | |
[info] Set current project to org.indyscala.parboiled.UnitConverter (in build file:/tmp/vlahupetar/) | |
[info] Compiling 1 Scala source to /tmp/vlahupetar/target/scala-2.11/classes... | |
[error] /tmp/vlahupetar/src/main/scala/org/indyscala/parboiled/UnitConverter.scala:71: overloaded method value apply with alternatives: | |
[error] [P, S, T, U, V, W, X, Y, Z, R](f: (P, S, T, U, V, W, X, Y, Z) => R)(implicit j: org.parboiled2.support.ActionOps.SJoin[shapeless.::[P,shapeless.::[S,shapeless.::[T,shapeless.::[U,shapeless.::[V,shapeless.::[W,shapeless.::[X,shapeless.::[Y,shapeless.::[Z,shapeless.HNil]]]]]]]]],shapeless.HNil,R], implicit c: org.parboiled2.support.FCapture[(P, S, T, U, V, W, X, Y, Z) => R])org.parboiled2.Rule[j.In,j.Out] <and> | |
[error] [S, T, U, V, W, X, Y, Z, R](f: (S, T, U, V, W, X, Y, Z) => R)(implicit j: org.parboiled2.support.ActionOps.SJoin[shapeless.::[S,shapeless.::[T,shapeless.::[U,shapeless.::[V,shapeless.::[W,shapeless.::[X,shapele |
This file contains hidden or 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
package com.bfritz.trello.trellojsontocsv | |
import muster.{Consumer,MappingException} | |
import muster.ast.{AstNode,NullNode,ObjectNode,TextNode} | |
import muster.codec.jackson.JacksonCodec | |
import java.io.{File,FileWriter} | |
import au.com.bytecode.opencsv.CSVWriter | |
object TrelloJsonToCsvApp extends App { |
This file contains hidden or 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
filter { | |
ruby { | |
init => 'AFTER_EVENT = LogStash::Event.new; AFTER_EVENT.timestamp="2014-06-30T23:59:59.748Z"; BEFORE_EVENT = LogStash::Event.new; BEFORE_EVENT.timestamp="2014-07-22T02:01:56.000Z"' | |
code => 'if event.unix_timestamp > AFTER_EVENT.unix_timestamp && event.unix_timestamp < BEFORE_EVENT.unix_timestamp then event.tags.push("backfill") end' | |
} | |
} |
Planning to cover these:
- How do I display a graph of my projects dependencies?
- How can I enable a plugin globally?
- How can I pull artifacts from my local Maven repository?
Might cover these:
- Are there convenient ways to integrate sbt with vim?
- build.sbt versus project/Build.scala? WTF?
This file contains hidden or 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
$ cat base64_decode.conf | |
input { | |
stdin { } | |
} | |
filter { | |
grok { | |
match => ["message", "%{WORD:prefix} %{WORD:b64} %{WORD:suffix}"] | |
} |
This file contains hidden or 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
apt-get install smartmontools pv g++ | |
g++ -o randdata randdata.cpp |
This file contains hidden or 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
/etc/rc.conf_mount_rw && viconfig && /etc/rc.conf_mount_ro && /etc/rc.reload_all |