Skip to content

Instantly share code, notes, and snippets.

Avatar

Steven Swor sworisbreathing

View GitHub Profile
@sworisbreathing
sworisbreathing / jitter.css
Last active Jan 12, 2016
Jitter Animation CSS
View jitter.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/).
*/
@sworisbreathing
sworisbreathing / converge.log
Created Aug 12, 2015
Failing chef-splunk tests for splunk_app LWRP
View converge.log
>>>>>> 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
View deploymentclient.conf (Secondary Deployment Server)
[deployment-client]
clientName = SecondaryDeploymentServer
reloadDSOnAppInstall = true
[target-broker:PrimaryDeploymentServer]
targetUri = <deployment_master_fqdn>:<deployment_master_mgmt_port>
@sworisbreathing
sworisbreathing / splunk-performance-dashboard.xml
Created Oct 2, 2014
Splunk Performance Dashboard - screenshot available at http://imgur.com/MBGeYmQ
View splunk-performance-dashboard.xml
<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>
@sworisbreathing
sworisbreathing / PostQueryWithResponse.java
Last active Dec 14, 2015
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).
View PostQueryWithResponse.java
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 / cucumber-reports.xhtml
Last active Dec 14, 2015
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…
View cucumber-reports.xhtml
<?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[
You can’t perform that action at this time.