Skip to content

Instantly share code, notes, and snippets.

@sworisbreathing
sworisbreathing / cucumber-reports.xhtml
Last active December 14, 2015 04:18
This is a sample demonstrating how to include HTML reports generated by Cucumber in your Maven project's site documentation. Version numbers and other stuff has been redacted for clarity. `site.xml` should be in `src/site`. `cucumber-reports.xhtml` should be in `src/site/xhtml` This example requires jQuery. If your site uses maven-fluido-skin, t…
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cucumber Test Reports</title>
</head>
<body>
<script type="text/javascript">
//<![CDATA[
@sworisbreathing
sworisbreathing / PostQueryWithResponse.java
Last active December 14, 2015 19:39
PostQueryWithResponse is a utility class which can be used in an Apache Pivot application when it would be appropriate to use a GetQuery, but GetQuery cannot be used for practical reasons (i.e. URL/QueryString size limits).
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.Proxy;
import java.net.URL;
import java.util.concurrent.ExecutorService;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import org.apache.pivot.serialization.Serializer;
import org.apache.pivot.util.ListenerList;
@sworisbreathing
sworisbreathing / splunk-performance-dashboard.xml
Created October 2, 2014 00:27
Splunk Performance Dashboard - screenshot available at http://imgur.com/MBGeYmQ
<form>
<label>Splunk Performance</label>
<description />
<fieldset submitButton="true">
<input type="time" searchWhenChanged="false" token="time_range">
<label>Time Range</label>
<default>
<earliestTime>-60m@m</earliestTime>
<latestTime>now</latestTime>
</default>
[deployment-client]
clientName = SecondaryDeploymentServer
reloadDSOnAppInstall = true
[target-broker:PrimaryDeploymentServer]
targetUri = <deployment_master_fqdn>:<deployment_master_mgmt_port>
@sworisbreathing
sworisbreathing / converge.log
Created August 12, 2015 05:31
Failing chef-splunk tests for splunk_app LWRP
>>>>>> Converge failed on instance <server-lwrps-ubuntu-1404>.
>>>>>> Please see .kitchen/logs/server-lwrps-ubuntu-1404.log for more details
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: SSH exited (1) for command: [sh -c '
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level debug --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
']
>>>>>> ----------------------
chef-splunk/Berksfile, loading Berkshelf
@sworisbreathing
sworisbreathing / jitter.css
Last active November 26, 2022 12:50
Jitter Animation CSS
/*
* Jitter Animation CSS by Steven Swor
* (https://gist.github.com/sworisbreathing/5599b41654c8d0692366) is licensed
* under a Creative Commons Attribution-ShareAlike 4.0 International License. To
* view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/.
*
* Based on a work at http://www.kingdomofloathing.com/ with permission from
* Asymmetric Publications, LLC (http://asymmetric.net/).
*/