Skip to content

Instantly share code, notes, and snippets.

import groovy.json.JsonSlurper
import org.sonatype.nexus.repository.storage.Asset
import org.sonatype.nexus.repository.storage.StorageFacet
def DOCKER_REPOSITORY_NAME = 'docker-hosted'
def dockerRepository = repository.repositoryManager.get(DOCKER_REPOSITORY_NAME)
def dockerBlobStore = blobStore.blobStoreManager.get(dockerRepository.configuration.attributes.storage.blobStoreName)
def storageTx = dockerRepository.facet(StorageFacet.class).txSupplier().get()
try {
-*- mode: compilation; default-directory: "/tmp/" -*-
Comint started at Wed Oct 19 10:19:03
perl -w /tmp/perl.pl
Error while executing command: acceptAlert: An attempt was made to operate on a modal dialog when one was not open.: No tab modal was open when attempting to get the dialog text
Build info: version: '3.0.0-beta4', revision: '3169782', time: '2016-09-29 10:29:23 -0700'
System info: host: 'sc1201.corp.sharecare.com', ip: '10.10.2.131', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.11.6', java.version: '1.8.0_60'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{rotatable=false, raisesAccessibilityExceptions=false, firefoxOptions={args=[], profile=UEsDBBQACAgIAGFSU0kAAAAAAAAAAAAAAAAHAAAAdXNlci5qc51WTW/bMAy971cMOW3AKqTretlOXdcBA4Z1aFDsKMgSbauRJU0fcfPvR/mjSRNHbndKbJMS+fj4yOjBUeugfLconGnxiXhWQvdf6oo0TLXMAQHNCgVi8eFtyZSH91/exJ2nYAFtrHEhudTAVKj7Z4JGG8ln/DWE1rg1qUOwxNbS19uz9Nky788U6CrU6Pjx8vK52xiwAybwR0AAHkB8l86HK4yFK0C34OJhuKbBvB4pr51pgHrupA3URU2DbJLLxXL6osAKTxAOfauvlfEwnc1oL
16:28:17.938 INFO - Executing: [new session: Capabilities [{marionette=true, browserName=firefox, javascriptEnabled=true, version=, platform=ANY}]])
16:28:17.966 INFO - Creating a new session for Capabilities [{marionette=true, browserName=firefox, javascriptEnabled=true, version=, platform=ANY}]
16:28:18.168 INFO - Attempting bi-dialect session, assuming Postel's Law holds true on the remote end
1475526498667 Marionette INFO Listening on port 64184
1475526499636 Marionette INFO startBrowser bf03fcb9-11aa-a240-b517-b44d3e0ed157
16:28:19.820 INFO - Detected dialect: W3C
16:28:19.835 INFO - Done: [new session: Capabilities [{marionette=true, firefoxOptions=org.openqa.selenium.firefox.FirefoxOptions@33b5c24a, browserName=firefox, javascriptEnabled=true, version=, platform=ANY}]]
16:28:19.873 INFO - Executing: [get window size])
16:28:19.880 WARN - Exception thrown
java.lang.NullPointerException
use strict;
use warnings;
use List::Util qw/any/;
die 'eh what' unless -e '/tmp/prodUrlsByFrequency';
`cut -d '/' -f 2- /tmp/prodUrlsByFrequency | grep -i -v ajax | grep -v user.*settings | grep -v getBooks | sed 's/^/\\//' > /tmp/urls`;
`cut -d '/' -f 2 /tmp/urls | sort | uniq > /tmp/groups`;
my $filename = '/tmp/groups';
SEVERE: Error while serving http://localhost:8080/createItem
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
@gempesaw
gempesaw / gist
Last active September 16, 2015 15:13
tweaks to windows stuff to save me time. note that we can't permanently edit the path unless we're administrator
SEVERE: Error while serving http://localhost:8080/createItem
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
ffap-machine-p-known to 'reject
bash-3.2$ cpanm --reinstall Dist::Zilla::Plugin::TravisYML
--> Working on Dist::Zilla::Plugin::TravisYML
Fetching http://www.cpan.org/authors/id/B/BB/BBYRD/Dist-Zilla-TravisCI-1.15.tar.gz ... OK
Configuring Dist-Zilla-TravisCI-1.15 ... OK
Building and testing Dist-Zilla-TravisCI-1.15 ... OK
Successfully reinstalled Dist-Zilla-TravisCI-1.15
1 distribution installed
bash-3.2$ dzil new TestThing
[DZ] making target dir /private/tmp/TestThing
@gempesaw
gempesaw / transpiled.js
Created May 12, 2015 14:39
newest traceur & ng-annotate compatibility
// version 0.0.88 & 0.0.89
(function () {
var MyController = (function() {
function MyController(args) {}
return ($traceurRuntime.createClass)(MyController, {}, {});
}());
angular.module('test').controller('MyController', MyController);
return {};
});
ruby watir.rb
We must explicitly catch this failed find_element
Or else it will kill the script
/Users/dgempesaw/.rvm/gems/ruby-2.2.0/gems/watir-webdriver-0.6.11/lib/watir-webdriver/elements/element.rb:513:in `assert_exists': unable to locate element, using {:name=>"missing", :tag_name=>"input or textarea", :type=>"(any text type)"} (Watir::Exception::UnknownObjectException)
from /Users/dgempesaw/.rvm/gems/ruby-2.2.0/gems/watir-webdriver-0.6.11/lib/watir-webdriver/user_editable.rb:11:in `set'
from watir.rb:12:in `<main>'