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 request = require('request'); | |
var fs = require('fs'); | |
var unzip = require('unzip2'); | |
var fstream = require('fstream'); | |
// var handler = function (error, response, body) { | |
// if (!error && response.statusCode == 200) { | |
// console.log(body) // Show the HTML for the Google homepage. | |
// } | |
// } |
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
browser.execute("arguments[0].scrollIntoView();", $(selector)) |
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/awk -f | |
# Formats the timestamp as a number, so that higher numbers represent | |
# a later timestamp. This will not handle the time zone because date | |
# can't handle the o'clock notation. I hope all your timestamps use the | |
# same time zone, otherwise you'll have to hack support for it in here. | |
# 28/Apr/2017:13:15:16 | |
# date -d '28 Apr 2017 13:15:16' +%d%b%Y:%H:%M:%S | |
function datefmt(d) { |
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
// link sublime to command line | |
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime |
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 message = $context.currentItem; | |
var statusCode = message.getResponse(message.RESPONSE_HTTP_STATUSCODE); | |
//$context.result.postMessage($context.result.LEVEL_INFO, 'Output.... ' + statusCode); | |
if ( statusCode != '200' ) { | |
result = false; | |
} else { | |
result = true; | |
} |
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
// ------------------------------------------------------------------------------------------------------ | |
// find previous message | |
// ------------------------------------------------------------------------------------------------------ | |
function findPriorMessage() { | |
var priorMessage = $context.currentItem.previousItem; | |
for (;;) { | |
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
docker images | tail -n +2 | awk '{ print $1 ":" $2}' | xargs docker rmi |
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
-- JMeter Cloud Setup Using Docker and Weave -- | |
----------------------------------------------- | |
# Create three docker hosts for jmeter servers | |
# Use Virtual Box | |
docker-machine create --driver virtualbox jmServer1 | |
docker-machine create --driver virtualbox jmServer2 | |
docker-machine create --driver virtualbox jmServer3 | |
# open three terminals |
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
-- Docker machine commands | |
docker-machine | |
docker-machine ls | |
docker-machine -v | |
docker-machine env | |
docker-machine env staging | |
$(docker-machine env staging) -- sets the environment variables | |
or | |
eval "$(docker-machine env staging)" -- load the Machine configuration into your shell |
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
<div ng-app="wizardApp"> | |
<div ng-controller="WizardSignupController"> | |
<h2>Signup wizard</h2> | |
<div ui-view></div> | |
</div> | |
</div> | |
<script type="text/javascript" src="/js/vendor/angular-ui-router/release/angular-ui-router.min.js"></script> | |
<script type="text/javascript"> | |
angular.module('wizardApp', [ | |
'ui.router', |
NewerOlder