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
# Example usage with several configuration sets as in multiple connections durations and threads. | |
# You may go take the rest of the day off while this will run ;) | |
for duration in 10s 1m 10m 1h | |
do | |
for connections in 100 200 300 400 500 600 | |
do | |
for thread in 1 2 3 4 5 | |
do | |
wrk -d$duration -c$connections -t$thread -s wrk-script.lua http://localhost:4001/beacon/0001/demo-load-test/test/web |
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
/* b.js - Boomerang Setup in around 500 bytes | |
* ------------------------------------------ | |
* Complete boomerang.js initialization with essential plugins in around 500 bytes | |
* It mimics "Google Analytics"-style script injection using document.createElement | |
* and document.head.appendChild(). | |
* | |
* Beacon URL configuration + configuring Plugins as a variable to the beacon: | |
* | |
* http://boomerang.example.org/beacon/0000/dashboard/start?plugins=BW%7CRT%7Cnavtimin%7Crestiming&... | |
* |
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
#!/usr/bin/perl | |
=head1 NAME | |
nagios-view - View config of nagios in SVG/PNG | |
=head1 SYNOPSIS | |
nagios-view --nagioscfg nagios.cfg --output nagios-config-visualized.svg |
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
package Mojolicious::Command::minify; | |
use Mojo::Base 'Mojolicious::Commands'; | |
use File::Find; | |
use File::Slurp; | |
has description => "Minify scripts in public/ directory.\n"; | |
has hint => <<"EOF"; | |
Minifies all Javascript and CSS files with the .js instead of the .min.js extension. | |
EOF |
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
perl -Mojo -E 'say g("http://www.jargon.net/")->dom->at("font")->all_text' |
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
$("#modal").modal({ | |
show: true, | |
backdrop: true, | |
keyboard: true | |
}).on("shown",function(e) { | |
/* suppress 'shown' events bubbling up from inside */ | |
if ($(e.target).hasClass('modal')){ | |
/*do something*/ | |
} | |
}); |
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
<!doctype html> | |
<html> | |
<head> | |
<link href="https://raw.github.com/shutterstock/rickshaw/master/rickshaw.min.css"> | |
</head> | |
<body> | |
<div id="graph"></div> | |
<div id="legend"></div> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<script type="text/javascript" src="http://underscorejs.org/underscore-min.js"></script> |