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
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>make-assembly1</id> | |
<phase>package</phase> | |
<goals> | |
<goal>single</goal> | |
</goals> |
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
$awk -F: '/logMessageOfInterest/ {counts[$1] = counts[$1] + 1; } END { for (val in counts) print val, counts[val]; }' LOG.TXT | sort |
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
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8888; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd() + "/public_html", uri); |
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
const FEED_ID = "YOUR_FEED_ID"; | |
const API_KEY = "YOUR_API_KEY"; | |
// Accept CSV from device, then format request to and accept response from xively.com | |
device.on("data", function(feedCSV) { | |
server.log(feedCSV); | |
local xively_url = "https://api.xively.com/v2/feeds/" + FEED_ID + ".csv"; | |
local request = http.put(xively_url, {"X-ApiKey":API_KEY, "Content-Type":"text/csv", "User-Agent":"Xively-Imp-Lib/1.0"}, feedCSV); | |
local response = request.sendsync(); | |
if(response.statuscode != 200) { |
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.groovy.control.CompilerConfiguration %> | |
<% import org.wyttenbach.dale.groovy.spaceship.* %> | |
<% | |
response.setHeader("Cache-Control","no-cache"); | |
response.setHeader("Pragma","no-cache"); | |
response.setDateHeader ("Expires", 0); | |
%> | |
<link rel="stylesheet" href="css/sample.css" type="text/css"> | |
Here is a bunch of text |